ID: 11873 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Compile Failure Operating System: Solaris 2.8 PHP Version: 4.0.6 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2001-08-10 11:06:37] [EMAIL PROTECTED] no feedback ------------------------------------------------------------------------ [2001-07-09 17:06:30] [EMAIL PROTECTED] 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-07-04 07:01:09] [EMAIL PROTECTED] 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' ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=11873&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]