linking failure
| From: | Jie Gao | Date: | Mon, 15 May 2000 06:13:46 +0000 |
| Subject: | linking failure | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18743@lists.php.net to get a copy of this message | ||
Hi All,
% uaname -a
SunOS banquo 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-5_10
Using:
php4-200005141645
In php:
% ./configure \
--enable-track-vars \
--enable-force-cgi-redirect \
--with-imap=/usr/local/src/imap-4.7c \
--with-config-file-path=/usr/local/lib/php4_imp \
--with-mysql=/usr/local/mysql \
--with-sybase=/sybase \
--with-db2=/usr/local/BerkeleyDB \
--with-ldap=/usr/local/src/openldap \
--with-ndbm \
--with-gettext \
--with-apache=/usr/local/src/apache
In Apache:
% LD_LIBRARY_PATH=/sybase/lib:/usr/local/mysql/lib:/sybase/lib:/usr/local/lib; export
LD_LIBRARY_PATH
CC=gcc OPTIM="-O3" ./configure \
--prefix=/usr/local/apache_imp_php4 \
--activate-module=src/modules/extra/mod_usyd_proxy_add_forward.c \
--enable-module=most --enable-module=usyd_proxy_add_forward \
--activate-module=src/modules/php4/libphp4.a
% LD_LIBRARY_PATH=/usr/local/mysql/lib:/sybase/lib:/usr/local/src/php:/usr/local/lib; export
LD_LIBRARY_PATH
% make
...
<=== src/modules
gcc -c -I./os/unix -I./include -O3 -DSOLARIS2=270 -I/u0/src/php4-200005141645
-I/u0/src/php4-200005141645/Zend
-I/u0/src/php4-200005141645/Zend -I/u0/src/php4-200005141645 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
./apaci
modules.c
gcc -c -I./os/unix -I./include -O3 -DSOLARIS2=270 -I/u0/src/php4-200005141645
-I/u0/src/php4-200005141645/Zend
-I/u0/src/php4-200005141645/Zend -I/u0/src/php4-200005141645 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED ./apaci
buildmark.c
gcc -O3 -DSOLARIS2=270 -I/u0/src/php4-200005141645 -I/u0/src/php4-200005141645/Zend
-I/u0/src/php4-200005141645/Zend
-I/u0/src/php4-200005141645 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci \
-o httpd buildmark.o modules.o modules/proxy/libproxy.a modules/extra/libextra.a
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/BerkeleyDB/lib -R/usr/local/src/imap-4.7c/lib -R/usr/local/src/openldap/lib
-R/usr/local/mysql/lib/mysql
-R/sybase/lib -L/usr/ucblib -L/usr/local/BerkeleyDB/lib -L/usr/local/src/imap-4.7c/lib
-L/usr/local/src/openldap/lib
-L/usr/local/mysql/lib/mysql -L/sybase/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4
-L/usr/local/lib -lintl -lc-client -ldl -lsybdb -lmysqlclient -lldap -ldb -lresolv -lresolv -lm
-ldl -lcrypt -lnsl
-lsocket -lsocket -llber -lsocket -lnsl
Undefined first referenced
symbol in file
isfinite modules/php4/libphp4.a(zend_operators.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 /u0/src/apache_1.3.12/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /u0/src/apache_1.3.12
*** Error code 1
make: Fatal error: Command failed for target `build'
Any way out of this?
Jie