Anon
12-13-2001, 01:55 PM
I'm trying to compile Apache and PHP with LDAP support on my Solaris 8 server. Here is what I've done:
apache:
./configure
php:
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars --with-ldap
make
make install
and then apache again:
./configure --prefix=/opt/apache --datadir=/home/www --activate-module=src/modules/php4/libphp4.a
make
make fails on this:
gcc -DSOLARIS2=280 -I/tmp/php-4.0.6 -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/Ze
nd -I/tmp/php-4.0.6/TSRM -I/tmp/php-4.0.6/TSRM -I/tmp/php-4.0.6 -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/li
bos.a ap/libap.a lib/expat-lite/libexpat.a -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/u
cblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-lpam -ldl -lldap -lcrypt -lresolv -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 /tmp/apache_1.3.22/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /tmp/apache_1.3.22
*** Error code 1
make: Fatal error: Command failed for target `build'
Anybody got an idea?
Eivind
apache:
./configure
php:
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars --with-ldap
make
make install
and then apache again:
./configure --prefix=/opt/apache --datadir=/home/www --activate-module=src/modules/php4/libphp4.a
make
make fails on this:
gcc -DSOLARIS2=280 -I/tmp/php-4.0.6 -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/Ze
nd -I/tmp/php-4.0.6/TSRM -I/tmp/php-4.0.6/TSRM -I/tmp/php-4.0.6 -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/li
bos.a ap/libap.a lib/expat-lite/libexpat.a -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/u
cblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-lpam -ldl -lldap -lcrypt -lresolv -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 /tmp/apache_1.3.22/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /tmp/apache_1.3.22
*** Error code 1
make: Fatal error: Command failed for target `build'
Anybody got an idea?
Eivind