Forum: Cfengine Help
Subject: Re: build cf3.0.5 with openssl 1.0.0a
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17444,17534#msg-17534

This problem has returned.  Consider this build script:
PREFIX=/home/nwatson/cfengine
make distclean
LD_LIBRARY_PATH=$PREFIX/lib64:$PREFIX/lib \
LDFLAGS="-L$PREFIX/lib64 -L$PREFIX/lib" \
export LD_LIBRARY_PATH LDFLAGS && \
./configure --prefix=$PREFIX \
    --with-pcre=$PREFIX \
    --with-berkeleydb=$PREFIX \
    --with-openssl=$PREFIX \
    --sbindir=$PREFIX/bin \
    --without-sql \
    --without-gd && \
make && \
printf "Testing...."
unset LD_LIBRARY_PATH LDFLAGS && \
src/cf-promises -x |grep "$CFPCRE" &&\
ldd src/cf-key|grep $PREFIX && printf "SUCCESS!"

libcrypt from openssl has not been linked into the binaries:
$ ldd src/cf-promises 
        libacl.so.1 => /lib64/libacl.so.1 (0x0000003efca00000)
        libnss_nis.so.2 => /lib64/libnss_nis.so.2 (0x00002ae7da12b000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003efc600000)
        librt.so.1 => /lib64/librt.so.1 (0x0000003efce00000)
        libldap-2.3.so.0 => /usr/lib64/libldap-2.3.so.0 (0x0000003efc200000)
        libm.so.6 => /lib64/libm.so.6 (0x00002ae7da337000)
        libpcreposix.so.0 => /home/nwatson/cfengine/lib/libpcreposix.so.0 
(0x00002ae7da5bb000)
        libpcre.so.0 => /home/nwatson/cfengine/lib/libpcre.so.0 
(0x00002ae7da7bd000)
        libdb-4.8.so => /home/nwatson/cfengine/lib/libdb-4.8.so 
(0x00002ae7da9d5000)
        libcrypto.so.1.0.0 => not found

Openssl installs its libraries into PREFIX/lib64.  
$ ls -l /home/nwatson/cfengine/lib64
total 6468
drwxr-xr-x 2 nwatson essi    1024 Jun 17 10:35 engines
-rw-r--r-- 1 nwatson essi 3573850 Jun 17 10:35 libcrypto.a
lrwxrwxrwx 1 nwatson essi      18 Jun 17 10:35 libcrypto.so -> 
libcrypto.so.1.0.0
-r-xr-xr-x 1 nwatson essi 1968595 Jun 17 10:35 libcrypto.so.1.0.0
-rw-r--r-- 1 nwatson essi  642956 Jun 17 10:35 libssl.a
lrwxrwxrwx 1 nwatson essi      15 Jun 17 10:35 libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 nwatson essi  401753 Jun 17 10:35 libssl.so.1.0.0
drwxr-xr-x 2 nwatson essi    1024 Jun 17 09:14 pkgconfig

I cannot find any way to get Cfengine's configure or makefile to link this in 
the binaries.  What is the problem?

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

Reply via email to