Bug #1320: Apache 1.3.6 won't compile with PHP module
| From: | petteri at surffi dot net | Date: | Fri, 16 Apr 1999 09:03:05 +0000 |
| Subject: | Bug #1320: Apache 1.3.6 won't compile with PHP module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5094@lists.php.net to get a copy of this message | ||
From: petteri@surffi.net
Operating system: Solaris 2.5.1
PHP version: 3.0.7
PHP Bug Type: Compile Failure
Bug description: Apache 1.3.6 won't compile with PHP module
Hello
I have this output when compiling apache with php module. At the end of this
message is the full output from compiler.
Undefined first referenced
symbol in file
__dn_expand modules/php3/libphp3.a(dns.o)
__res_search modules/php3/libphp3.a(dns.o)
__dn_skipname modules/php3/libphp3.a(dns.o)
I've read a bunch of archives and have seen suggestions for this problem,
but they didn't help - I already have -lresolv in the libphp3.module file. I
checked the libs in /usr/lib with "nm", and libresolv.a was there.
The system is Solaris 2.5.1, uname -a output:
SunOS bigbang 5.5.1 Generic_103640-01 sun4u sparc SUNW,Ultra-1
"Configure" line was copy&pasted from your web site. I just changed the apache version
number from "x" to "6".
The system should be pretty much "out-of-box", there's no special stuff
done.
Any help appreciated. I have successfully use PHP on Linux box before, see
the results in http://pk.tky.hut.fi (site is mostly in Finnish,
though :=)
Thanks for the PHP team - PHP & Linux rocks. I hope that this goddamn
Solaris would too...
Sincerely,
Petteri Hiisilä
petteri@surffi.net
[bigbang]/users/petteri/pusertmp/work/apache-php/apache_1.3.6 $ make
===> src
make[1]: Entering directory `/p/petteri/work/apache-php/apache_1.3.6'
make[2]: Entering directory `/p/petteri/work/apache-php/apache_1.3.6/src'
===> src/regex
make[3]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php3
make[4]: Nothing to be done for `all'.
<=== src/modules/php3
<=== src/modules
gcc -c -I./os/unix -I./include -DSOLARIS2=251 -DUSE_HSREGEX
./apaci
modules.c
gcc -c -I./os/unix -I./include -DSOLARIS2=251 -DUSE_HSREGEX ./apaci
buildmark.c
gcc -DSOLARIS2=251 -DUSE_HSREGEX ./apaci \
-o httpd buildmark.o modules.o modules/php3/libphp3.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmo
dphp3 -R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -lmy
sqlclient -lm -ldl -lsocket -lnsl -lresolv -ls
ocket -lnsl
Undefined first referenced
symbol in file
__dn_expand modules/php3/libphp3.a(dns.o)
__res_search modules/php3/libphp3.a(dns.o)
__dn_skipname modules/php3/libphp3.a(dns.o)
ld: fatal: Symbol referencing errors. No output written to httpd
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/p/petteri/work/apache-php/apache_1.3.6/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/p/petteri/work/apache-php/apache_1.3.6'
make: *** [build] Error 2
[bigbang]/users/petteri/pusertmp/work/apache-php/apache_1.3.6 $
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net