ID: 11873
Updated by: venaas
Reported By: brethes@imerir.com
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 2.8
PHP Version: 4.0.6
New Comment:
Which LDAP library are you using? Looks like your LDAP
header files define LDAP_API_VERSION > 2000 or that
HAVE_NSLDAP is defined. The library should then contain
ldap_parse_reference. Maybe you're simply linking with
the wrong LDAP library. Could there be two different libraries installed? Or multiple header files
(ldap.h, lber.h). Try to look for LDAP_API_VERSION in ldap.h and
see if HAVE_NSLDAP is set in main/php_config.h. If you
can't find any of those, this shouldn't happen normally.
Well, that's all I can think of at the moment
Previous Comments:
------------------------------------------------------------------------
[2001-07-04 07:01:09] brethes@imerir.com
make
...
gcc -DSOLARIS2=280 -I/usr/local/php-4.0.6 -I/usr/local/php-4.0.6/main -I/usr/local/php-4.0.6/main
-I/usr/local/php-4.0.6/Zend -I/usr/local/php-4.0.6/Zend -I/usr/local/php-4.0.6/TSRM
-I/usr/local/php-4.0.6/TSRM -I/usr/local/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a
main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -R/usr/ucblib
-R/usr/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.0 -L/usr/ucblib
-L/usr/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.0 -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lpam -ldl -lldap -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket
-lsocket -lgcc -lsocket -lnsl
Undefined first referenced
symbol in file
ldap_parse_reference modules/php4/libphp4.a(ldap.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /usr/local/apache_1.3.20/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/apache_1.3.20
*** Error code 1
make: Fatal error: Command failed for target `build'
------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11873&edit=1