linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Per Jessen <per@computer.org>
To: linux-c-programming@vger.kernel.org
Subject: Re: building libc
Date: Wed, 12 Dec 2007 21:15:33 +0100	[thread overview]
Message-ID: <47604165.2070305@computer.org> (raw)
In-Reply-To: <475D5001.60600@computer.org>

Per Jessen wrote:
> All,
> 
> I'm trying to build a shared libary with a modified getaddrinfo() from
> glibc.  getaddrinfo() sorts the results from DNS according to RFC3484,
> but this screws up round-robin load-balancing.
> 
> Ian Jackson put a fix into ubuntus glibc 2.6.1, and this is what I'm
> trying to use.
> 
> So, I've got glibc-2.6.1 from ubuntu all built, and I'm now trying to
> build my own mygetaddrinfo.so containing just the patched getaddrinfo().
> Has anyone attempted something similar, and if so, do you have any hints
> for me?

Alright, I realize this was perhaps a little unclear.  What I'm trying
to achieve is actually quite simple:

- to replace the normal getaddrinfo() routine from the default glibc
libary with my own version.

My "own" version just happens to be 2000 lines of getaddrinfo from the
ubuntu glibc which was patched to fix the RFC3484 problem.  I'm just not
very keen on working my way through the 2000 lines and fixing things
such that it will compile outside of the complete glibc tree.


Per Jessen, Zurich


  reply	other threads:[~2007-12-12 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 14:41 building libc Per Jessen
2007-12-12 20:15 ` Per Jessen [this message]
     [not found]   ` <84bd26ef0712121743p77080df0t48a2e68443611337@mail.gmail.com>
2007-12-13  1:44     ` Darío Mariani
2007-12-13  7:31     ` Per Jessen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47604165.2070305@computer.org \
    --to=per@computer.org \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).