php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8351 Undefined symbol
Submitted: 2000-12-21 09:17 UTC Modified: 2001-01-03 09:09 UTC
From: gkaczmarczyk at monoexpress dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4 OS: Solaris 7 SPARC
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: gkaczmarczyk at monoexpress dot com
New email:
PHP Version: OS:

 

 [2000-12-21 09:17 UTC] gkaczmarczyk at monoexpress dot com
Software: Solaris 7 SPARC, PHP 4.0.4, Apache 1.3.14, 
gcc 2.95-2
(Although I've also tried PHP 4.0.3pl1& Apache 1.3.9 - 
with same results)

I get "Undefined symbol getaddrinfo & freeaddrinfo first 
referenced in file modules/php4/libphp4.a(network.o)" 
when compiling Apache. I get the SAME error when I 
start Apache after compiling PHP as a DSO module.

Here is the exact error:

      -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  -L/usr/ucblib -Lmodules/php4 
-L../modules/php4 -L../../modules
/php4 -lmodphp4  -lpam  -ldl -lresolv -lresolv -lm -ldl 
-lcrypt -lnsl -lsocket
-lsocket   -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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-21 09:24 UTC] sniper@php.net
What is the configure line you have used?

--Jani
 [2001-01-03 04:04 UTC] jmoore@php.net
--- Note sent to php-dev by Chuq Von Rospach ---
I've run into bug 8351 myself. here's some more information on it.

the problem occurs when you install Bind 8. The bind includes and 
bind libs are moved into /usr/local, and configure doesn't seem to 
handle it properly. The missing modules are part of the -lbind 
library from bind 8. I haven't yet got this all worked out (I may 
just punt and link against the default resolvers), but as more and 
more people move to bind 8, clean support in configure for it ought 
to be in the release.

chuq
-- 
Chuq Von Rospach - Plaidworks Consulting (mailto:chuqui@plaidworks.com)
Apple Mail List Gnome (mailto:chuq@apple.com)

We're visiting the relatives. Cover us.
-------
 [2001-01-03 09:09 UTC] jmoore@php.net
Note from user:
I've actually figured a workaround:

Install all necessary GNU compiling packages ( autoconf, automake, bison, flex, gcc, make) FOLLOWED BY Sun compiler support packages ( As listed at http://www.science.uva.nl/pub/solaris/solaris2/Q6.2.html).
The GNU packages have to be installed before the Sun packages.

No more error messages, and PHP with Apache are working fine.
------

Seems that this is fixed to me, please reopen if this does not work for you Chuq.

James
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 10:00:02 2026 UTC