php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11873 Apache make error with module php4 and ldap
Submitted: 2001-07-04 07:01 UTC Modified: 2001-12-25 09:53 UTC
From: brethes at imerir dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Solaris 2.8
Private report: No CVE-ID: None
 [2001-07-04 07:01 UTC] brethes at imerir dot 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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-09 17:06 UTC] venaas@php.net
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


 [2001-08-10 11:06 UTC] alindeman@php.net
no feedback
 [2001-12-25 09:53 UTC] venaas@php.net
The problem is that on Solaris 2.8, ldap.h claims to have
ldap_parse_reference(), while the library doesn't have it.
I've now added a check for this, please try latest CVS or
snapshot. Let me know if this didn't help. To compile older
PHP on Solaris 2.8, you might "fix it", by simply putting
#if 0
#endif
first and last in the ldap_parse_reference PHP function in
ext/ldap/ldap.c

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC