libphp4.a error
| From: | Gregory Kaczmarczyk | Date: | Wed, 20 Dec 2000 17:23:12 +0000 |
| Subject: | libphp4.a error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41960@lists.php.net to get a copy of this message | ||
There seems to be some problem with libphp4.a on my system when compiling into Apache 1.3.9
I constantly get Undefined symbols: getaddrinfo & freeaddrinfo
although socket.h & netdb.h are both included in network.c
I am using php4.0.4
This is the error I get during the apache "make":
-o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/lib
standard.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.
a -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -L/usr/uc
blib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -Lmodules/php4 -L../mo
dules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lresolv -lresolv -lm -ld
l -lcrypt -lnsl -lsocket -lsocket -lgcc -lsocket -lnsl
Undefined first referenced
symbol in file
getaddrinfo modules/php4/libphp4.a(network.o)
freeaddrinfo modules/php4/libphp4.a(network.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
Here is the system I'm compiling on:
Solaris 7 on SPARC, php4.0.3pl1, apache 1.3.9, gcc 2.95-2
PS. I've tried adding -lc option (apparrently those symbols are located in libc.a) - this
problem is driving me crazy! Please - is there anyone who can help?