R does not handle package non-ASCII DESCRIPTION files properly

Marco Atzeri marco.atzeri@gmail.com
Fri May 1 10:44:31 GMT 2020


Am 30.04.2020 um 22:17 schrieb Marco Atzeri:
> Am 30.04.2020 um 17:28 schrieb Markus Hoenicka:
>> Hi,
>>
>> I've contacted the processx package maintainer on a problem reported 
>> here previously (see 
>> https://cygwin.com/pipermail/cygwin/2020-April/244667.html). He 
>> suggested to try the github version but that triggered a different 
>> type of error which does not seem to be package-specific.

the original problem is caused by the lack of $(LIBR)
after $(CLIENT_OBJECTS) in src/Makevars

Cygwin as Windows need the link library after the objects.

$ grep SHLIB_LINK Makevars*
Makevars:       $(SHLIB_LINK) -o client$(SHLIB_EXT) $(CLIENT_OBJECTS) 
$(PKG_LIBS)
Makevars.win:   $(SHLIB_LINK) -o client$(SHLIB_EXT) $(CLIENT_OBJECTS) 
$(LIBR) $(SHLIB_LIBADD) $(PKG_LIBS)


the documentations

https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-Makevars

suggest the form

$(SHLIB): $(OBJECTS)
         $(SHLIB_LINK) -o $ $(OBJECTS) $(ALL_LIBS)

and this should work as
  /usr/lib/R/etc/Makeconf
defines

ALL_LIBS = $(PKG_LIBS) $(SHLIB_LIBADD) $(LIBR) $(LIBINTL) $(LIBS)


so try with
$(SHLIB_LINK) -o client$(SHLIB_EXT) $(CLIENT_OBJECTS) $(ALL_LIBS)


More information about the Cygwin mailing list