Undefined symbol while executing Python

Paul Koning paul_koning@dell.com
Fri Jul 1 19:38:00 GMT 2011


My Red Hat system has installed on it Pythong 2.4.3 and gdb 7.0.1.  Both of these process the Python command "import itertools" without complaint.

On that system I built gdb 7.2 (with some local mods, but not in the Python pieces).  That one blows up when I try that command:

GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=mips64el-pss-netbsdelf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) python import itertools
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: /usr/lib/python2.4/lib-dynload/itertoolsmodule.so: undefined symbol: PyObject_SelfIter
Error while executing Python code.
(gdb) quit

Any ideas what's wrong or how to fix this?

	paul



More information about the Gdb mailing list