Hi Vivek,

Which Linux kernel version are you using? Perhaps the static linked glibc is
different then what matches with the kernel (which is a motivation for the
compiler warning in the first place).

I'd check if the compiler output used the right glibc.a file for example.


        Oscar


On 23/6/12 8:21 AM, vivekanandhan natarajan wrote:
> Hi,
> I am trying to build libcurl statically with my application.I get these
> warnings after my build
> 
> "Using 'getaddrinfo' in statically linked applications requires at runtime
> the shared libraries from the glibc version used for linking"
> 
> When i run my application, i get segmentation fault.Using gdb i traced
> these things,
> 
> #1  0x006c16da in __pthread_initialize_minimal_internal () from
> /lib/libpthread.so.0
> #2  0x006c1218 in call_initialize_minimal () from /lib/libpthread.so.0
> #3  0x006c0da8 in _init () from /lib/libpthread.so.0
> #4  0x0855b6bb in call_init ()
> #5  0x0855b7d0 in _dl_init ()
> #6  0x08558531 in dl_open_worker ()
> #7  0x08556b6a in _dl_catch_error ()
> #8  0x08557e9e in _dl_open ()
> #9  0x085361e6 in do_dlopen ()
> #10 0x08556b6a in _dl_catch_error ()
> #11 0x0853636e in __libc_dlopen_mode ()
> #12 0x0852edaa in __nss_lookup_function ()
> #13 0x08525860 in gaih_inet ()
> #14 0x08527218 in getaddrinfo ()
> #15 0x08319722 in Curl_getaddrinfo_ex ()
> #16 0x08315f10 in Curl_getaddrinfo ()
> 
> Can anyone help me ?
> 
> Thanks
> Vivek
> 
> 
> 
> 
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to