ID: 22574 Comment by: jmdubois at ibcfrance dot fr Reported By: john345 at earthlink dot net Status: No Feedback Bug Type: Compile Failure Operating System: SCO OpenServer 5.0.6 PHP Version: 4.3.2-dev New Comment:
Same problem. In fact /usr/include/netdb.h declares getaddrinfo and freeaddrinfo but the functions not are included in the libraries. It's a SCO problem. Previous Comments: ------------------------------------------------------------------------ [2003-06-09 08:43:50] [EMAIL PROTECTED] 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-06-04 23:05:32] [EMAIL PROTECTED] Can not fix this as I do not have access to any machine with SCO. Try find out what lib contains these functions.. ------------------------------------------------------------------------ [2003-06-04 07:31:12] john345 at earthlink dot net Any new developments on this front? ------------------------------------------------------------------------ [2003-05-09 13:03:45] john345 at earthlink dot net 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: ... ------------------------------------------------------------------------ [2003-05-01 19:43:51] [EMAIL PROTECTED] 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? ------------------------------------------------------------------------ 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