i successfully installed php-4.2.2 to work in apache-1.3.26 on Solaris 8. I used the instructions at http://www.php.net/manual/en/install.unix.php.
Now to get ldap-support i configured php like this:
./configure --with-apache=<path-to-apache> --with-ldap=<path-to-openldap-dir> --enable-track-vars
make, make install works fine. In the apache-dir
./configure ./configure --activate-module=src/modules/php4/libphp4.a
works too. But after typing 'make' the following error occurs:
-------snip------------------
gcc -DSOLARIS2=280 -I/opt/php/php-4.2.2 -I/opt/php/php-4.2.2/main -I/opt/php/php-4.2.2/main -I/opt/php/php-4.2.2/Zend -I/opt/php/php-4.2.2/Zend -I/opt/php/php-4.2.2/TSRM -I/opt/php/php-4.2.2/TSRM -I/opt/php/php-4.2.2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci \
-o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -R/usr/ucblib -R/usr/local/lib -L/usr/ucblib -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lldap -llber -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lcrypt -lsocket -lnsl -lpthread
Undefined first referenced
symbol in file
ldap_first_reference modules/php4/libphp4.a(ldap.o)
ldap_start_tls_s modules/php4/libphp4.a(ldap.o)
ldap_memfree modules/php4/libphp4.a(ldap.o)
ldap_parse_result modules/php4/libphp4.a(ldap.o)
ldap_get_option modules/php4/libphp4.a(ldap.o)
ldap_set_option modules/php4/libphp4.a(ldap.o)
ldap_rename_s modules/php4/libphp4.a(ldap.o)
ldap_next_reference modules/php4/libphp4.a(ldap.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
make[2]: [target_static] Error 1
make[2]: Leaving directory /opt/apache/1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory/opt/apache/1.3.26'
make: [build] Error 2
-----------snip---------------
I don't know what went wrong. Could it be the wrong openldap-directory? openldap installs in different /usr/local-directories, but i pointed to the installation directory. Is that correct?
Thanks a lot!