Udv / Greetings!
I have to compile openldap against the latest openssl libs, with the
following options:
--disable-slurpd --disable-ipv6 --disable-local --enable-syslog --enable-debug \
--disable-cleartext --enable-crypt --disable-bdb --disable-relay --disable-monitor \
--disable-refint --disable-syncprov --enable-unique \
--enable-shared --with-threads --with-tls --with-gnu-ld
CFLAGS="-g -O3 -march=pentium3 -ffast-math -pipe -fomit-frame-pointer
-mfpmath=sse,387 -mmmx -msse"
On the system, there is the openssl-0.9.8-stable installed. openldap
compilation results in the following error:
ackages/openldap-2.4.11/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
/usr/lib/libsasl2.so -ldl -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1211: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [urltest] Error 1
make[2]: *** Waiting for unfinished jobs....
cc -g -O3 -march=pentium3 -ffast-math -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx
-msse -o ltest test.o ./.libs/libldap.a
/sources/mystaller/packages/openldap-2.4.11/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
/usr/lib/libsasl2.so -ldl -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1211: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
cc -g -O3 -march=pentium3 -ffast-math -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx
-msse -o ftest ftest.o ./.libs/libldap.a
/sources/mystaller/packages/openldap-2.4.11/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
/usr/lib/libsasl2.so -ldl -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/./.libs/libldap.a(tls.c:1211:
undefined reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldapos-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1211: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
-2.4.11/libraries/libldap/tls.c:1242: undefined reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [ftest] Error 1
make[2]: *** [ltest] Error 1
cc -g -O3 -march=pentium3 -ffast-math -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx
-msse -o dntest dntest.o ./.libs/libldap.a
/sources/mystaller/packages/openldap-2.4.11/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
/usr/lib/libsasl2.so -ldl -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1211: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [dntest] Error 1
make[2]: Leaving directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/libraries'
make: *** [all-common] Error 1
cd tests; make test
make[1]: Entering directory `/sources/mystaller/packages/openldap-2.4.11/tests'
make[2]: Entering directory `/sources/mystaller/packages/openldap-2.4.11/tests'
run configure with --enable-bdb to run BDB tests
make[2]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/tests'
make[2]: Entering directory `/sources/mystaller/packages/openldap-2.4.11/tests'
Initiating LDAP tests for HDB...
Could not locate slapd(8)
make[2]: *** [hdb-yes] Error 1
make[2]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/tests'
make: *** [test] Error 2
Making all in /sources/mystaller/packages/openldap-2.4.11
Entering subdirectory include
make[1]: Entering directory `/sources/mystaller/packages/openldap-2.4.11/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/include'
Entering subdirectory libraries
make[1]: Entering directory `/sources/mystaller/packages/openldap-2.4.11/libraries'
Making all in /sources/mystaller/packages/openldap-2.4.11/libraries
Entering subdirectory liblutil
make[2]: Entering directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblutil'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblutil'
Entering subdirectory liblber
make[2]: Entering directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblber'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblber'
Entering subdirectory liblunicode
make[2]: Entering directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblunicode'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/liblunicode'
Entering subdirectory libldap
make[2]: Entering directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/libldap'
/bin/sh ../..//libtool --mode=link cc -static -g -O3 -march=pentium3 -ffast-math -pipe
-fomit-frame-pointer -mfpmath=sse,387 -mmmx -msse -o apitest apitest.o libldap.la
../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl2 -lssl
-lcrypto -lcrypt -lresolv
cc -g -O3 -march=pentium3 -ffast-math -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx
-msse -o apitest apitest.o ./.libs/libldap.a
/sources/mystaller/packages/openldap-2.4.11/libraries/liblber/.libs/liblber.a
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a
/usr/lib/libsasl2.so -ldl -lssl -lcrypto -lcrypt -lresolv
./.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/os-ip.c:211: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_read':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1211: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1215: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `sb_tls_bio_write':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1238: undefined
reference to `BIO_clear_flags'
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:1242: undefined
reference to `BIO_set_flags'
./.libs/libldap.a(tls.o): In function `ldap_int_tls_init_ctx':
/sources/mystaller/packages/openldap-2.4.11/libraries/libldap/tls.c:871: undefined
reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
make[2]: Leaving directory
`/sources/mystaller/packages/openldap-2.4.11/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/sources/mystaller/packages/openldap-2.4.11/libraries'
make: *** [all-common] Error 1
any ideas how to resolve it?
--
Éliás Tamás / Thomas Elias
Okleveles mérnök-informatikus / Master of Science in Information Technology (MSC)
Vizsgázott Cisco hálózati mérnök / Certified Cisco Network Engineer
Vizsgázott IBM UDB DB2 Adatbázis Adminisztrátor / Certified IBM UDB DB2 Database
Administrator
Rendszerintegrátor - Rendszergazda / IT System Integrator - System administrator
mailto: elias.tamas(a)uni-pen.hu
Tel.: +3630/4971626 ; ICQ UIN: 206-714-459 ; SKYPE: "elias.tamas"
OpenPGP public key:
http://pszinfo.hu/elias.tamas.asc
Quote: "Too many people making too many problems!"