Am 2020-05-01 12:44, schrieb Marco Atzeri via Cygwin:
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)
Hi Marco,
thanks for looking into this. I can confirm that the processx package
compiles just fine with the modification of Makevars that you suggested.
I'll report this to the processx maintainer and ask him to fix this.
regards,
Markus
--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple