Problems trying to add LDAP to PHP

From: Date: Tue, 15 May 2001 17:49:48 +0000
Subject: Problems trying to add LDAP to PHP
Groups: php.install 
Request: Send a blank email to php-install+get-3170@lists.php.net to get a copy of this message
Hi, folks Apologies if the answer to this is embarrassingly simple, but I've had a mammoth webtrawl and am getting nowhere... Forgive me if this is the wrong place to be asking. I can't get the iPlanet LDAP SDK to interface to PHP. The PHP configure and makes go ok, the Apache configure goes ok. However, when I try and make Apache I get: Undefined first referenced symbol in file ldap_count_values_len modules/php4/libphp4.a(ldap.o) ... ldap_count_entries modules/php4/libphp4.a(ldap.o) ld: fatal: Symbol referencing errors. No output written to httpd collect2: ld returned 1 exit status I'd be extremely grateful for any quick tips or, failing that, for your deep and insightful wisdom! Kind regards, Steve Software versions: Solaris 8 (64 bit) Apache 1.3.19 php 4.0.4 iPlanet LDAP SDK for Solaris (128 bit international) v5 gcc 2.95.2 have tried /usr/xpg4/bin/make and /usr/ccb/bin/make My LD_LIBRARY_PATH includes: /local/lib: \ /local/ldap/lib: \ /local/php4/lib: \ /local/php4/lib/include/php (perhaps I don't need the latter?) Command history: cd ~/php-src-dir rm config.cache make clean ./configure --prefix=/local/php4 --enable-track-vars --with-ldap=/local/ldap --with-mysql=/local/mysql --with-apache=path_to_apache_src_dir --with-imap=/local/imap/c-client make make install cp php.ini-dist /usr/local/lib/php.ini cd ~/apache-src-dir ./configure --prefix=/local/apache --activate-module=src/modules/php4/libphp4.a make [dies] (When I've tried a different LD_LIBRARY_PATH or version of make in my PATH, I've rerun all of the above - is that strictly necessary?)

« previous php.install (#3170) next »