From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 6.2
PHP version:      4.1.1
PHP Bug Type:     Compile Failure
Bug description:  Build/libtool will not use static libraries


There seems to have been a change in libtool between 4.0.6 and 4.1.x (this
is happening in both 4.1.x releases so far).
I compile in ldap, but remove the shared objects to be sure that it uses
the static (.a) library.  Up until 4.0.6 this worked.  Now I get
"libldap.so: No such file or directory"
errors.  ldap is not the only one.  There are several external libraries
that I also remove the shared objects to force it to link with static (.a)
libs.  All of these report the same problem when I build php with them.  

For whatever reason it WANTS to use libldap.so despite the existence of
libldap.a.

The Ldap example:

$./configure \
 --with-apxs=/usr1/apache/bin/apxs \
 --with-ldap=shared,/usr1/openldap-2.0.18

$ make
.
.
.
/bin/sh /usr1/php-4.1.1/libtool --silent --mode=link gcc  -I.
-I/usr1/php-4.1.1/ext/ldap -I/usr1/php-4.1.1/main -I/usr1/php-4.1.1
-I/usr1/tempinstall/apache/include -I/usr1/php-4.1.1/Zend
-I/usr1/openldap-2.0.18/include -I/usr1/php-4.1.1/ext/mysql/libmysql
-I/usr1/php-4.1.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208105 -D USE_HSREGEX
-DEAPI -DEAPI_MM -DUSE_EXPAT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64 -I/usr1/php-4.1.1/TSRM -O6 -mpentiumpro -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -prefer-pic   -o ldap.la -avoid-version -module
-rpath /usr1/php-4.1.1/modules  ldap.lo  -R/usr1/openldap-2.0.18/lib
-L/usr1/openldap-2.0.18/lib -lldap -
R/usr1/openldap-2.0.18/lib -L/usr1/openldap-2.0.18/lib -llber
gcc: /usr1/openldap-2.0.18/lib/.libs/libldap.so: No such file or
directory
gcc: /usr1/openldap-2.0.18/lib/.libs/liblber.so: No such file or
directory
make[3]: *** [ldap.la] Error 1
make[3]: Leaving directory `/usr1/php-4.1.1/ext/ldap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr1/php-4.1.1/ext/ldap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr1/php-4.1.1/ext'
make: *** [all-recursive] Error 1
$
-- 
Edit bug report at: http://bugs.php.net/?id=14975&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to