Forum: CFEngine Help
Subject: Re: Static cf3 binaries on Solaris & Linux
Author: saweron
Link to topic: https://cfengine.com/forum/read.php?3,17198,26763#msg-26763

I realize I'm opening a world of hurt here but did anyone manage to compile 
static 3.3.x  binaries on Solaris 10 (x86_64) with SunStudio 12u2?

I pretty much use the same compile options like phnakarin 


export CC=/opt/solstudio/bin/cc
export CFLAGS="-m64"
export LDFLAGS="-m64"
export PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/opt/solstudio/bin

# openssl

./Configure  \
--prefix=/opt/openssl-1.0.1c  \
threads  \
no-shared \
solaris64-x86_64-cc

# pcre
./configure \
--prefix=/opt/pcre-8.31 \
--enable-utf8 \
--enable-static

# qdbm
./configure \
--prefix=/opt/qdbm-1.8.77 \
--enable-pthread \
--enable-static \
--disable-shared

# cfengine 3.3.5

export CFLAGS="-m64 -xc99=all -I/opt/openssl/include/openssl"
export CPPFLAGS="-m64 -xc99=all -I/opt/openssl/include/openssl"


./configure \
--prefix=/usr \
--with-qdbm=/opt/qdbm \
--with-openssl=/opt/openssl  \
--with-pcre=/opt/pcre \
--without-mysql \
--without-tokyocabinet \
--without-libvirt \
--enable-static \
--disable-shared

[…]
configure: error: Cannot find OpenSSL


/opt/openssl, /opt/pcre and /opt/qdbm are symlinks to the versions listed above.

config.log shows


configure:14394: /opt/solstudio/bin/cc -o conftest -D_REENTRANT  -m64 -xc99=all 
-I/opt/openssl/include/openssl -I/include -O2 -DNDEBUG 
-I/opt/openssl-1.0.1c/include -m64 -xc99=all -I/opt/openssl/include/openssl 
-I/opt/openssl-1.0.1c/include -m64 
-L/opt/openssl-1.0.1c/lib conftest.c -lcrypto   >&5
"conftest.c", line 43: warning: statement not reached
Undefined                       first referenced
 symbol                             in file
socket                              
/opt/openssl-1.0.1c/lib/libcrypto.a(rand_egd.o)
connect                             
/opt/openssl-1.0.1c/lib/libcrypto.a(rand_egd.o)


Is this something I should take up with the openssl maintainers?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to