Static Apache build with LDAP
| From: | John McCoy, Jr | Date: | Thu, 29 Mar 2001 17:51:12 +0000 |
| Subject: | Static Apache build with LDAP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2627@lists.php.net to get a copy of this message | ||
I seem to be missing a library while configuring with Apache 1.3.14 openLDAP
1.2.11 and PHP 4.0.4.pl1 on Sol 7 Sparq
PHP configured and built fine.
Here is the congiure line for Apache:
# SSL_BASE=../openssl-0.9.6 EAPI_MM=../mm-1.1.3 CFLAGS=-I/usr/local/include
\
LDFLAGS=-L/usr/local/lib LIBS=-lldap ./configure --prefix=/usr/local/apache
\
--activate-module=src/modules/php4/libphp4.a --enable-module=ssl \
--activate-module=src/modules/perl/libperl.a --enable-module=perl
This is generated by the configure script:
cd ..;
gcc -DSOLARIS2=270 -DMOD_SSL=207101 -I/usr/local/src/php-4.0.4pl1 -I/usr/lo
cal/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1/main -I/usr/local/sr
c/php-4.0.4pl1/Zend -I/usr/local/src/php-4.0.4pl1/Zend -I/usr/local/src/php-
4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4p
l1 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include -D_LA
RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM -DUSE_EXPAT -I./lib/e
xpat-lite -DNO_DL_NEEDED -I/usr/local/include
./apaci -I. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I./../../mm-1.
1.3 -L/usr/local/src/openssl-0.9.6 -L./../../mm-1.1.3/.libs -L/usr/local/li
b -o helpers/dummy
helpers/dummy.c -lldap -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-sol
aris2.7/2.95.2 -R/usr/local/src/imap-2000c/c-client -L/usr/ucblib -L/usr/lo
cal/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -L/usr/local/src/imap-2000c/c-cl
ient -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam
-lc-client -ldl -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket
-lgcc -lsocket -lnsl -lssl -lcrypto -L/usr/local/lib
/usr/local/lib/perl5/5.6.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/usr/
local/lib/perl5/5.6.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -
lcrypt -lsec -lmm
Undefined first referenced
symbol in file
ber_dup /usr/local/lib/libldap.so
ber_get_int /usr/local/lib/libldap.so
ber_printf /usr/local/lib/libldap.so
<SNIP>
ber_alloc_t /usr/local/lib/libldap.so
ber_sockbuf_add_io /usr/local/lib/libldap.so
ld: fatal: Symbol referencing errors. No output written to helpers/dummy
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
======== Error Output for sanity check ========
============= End of Error Report =============
What library should these ber_* calls be in?
Thanks for anything.
********************************
John McCoy jmccoy@mills.edu
Systems Administrator
Central Systems
Mills College
510-430-3321
********************************