Description
I see at the end of
that a fix for “conflicting types for 'strmode'” was checked in at
and it appears to be committed into 1.5.0. So what I expect:
install.packages(“fs”)
installs fs correctly on Cygwin. What I get instead:
: Selection: 75
: trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/fs_1.5.0.tar.gz'
: Content type 'application/x-gzip' length 796244 bytes (777 KB)
: ==================================================
: downloaded 777 KB
…
: /tmp/RtmpekZitb/R.INSTALL594291a2fb2/fs/src/unix/getmode.cc:32:(.text+0x77):
: relocation truncated to fit: R_X86_64_PC32 against undefined symbol
: `strmode'
:
: collect2: error: ld returned 1 exit status
: make: *** [/usr/lib/R/share/make/shlib.mk:6: fs.dll] Error 1
: ERROR: compilation failed for package ‘fs’
: * removing ‘/usr/lib/R/site-library/fs’
Can you help? This has been blocking me from using R on Cygwin for many moons.
Thank you,
- JP
Background:
:
:
: setmode isn't a standard library function; it's a libbsd
: function. That's only the same thing on BSD-derived systems like OS X,
: which that man page is from. Pass the -lbsd argument to get the linker
: to find it on Linux.
(https://stackoverflow.com/questions/15608116/gnu-undefined-reference-to-setmode)
I also tried this:
: install.packages('fs',repos='http://cran.us.r-project.org')
James Powell, Ph.D. Candidate
NRS3 MOVES Modeler, Air Technical Services
Oregon Department of Environmental Quality
700 NE Multnomah St. Suite 600, Portland OR 97212
Phone: 503-235-3679
Email: James.Powell (at) deq.state.or.us
Pronouns: him/his