From: Joel Brobecker <brobecker@adacore.com>
To: Paul Koning <paul_koning@dell.com>
Cc: gdb@sourceware.org
Subject: Re: Undefined symbol while executing Python
Date: Tue, 05 Jul 2011 15:01:00 -0000 [thread overview]
Message-ID: <20110705150123.GF15572@adacore.com> (raw)
In-Reply-To: <AD631A14-F043-4190-9B42-8CF067E661A9@dell.com>
> Thanks, that cured the problem (once I figured out where to insert
> it). It turns out that, while there is a /usr/lib/libpython2.4, the
> gdb link is done against /usr/lib/python2.4/config/libpython2.4.a.
> I'm not sure why. It's probably actually a good thing because that
> binary is being built for a group of people, some of whom have a
> different version of python installed.
It's been a while since I looked at this, but I do remember that
the Python team has decided that the default way of doing things
is to create the static lib, and to link against the static lib.
Things get a little fuzzier for me on how the Python binaries
are built for the various distros, as they all build Python
with the shared version available. ISTR that some systems
have a shared libpython on the one hand, and then a python install
that was build with static python. As a result, python-config.py
would still think that python was statically linked and would
think that there is no shared libpython.
Anyways, I'm just rambling, and could be completely off the mark.
> Anyway, it would be good if gdb built correctly (i.e., with that
> switch) out of the box rather than requiring manual non-obvious
> hacking.
I can't remember why I never submitted this patch. But I remember
that some of the changes we made in-house at AdaCore were not
suitable for everyone, and thus were withdrawn.
I can look again at submitting this bit, if I can convince myself
(and others) that it doesn't have a potential negative impact, but
right now is not the best time for me :-(.
--
Joel
prev parent reply other threads:[~2011-07-05 15:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 19:38 Paul Koning
2011-07-01 20:56 ` Paul Koning
2011-07-02 2:08 ` Joel Brobecker
2011-07-05 13:57 ` Paul Koning
2011-07-05 15:01 ` Joel Brobecker [this message]
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=20110705150123.GF15572@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=paul_koning@dell.com \
/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