OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
make compile from source: Force to use specific libraries on a dedicated folder

From: TOUZEAU DAVID (david.touzeaufr.kaspersky.com)
Date: Tue Apr 22 2008 - 19:30:26 CDT


Dear

I have a problem with postfix that load libssl and libcrypto libraires
found in the system folder not libraires that i want to use.

I use these commands to compile postfix
make makefiles
LD_LIBRARY_PATH="/opt/artica/lib:/opt/artica/db/lib:/opt/artica/mysql/lib/mysql"
CCARGS="-DHAS_LDAP -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL
-I/opt/artica/include/ -I/opt/artica/include/openssl
-I/opt/artica/include/sasl -I/opt/artica/db/include"
AUXLIBS="-L/opt/artica/lib -L/opt/artica/db/lib -lssl -lcrypto -lsasl2
-lldap -ldb

But after compiling the process /usr/libexec/postfix/smtpd whant to use
libssl on libcrypt stored on /usr/lib/i686/cmov
And it generate errors when TLS is enabled..(some error seen in strace)

How can i compile postfix and force it to load specific libssl and
libcrypt (static mode) stored in a dedicated folder (/opt/artica/lib for
me) wihout touch ld.so.conf ?

best regards

--
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(http://www.artica.fr) icq:160018849