php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1320 Apache 1.3.6 won't compile with PHP module
Submitted: 1999-04-16 05:03 UTC Modified: 1999-06-27 22:28 UTC
From: petteri at surffi dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.7 OS: Solaris 2.5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: petteri at surffi dot net
New email:
PHP Version: OS:

 

 [1999-04-16 05:03 UTC] petteri at surffi dot net
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 $


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-27 21:38 UTC] sas at cvs dot php dot net
Looks like you have installed bind manually and didn't link with libbind.a. Reconfigure with

LDFLAGS=-L/some/path/lib LIBS=-lbind ./configure ...

/some/path is where bind is installed. On Linux, it's /usr/local/bind. Remember that find(1) is your friend.
 [1999-06-27 21:40 UTC] sas at cvs dot php dot net
We need some clever way to find out whether we need to link with bind. 
 [1999-06-27 22:28 UTC] sas at cvs dot php dot net
Ok, PHP pulls out the symbol from libbind now. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 03:01:27 2024 UTC