Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* dependency of GDB-6.8.50-27032009 on "libpython2.4"
@ 2009-05-19 12:00 suma sharma
  2009-05-21 17:40 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: suma sharma @ 2009-05-19 12:00 UTC (permalink / raw)
  To: gdb

Hi,
I have a m16cm32c toolchain, which I have used to compile the
following test case:
#include<stdio.h>

int main()
{
        int i=10, j=20, k;
        j++;
        if(j>20)
                printf("%d",j);
        else
                printf("%d",i);
        return 0;
}

I compiled the test case using the following command:
$ /usr/share/m16cm32c_elf-1/bin/m32c-elf-gcc test_gdb.c -msim -g -o test_gdb.out

I have built the gdb utility i.e. m32c-elf-gdb and m32c-elf-gdbtui
using GDB-6.8.50-27032009 on an FC5 system.
When I try debugging the output file " test_gdb.out" on FC7 using the
following command:
$./m32c-elf-gdbtui test_gdb.out
I get the following error:
--------------------------------------------------------------------------
./m32c-elf-gdbtui: error while loading shared libraries:
libpython2.4.so.1.0: cannot open shared object file: No such file or
directory
--------------------------------------------------------------------------

The FC5 system where the GDB was built has "libpython2.4.so" at
"/usr/lib", while the FC7 system where I am using the GDB for
debugging has "libpython2.5.so" at "/usr/lib".
Why does GDB-6.8.50-27032009 have a dependency on "libpython2.4",
whereas "GDB-6.8.50-11102009" doesn.t seem to have any such dependency
on any "libpython"? :(

Could anyone please help me?
Thanking you in advance.

Regards,
Sumasamyukta


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dependency of GDB-6.8.50-27032009 on "libpython2.4"
  2009-05-19 12:00 dependency of GDB-6.8.50-27032009 on "libpython2.4" suma sharma
@ 2009-05-21 17:40 ` Tom Tromey
  2009-05-21 18:14   ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2009-05-21 17:40 UTC (permalink / raw)
  To: suma sharma; +Cc: gdb

>>>>> ">" == suma sharma <sumasamyukta@gmail.com> writes:

>> The FC5 system where the GDB was built has "libpython2.4.so" at
>> "/usr/lib", while the FC7 system where I am using the GDB for
>> debugging has "libpython2.5.so" at "/usr/lib".
>> Why does GDB-6.8.50-27032009 have a dependency on "libpython2.4",
>> whereas "GDB-6.8.50-11102009" doesn.t seem to have any such dependency
>> on any "libpython"? :(

We added Python scripting capabilities to gdb during this period.

>> Could anyone please help me?

If you want to transport gdb binaries between different machines, you
have a couple of choices.  One choice is to make sure that the same
libraries are available everywhere.  Another one is to configure with
--disable-python.  This will make it so that gdb is not linked against
the python library.

Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dependency of GDB-6.8.50-27032009 on "libpython2.4"
  2009-05-21 17:40 ` Tom Tromey
@ 2009-05-21 18:14   ` Eli Zaretskii
  2009-05-22 16:59     ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2009-05-21 18:14 UTC (permalink / raw)
  To: tromey; +Cc: sumasamyukta, gdb

> Cc: gdb@sourceware.org
> From: Tom Tromey <tromey@redhat.com>
> Date: Thu, 21 May 2009 11:39:44 -0600
> 
> If you want to transport gdb binaries between different machines, you
> have a couple of choices.  One choice is to make sure that the same
> libraries are available everywhere.  Another one is to configure with
> --disable-python.  This will make it so that gdb is not linked against
> the python library.

Isn't a static link yet another possibility?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dependency of GDB-6.8.50-27032009 on "libpython2.4"
  2009-05-21 18:14   ` Eli Zaretskii
@ 2009-05-22 16:59     ` Tom Tromey
  2009-05-22 20:04       ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2009-05-22 16:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: sumasamyukta, gdb

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: gdb@sourceware.org
>> From: Tom Tromey <tromey@redhat.com>
>> Date: Thu, 21 May 2009 11:39:44 -0600
>> 
>> If you want to transport gdb binaries between different machines, you
>> have a couple of choices.  One choice is to make sure that the same
>> libraries are available everywhere.  Another one is to configure with
>> --disable-python.  This will make it so that gdb is not linked against
>> the python library.

Eli> Isn't a static link yet another possibility?

Sure.  In that case you have to build python yourself (at least Fedora
doesn't ship the static library) and you must also arrange for the
python runtime files to be installed in the correct place.

Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dependency of GDB-6.8.50-27032009 on "libpython2.4"
  2009-05-22 16:59     ` Tom Tromey
@ 2009-05-22 20:04       ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2009-05-22 20:04 UTC (permalink / raw)
  To: Tom Tromey; +Cc: sumasamyukta, gdb

> Cc: sumasamyukta@gmail.com, gdb@sourceware.org
> From: Tom Tromey <tromey@redhat.com>
> Date: Fri, 22 May 2009 10:59:38 -0600
> 
> Eli> Isn't a static link yet another possibility?
> 
> Sure.  In that case you have to build python yourself (at least Fedora
> doesn't ship the static library) and you must also arrange for the
> python runtime files to be installed in the correct place.

Right.

Btw, unless GDB needs a large portion of Python runtime, naming those
which are needed in README could also be helpful piece of information
for someone who wants to carry GDB on a memory stick.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-22 20:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-19 12:00 dependency of GDB-6.8.50-27032009 on "libpython2.4" suma sharma
2009-05-21 17:40 ` Tom Tromey
2009-05-21 18:14   ` Eli Zaretskii
2009-05-22 16:59     ` Tom Tromey
2009-05-22 20:04       ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox