|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-06 14:44 UTC] john345 at earthlink dot net
After a successful run of configure, I ran make. The compile failed with two unsatisfied symbols, freeaddrinfo and getaddrinfo, first referenced in main/network.lo. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
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: ...