#22574 [NoF->Opn]: unsatisfied symbols freeaddrinfo and getaddrinfo

From: Date: Fri, 09 May 2003 18:03:46 +0000
Subject: #22574 [NoF->Opn]: unsatisfied symbols freeaddrinfo and getaddrinfo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39401@lists.php.net to get a copy of this message
 ID:               22574
 User updated by:  john345 at earthlink dot net
 Reported By:      john345 at earthlink dot net
-Status:           No Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: SCO OpenServer 5.0.6
 PHP Version:      4.3.2-dev
 New Comment:

Same error during make.

Undefined                       first referenced
 symbol                             in file
freeaddrinfo                        main/network.lo
getaddrinfo                         main/network.lo
sapi/cli/php: fatal error: Symbol referencing errors. No output written
to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Yes, the system has freeaddrinfo and getaddrinfo. Here is part of the
man page entry:

  getaddrinfo(SLIB)
  *****************

 
____________________________________________________________________________
  getaddrinfo -- nodename-to-address translation in
protocol-independent
  manner

  freeaddrinfo- nodename-to-address translation in protocol-independent
manner

  gai_strerror- nodename-to-address translation in protocol-independent
manner

  Syntax
  ======

     cc ... -lsocket

     #include <sys/socket.h>
     #include <netdb.h>

     int
     getaddrinfo(const char *nodename, const char *servname,
             const struct addrinfo *hints, struct addrinfo **res);
     void
     freeaddrinfo(struct addrinfo *ai);

     char *
     gai_strerror(int ecode);


  Description
  ===========

     The getaddrinfo() function is defined for protocol-independent
nodename-
     to-address translation.  It performs functionality of
gethostbyname(SLIB)
     and getservbyname(SLIB),  in more sophisticated manner.

     The addrinfo structure is defined as a result of including the
<netdb.h>
     header:
...


Previous Comments:
------------------------------------------------------------------------

[2003-05-09 07:31:20] sniper@php.net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2003-05-01 19:43:51] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

You might have got the one with broken configure.
Also, does your libsocket.* contain these missing functions?


------------------------------------------------------------------------

[2003-04-16 12:12:29] john345 at earthlink dot net

Still get same two unsatisfied symbols, freeaddrinfo and getaddrinfo,
but this time it is reported that they are first referenced in
main/network.o.

------------------------------------------------------------------------

[2003-04-11 19:18:33] magnus@php.net

Please leave as Feedback until you can provide requested information.
Thank you.

------------------------------------------------------------------------

[2003-04-11 16:43:39] john345 at earthlink dot net

Got download. Won't be able to do compile until Monday.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22574

-- 
Edit this bug report at http://bugs.php.net/?id=22574&edit=1



Thread (26 messages)

« previous php.bugs (#39401) next »