res_search & dn_expand undefined reference php 4.2.1 / apache 1.3.26 / redhat 6.2
| From: | Dan Harrington | Date: | Thu, 20 Jun 2002 17:16:48 +0000 |
| Subject: | res_search & dn_expand undefined reference php 4.2.1 / apache 1.3.26 / redhat 6.2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103172@lists.php.net to get a copy of this message | ||
Hey everyone,
I'm getting this error regarding the PHP source files when compiling Apache.
These are the arguments I used to configure php 4.2.1:
./configure --with-apache=../apache_1.3.26 \
--with-jpeg-dir=/usr/local/lib --with-pgsql --with-gd \
--with-ttf=/usr/local/lib --with-t1lib=/usr/local/lib \
--enable-gd-imgstrttf \
--enable-trans-sid --with-imlib=/usr/lib --with-mysql
and this is what I used to configure apache 1.3.26 :
./configure \
"--with-layout=Apache" \
"--prefix=/usr/local/apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=so" \
"$@"
[...snip]
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=22 -I/usr/local/src/php-4.2.1 -I/usr/local/src/php-4.2.1/m
ain -I/usr/local/src/php-4.2
.1/main -I/usr/local/src/php-4.2.1/Zend -I/usr/local/src/php-4.2.1/Zend -I/usr/local/src/php-4.2.1/T
SRM -I/usr/local/src/php-4.2
.1/TSRM -I/usr/local/src/php-4.2.1 -DUSE_EXPAT -I./lib/expat-lite
./apaci modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -I/usr/local/src/php-4.2.1 -I/usr/local/src/php-4.2.1/m
ain -I/usr/local/src/php-4.2
.1/main -I/usr/local/src/php-4.2.1/Zend -I/usr/local/src/php-4.2.1/Zend -I/usr/local/src/php-4.2.1/T
SRM -I/usr/local/src/php-4.2
.1/TSRM -I/usr/local/src/php-4.2.1 -DUSE_EXPAT -I./lib/expat-lite ./apaci buildmark.c
gcc -DLINUX=22 -I/usr/local/src/php-4.2.1 -I/usr/local/src/php-4.2.1/main -I/usr/local/src/php-4.2.
1/main -I/usr/local/src/php-
4.2.1/Zend -I/usr/local/src/php-4.2.1/Zend -I/usr/local/src/php-4.2.1/TSRM -I/usr/local/src/php-4.2.
1/TSRM -I/usr/local/src/php-
4.2.1 -DUSE_EXPAT -I./lib/expat-lite ./apaci -rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a
main/libmain.a ./os/unix/libos.a ap/l
ibap.a
lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/pgsql/lib -rdynamic -L/u
sr/local/lib -L/usr/
local/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lpq -lgd -l
t1 -lttf -ljpeg -lcrypt -lre
solv -lm -ldl -lnsl -lresolv -lcrypt -lm -lcrypt -ldl
modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr':
/usr/local/src/php-4.2.1/ext/standard/dns.c:246: undefined reference to `__res_search'
modules/php4/libphp4.a(dns.o): In function `zif_getmxrr':
/usr/local/src/php-4.2.1/ext/standard/dns.c:307: undefined reference to `__res_search'
/usr/local/src/php-4.2.1/ext/standard/dns.c:334: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.26'
make: *** [build] Error 2
[...snip]
and the compile then dies.
I've searched the groups and there are some references to this problem, but no solutions that I
can
find.
Redhat 6.2 is the OS.
Thanks
Dan