[PHP-DEV] PHP w/LDAP support crapping out
I am attempting to compile PHP v.4.1.0 with support for Openldap v.1.2.12. Below is my configure line: ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-openssl=/usr/local/ssl \ --with-imap-ssl=/usr/local/ssl \ --with-imap=/usr/local/src/imap-2000c \ --with-ldap=/usr/local/openldap-1.2.12um7 \ --with-mcrypt \ --with-mm \ --with-mysql \ --with-xml \ --with-zlib \ --with-gettext \ --enable-inline-optimization \ --enable-track-vars All the individual piece configure, make, and install with nary an error. But when I move to fire up the server, I get: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free /usr/local/apache/bin/apachectl restart: httpd could not be started I know this has been covered, but the only solution I found by searching was to add the lib directory to my /etc/ld.so.conf and run ldconfig. I tried that and it's not working. Below is my /etc/ld.so.conf file: /usr/local/openldap-1.2.12um7/lib /usr/local/lib /usr/lib /lib Any help would be GREATLY appreciated. I'm at the limits of my understanding with this. Thanks! -- I have spoken. J. Rashaad JacksonUNIX Systems Administrator 2032 Samuel T. Dana Building(W) 734.615.1422 Ann Arbor, MI 48109 (M) 734.649.6641 http://www.umich.edu/~jrashaad (F) 734.763.8965 msg34541/pgp0.pgp Description: PGP signature
Re: [PHP-DEV] PHP w/LDAP support crapping out
On Mon, Feb 25, 2002 at 01:33:15PM -0500, J. Rashaad Jackson wrote : I am attempting to compile PHP v.4.1.0 with support for Openldap v.1.2.12. Below is my configure line: ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-openssl=/usr/local/ssl \ --with-imap-ssl=/usr/local/ssl \ --with-imap=/usr/local/src/imap-2000c \ --with-ldap=/usr/local/openldap-1.2.12um7 \ --with-mcrypt \ --with-mm \ --with-mysql \ --with-xml \ --with-zlib \ --with-gettext \ --enable-inline-optimization \ --enable-track-vars All the individual piece configure, make, and install with nary an error. But when I move to fire up the server, I get: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free /usr/local/apache/bin/apachectl restart: httpd could not be started I know this has been covered, but the only solution I found by searching was to add the lib directory to my /etc/ld.so.conf and run ldconfig. I tried that and it's not working. Below is my /etc/ld.so.conf file: /usr/local/openldap-1.2.12um7/lib /usr/local/lib /usr/lib /lib Any help would be GREATLY appreciated. I'm at the limits of my understanding with this. Thanks! Have you double checked your system that no stale libraries are handing around? Try running 'ldd libphp4.so' and see if the proper ldap libraries are used. If this still not works, try build ldap as a module for a start and see if this works. -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] php and ldap ?
Hi Is this still a problem? I don't really know how to solve it, but it sounds like LDAP was found when building, but that the PHP binary was not linked with the LDAP library. Near the end when libphp4.so is built you should see several libs specified, you might try to see if LDAP is listed, and if not, add it by hand. The bigger question is why it failed for you, but that is pretty hard to debug, I'm no guru on the build process, so tracking down the problem by mail is pretty hard. And that's why no one has responded I guess. Stig -- 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]
[PHP-DEV] php and ldap ?
Hallo, i have the same problem : On Sun, Jul 15, 2001 at 05:17:40PM -0500, osman.bayona wrote: Hi... I have this issue that is killing me. I installed PHP 4.0.4 with Solaris 8 and Apache. I want to use LDAP connecting to a server in the net (not the same server where i'm working on) And i configure PHP with: configure --with-apxs=/usr/apache/bin/apxs --with-pgsql=/usr/local/pgsql --with-ldap Which LDAP library? iPlanet coming with Solaris? OpenLdap then 'make install' and everything works fine until i try: /usr/apache/bin/apachectl start then i have this @!% message: Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apdap_unbind_s: referenced symbol not found Does it really say /usr/apdap_unbind_s? What on earth is that... dap_unbind_s would have been more normal (without /usr...) Should it be: /usr/apache/bin/httpd: ldap_unbind_s: referenced symbol not found or something perhaps? yes What do you see if you do ldd /usr/apache/libexec/libphp4.so? I suspect that the LDAP library found is not found at run time. ldd should show you something. Where do you have your library? Look for libldap... ldd libphp4.so libpam.so.1 = /lib/libpam.so.1 libdl.so.1 =/lib/libdl.so.1 libresolv.so.2 =/lib/libresolv.so.2 libm.so.1 = /lib/libm.so.1 libcrypt_i.so.1 = /lib/libcrypt_i.so.1 libnsl.so.1 = /lib/libnsl.so.1 libsocket.so.1 =/lib/libsocket.so.1 libc.so.1 = /lib/libc.so.1 libgen.so.1 = /lib/libgen.so.1 libmp.so.2 =/lib/libmp.so.2 /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1 that is it ! an here the error on startup the apacheserver : Failed to start apache : Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apache/libexec/libphp4.so: symbol ldap_unbind_s: referenced symbol not found /usr/apache/bin/apachectl start: httpd could not be started Can you help me please ? MfG Oliver -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- 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]