I want to compile a program (http://BOINC.Berkeley.EDU) statically
for all Linux distributions.

I cannot figure out how to get `gethostbyname' to work correctly:
a program compiled with `gcc -static' will not work on RH8 or
RH9. Under unstable, gcc produces a warning 

     /tmp/ccGpzTId.o(.text+0x18): In function `main':
     : warning: Using 'gethostbyname' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking


which seems to indicate that as long as the appropriate glibc is
available on the running machine (RH9), it should work.  But
gethostbyname() returns empty results on RH9.

Ideas?  (How does mozilla's static distribution do it?)


-- 
Karl Chen 2003-10-08 00:52


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to