From: Steffen Dettmer <steffen.dettmer@googlemail.com>
To: gdb@sourceware.org
Subject: Re: how to build gdb-7.1 --with-python?
Date: Mon, 28 Jun 2010 11:04:00 -0000 [thread overview]
Message-ID: <AANLkTinZl114wi5fX9e4d-Vhd2wHeLcx25pg9tquZ9UI@mail.gmail.com> (raw)
In-Reply-To: <m3aaqj5946.fsf@fleche.redhat.com>
On Fri, Jun 25, 2010 at 7:12 PM, Tom Tromey <tromey@redhat.com> wrote:
>
> Steffen> checking for python2.5... no
> Steffen> checking for python2.4... no
> Steffen> configure: error: python is missing or unusable
>
> Try --with-python=/usr/local
Again, configure worked, but make failed after a while.
configure: WARNING: expat support disabled; some features may be
unavailable.
checking whether to use python... /usr/local
checking for python2.6... no
checking for python2.5... no
checking for python2.4... no
configure: error: no usable python found at /usr/local
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/usr/local/build/gdb-7.1/build-python2'
make: *** [all] Error 2
BTW, I think specifying default directories might not be a good idea
and it leads to a gcc warning:
configure:9525: gcc -o conftest -g -O2 -I/usr/local/include
conftest.c -lncurses -lz -lm -L/usr/local/lib -lpython2.5 >&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
but anyway, linking fails with exactly the same problem:
/usr/local/build/Python-2.5.5/build/../Python/dynload_shlib.c:130:
undefined reference to `dlopen'
(also dlsym, dlerror)
/usr/local/lib/libpython2.5.a(thread.o): In function `PyThread_acquire_lock':
/usr/local/build/Python-2.5.5/build/../Python/thread_pthread.h:334:
undefined reference to `sem_wait'
(also sem_trywait, pthread_attr_setstacksize, pthread_create...)
/usr/local/lib/libpython2.5.a(posixmodule.o): In function `posix_openpty':
/usr/local/build/Python-2.5.5/build/../Modules/posixmodule.c:3519:
undefined reference to `openpty'
(also forkpty)
as before, it seems to need -ldl and -lpthread, which is missing
on command line and cannot be added via `LIBS="-ldl -lpthread"'.
> With CVS gdb, you instead point to the 'python' executable.
>
> Steffen> Now I got resolved symbols from libdl (dl_open and
> Steffen> friends) and even from libpthread (sem_init, pthread_create...).
>
> This sounds familiar... I think it was fixed after 7.1.
i.e. in CVS gdb?
> It is more ordinary to install and use libpython.so, not the .a.
> If you want to go this route it may be simpler to try CVS gdb (though I
> am not sure -- I'm always just using my distro's python).
ok, I'll try python --enable-shared... I guess it has a bigger
chance to succeed?
Steffen
prev parent reply other threads:[~2010-06-28 11:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 15:40 Steffen Dettmer
2010-06-25 17:13 ` Tom Tromey
2010-06-28 11:04 ` Steffen Dettmer [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=AANLkTinZl114wi5fX9e4d-Vhd2wHeLcx25pg9tquZ9UI@mail.gmail.com \
--to=steffen.dettmer@googlemail.com \
--cc=gdb@sourceware.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