Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 29 Apr 2014 22:57:52 -0400
From: Rich Felker <>
Subject: Re: static musl-based gdb and -fPIC

On Tue, Apr 29, 2014 at 05:40:06PM -0400, wrote:
> I built a static gdb (v7.7, passing --disable-gdbserver to
> configure) and _thought_ that everything was fine.  Then I checked
> the build logs and saw that gdb refused to use the present libexpat,
> libncurses/tinfo, and libpython.  In the case of expat, at least,
> the "solution" was easy, albeit unacceptable: temporarily break my
> local system by renaming (so that gdb cannot find it).
> But for ncurses and python that didn't work.
> It appears that expat is passed to the linker as a full path
> (/full/path/to/ rather than normally (-lexpat), which
> makes the whole thing break since there is no way to request a
> static expat instead.  Note, however, that this problem is not
> musl-specific
> (

It's not clear at all to me from your email or from the linked thread
who the passer in "is passed" might be. Is this something broken in
gdb's build script, or expat's pkg-config or similar, or ct-ng, or
something else?

> At this point I am no longer seeking a solution (unless you have one
> ready), but thought I should share this for the record.  As an
> aside, it looks like the static python interpreter is missing some
> modules as well (see, for instance,

Static python is not very useful since most important python
extensions are partly implemented as C code, which necessarily must be
dynamically loaded.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.