Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: python config question
Date: Tue, 02 Mar 2010 05:22:00 -0000	[thread overview]
Message-ID: <20100302052219.GF2850@adacore.com> (raw)
In-Reply-To: <4B8C5DD4.1070501@vmware.com>

>     configure --with-python=$PYPATH
> 
> Shouldn't I expect gdb to be linked against python version Y?

I would think so. But from what I can tell by looking at the configury,
I think that your GDB was in fact linked against the Python install
that you provided (using -L${with_python}/lib in the link command).
However, your loader is selecting the libpython in your default install
because it does not know about you local one. You have several solutions
to fix this, typical ones being: use th rpath during the link, or
add your python install lib dir to LD_LIBRARY_PATH, for instance.

-- 
Joel


  reply	other threads:[~2010-03-02  5:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-02  0:37 Michael Snyder
2010-03-02  5:22 ` Joel Brobecker [this message]
2010-03-02 18:11   ` Michael Snyder
2010-03-03  4:51     ` Joel Brobecker
2010-03-03  9:21       ` Jan Kratochvil
2010-03-03  9:46         ` Joel Brobecker
2010-03-03 15:29         ` Daniel Jacobowitz
2010-03-03 17:46           ` Michael Snyder
2010-03-03 17:53             ` Daniel Jacobowitz

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=20100302052219.GF2850@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@vmware.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