From: Brian G. <ge...@ai...> - 2005-04-22 18:54:09
|
Chuck Hays wrote: > It looks like I am out of luck compiling the player server statically > due to the use of gethostbyname. > >>From the man page: > Programs that use the interfaces described in this manual > page cannot be linked statically since the implementations > of these functions employ dynamic loading and linking of > shared objects at run time. > > When compiled with the static flag, this message is generated: > : warning: Using 'gethostbyname' in statically linked applications requires at runtime > the shared libraries from the glibc version used for linking Looks like gethostbyname is obsolete, and that getaddrinfo is the new way to go. I've just changed the server to use the latter call, and checked the new code into CVS. Attached is a patch against player-1.6.2 that makes this change. I have no idea whether this will fix your static linking issue, but it's worth a try. Also, for folks working from CVS, let me know if your build is broken by this change. I'm not sure what standard, if any, ensures the presence of getaddrinfo (but it seems to be available on Linux and OS X). brian. |