[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6447) Can't compile openldap with --enable-dynamic on solari sparc 10



Full_Name: Biren Patel
Version: openldap-2.4.19
OS: SPARC Solaris 10
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (216.223.34.13)


I can't compile openldap with option --enable-dynamic on SPARC Solaris 10.
Receiving the error provided below. It complies fine without the
--enable-dynamic
but when complie PHP 5 with ldap, PHP gives me the same error. I have norrowed
down to 
Openldap not able to compile all the libs as dynamic loadable. Please help

Using gcc.

Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
 
/bin/sh ../../libtool --mode=link gcc  -D_AVL_H  -L/usr/local/openssl/lib/
-L/usr/local/BerkeleyDB/lib -L/usr/local/lib/ -R/usr/local/BerkeleyDB/lib
-R/usr/local/lib   -o apitest apitest.o libldap.la
../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl 
-lssl -lcrypto   -lresolv -lgen -lnsl -lsocket
gcc -D_AVL_H -o .libs/apitest apitest.o  -L/usr/local/openssl/lib/
-L/usr/local/BerkeleyDB/lib -L/usr/local/lib/ ./.libs/libldap.so
/u/bpatel/openldap-2.4.21/libraries/liblber/.libs/liblber.so
../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a
-lsasl -lssl -lcrypto -lresolv -lgen -lnsl -lsocket -Wl,--rpath
-Wl,/usr/local/openldap/lib -Wl,--rpath -Wl,/usr/local/BerkeleyDB/lib
-Wl,--rpath -Wl,/usr/local/lib
/usr/ccs/bin/ld: ./.libs/libldap.so: dlclose: invalid version 13 (max 0)
./.libs/libldap.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
make[2]: Leaving directory `/u/bpatel/openldap-2.4.21/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/u/bpatel/openldap-2.4.21/libraries'
make: *** [all-common] Error 1