public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* getaddrinfo is not statically compiled
@ 2010-04-28 11:15 bassis
  2010-04-28 11:26 ` Andrew Haley
  0 siblings, 1 reply; 10+ messages in thread
From: bassis @ 2010-04-28 11:15 UTC (permalink / raw)
  To: gcc-help


I have included the header netdb.h, where getaddrinfo is included, but gcc
issues this warning:

warning: Using 'getaddrinfo' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking

gcc -m32 -static -s -O2 -std=c99 -D_POSIX_C_SOURCE=200112L myprogram.c

How can I statically compile whatever file is missing ?

-- 
View this message in context: http://old.nabble.com/getaddrinfo-is-not-statically-compiled-tp28385701p28385701.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: getaddrinfo is not statically compiled
@ 2010-04-29 21:45 Andrew Haley
  0 siblings, 0 replies; 10+ messages in thread
From: Andrew Haley @ 2010-04-29 21:45 UTC (permalink / raw)
  To: gcc-help

On 04/28/2010 09:21 PM, bassis wrote:

> 
> Andrew Haley wrote:
>>
>> I tell you what I'd do: I'd either link against the CentOS libraries or
>> install a CentOS virtual machine and build in there.
>>
>> Andrew.
>>
> Unfortunately, using the CentOS libraries segfaults my program.  The server
> uses a 2004 CentOS but the oldest available at centos.org is 2007.

http://vault.centos.org/2.1/

Andrew.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-04-29  8:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-28 11:15 getaddrinfo is not statically compiled bassis
2010-04-28 11:26 ` Andrew Haley
2010-04-28 14:52   ` bassis
2010-04-28 16:24     ` Andrew Haley
2010-04-29 16:19       ` bassis
2010-04-29 17:17         ` Andrew Haley
2010-04-29 19:38           ` bassis
2010-04-28 17:07     ` John (Eljay) Love-Jensen
2010-04-29  8:18       ` bassis
2010-04-29 21:45 Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).