[R-pkg-devel] Problem compiling openssl package (FreeBSD stable/11)

David Wolfskill r at catwhisker.org
Wed Jan 18 01:05:16 CET 2017


I tried to install the RPresto package, which depends on the openssl
package; the latter failed to build:

...
** testing if installed package can be loaded
* DONE (curl)
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
Using PKG_LIBS=-lssl -lcrypto
** libs
rm -f aes.o base64.o bignum.o cert.o compatibility.o diffie.o envelope.o error.o hash.o info.o keygen.o keys.o onload.o openssh.o password.o pem.o pkcs12.o pkcs7.o rand.o rsa.o signing.o ssl.o stream.o write.o openssl.so
gcc49 -std=gnu99 -I/usr/local/lib/R/include -DNDEBUG  -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -Wl,-rpath=/usr/local/lib/gcc49 -isystem /usr/local/include -fno-strict-aliasing -flto -c aes.c -o aes.o
gcc49 -std=gnu99 -I/usr/local/lib/R/include -DNDEBUG  -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -Wl,-rpath=/usr/local/lib/gcc49 -isystem /usr/local/include -fno-strict-aliasing -flto -c base64.c -o base64.o
...
gcc49 -std=gnu99 -I/usr/local/lib/R/include -DNDEBUG  -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -Wl,-rpath=/usr/local/lib/gcc49 -isystem /usr/local/include -fno-strict-aliasing -flto -c signing.c -o signing.o
gcc49 -std=gnu99 -I/usr/local/lib/R/include -DNDEBUG  -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include    -fpic  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -Wl,-rpath=/usr/local/lib/gcc49 -isystem /usr/local/include -fno-strict-aliasing -flto -c ssl.c -o ssl.o
ssl.c: In function 'R_download_cert':
ssl.c:41:21: error: 'PF_UNSPEC' undeclared (first use in this function)
   hints.ai_family = PF_UNSPEC;
                     ^
ssl.c:41:21: note: each undeclared identifier is reported only once for each function it appears in
*** Error code 1

Stop.
make: stopped in /tmp/Rtmp8Zo3h3/R.INSTALLa229324f8adb/openssl/src
ERROR: compilation failed for package ‘openssl’
* removing ‘/local/amd64/local/lib/R/library/openssl’
* installing *source* package ‘R6’ ...
** package ‘R6’ successfully unpacked and MD5 sums checked
....


Information about the system (as of today):

g1-252(11.0-S)[6] uname -a
FreeBSD g1-252.catwhisker.org 11.0-STABLE FreeBSD 11.0-STABLE #225  r312339M/312341:1100509: Tue Jan 17 04:23:47 PST 2017     root at g1-252.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY  amd64
g1-252(11.0-S)[7] pkg info math/R | head -2
R-3.3.2_7
Name           : R
g1-252(11.0-S)[8] echo version | openssl
OpenSSL> OpenSSL 1.0.2j-freebsd  26 Sep 2016
OpenSSL> g1-252(11.0-S)[9] 

> R.Version()
$platform
[1] "amd64-portbld-freebsd11.0"

$arch
[1] "amd64"

$os
[1] "freebsd11.0"

$system
[1] "amd64, freebsd11.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "3.2"

$year
[1] "2016"

$month
[1] "10"

$day
[1] "31"

$`svn rev`
[1] "71607"

$language
[1] "R"

$version.string
[1] "R version 3.3.2 (2016-10-31)"

$nickname
[1] "Sincere Pumpkin Patch"


(I update the OS & installed 3rd-party software daily on this machine.)

How may I help make this work?  (I'm happy to test....)

Thanks!

Peace,
david
-- 
David H. Wolfskill				r at catwhisker.org
How could one possibly "respect" a misogynist, racist, bullying con-man??!?

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20170117/562aeaf2/attachment.bin>


More information about the R-package-devel mailing list