login
Header Space

 
 

Re: building libc

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darío Mariani <mariani.dario@...>
Cc: <linux-c-programming@...>
Date: Thursday, December 13, 2007 - 3:31 am

Darío Mariani wrote:


Yeah, this is exactly what I intend to try.  My problem is in
getaddrinfo() which has been misbehaving (for quite some time). The
glibc code was fixed by Ian Jackson in glibc 2.6.1 for ubuntu, so I
figured I'd just borrow that and stick the getaddrinfo() object-code
into a shared library which I'd preload with LD_PRELOAD.  Sounds simple,
doesn't it?

Well, building the glibc code was no big deal, but as for "just borrow
that", it's not easy.  If I build getaddrinfo.c outside the glibc build
structure, it throws about a million errors.  Option #1 is to attempt to
fix that, but with getaddrinfo.c being about 2000 lines, I'm a little
hesitant about that approach.
Option #2 (I think) is to use the object-code from the built glibc, but
when I try to use the shared library (containing just getaddrinfo.o), it
complains about unresolved symbols - e.g. __inet_ntoa.


/Per Jessen
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: building libc, Per Jessen, (Thu Dec 13, 3:31 am)
speck-geostationary