This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/11051] New: Undefined Python linker messages


I get a number of linker messages along the line of "undefined reference to
`PyUnicodeUCS2_Decode'"  I saw someone had a similar issue for Samba
(http://lists.samba.org/archive/samba/2008-June/141536.html) indicating this may
be due to a bad Python install, but it got no replies.  I'm not that familar
with Python, but I noticed that while in /usr/lib/libpython2.4.so  there is no
PyUnicodeUCS2_Decode, there is a PyUnicodeUCS4_Decode.
Please let me know what other info you need.

GDB: 7.0
GCC: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
OS: CentOS 5.3
Python: Python 2.4.6

Relevant output:
[mcmaster@gespenst gdb-7.0]$ make
...
gcc -g -O2      \
                -o gdb gdb.o libgdb.a \
                   ../readline/libreadline.a ../opcodes/libopcodes.a
../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   
-lncurses -lz -lm     -lpython2.4 -lexpat ../libiberty/libiberty.a 
gnulib/libgnu.a -ldl -rdynamic
libgdb.a(py-cmd.o): In function `cmdpy_completer':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-cmd.c:197:
undefined reference to `PyUnicodeUCS2_Decode'
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-cmd.c:200:
undefined reference to `PyUnicodeUCS2_Decode'
libgdb.a(py-cmd.o): In function `cmdpy_function':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-cmd.c:138:
undefined reference to `PyUnicodeUCS2_Decode'
libgdb.a(py-frame.o): In function `frapy_name':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-frame.c:132:
undefined reference to `PyUnicodeUCS2_Decode'
libgdb.a(py-frame.o): In function `gdbpy_frame_stop_reason_string':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-frame.c:407:
undefined reference to `PyUnicodeUCS2_Decode'
libgdb.a(py-type.o):/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-type.c:519:
more undefined references to `PyUnicodeUCS2_Decode' follow
libgdb.a(py-utils.o): In function `unicode_to_encoded_python_string':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-utils.c:117:
undefined reference to `PyUnicodeUCS2_AsEncodedString'
libgdb.a(py-utils.o): In function `unicode_to_encoded_string':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-utils.c:96:
undefined reference to `PyUnicodeUCS2_AsEncodedString'
libgdb.a(py-utils.o): In function `python_string_to_unicode':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-utils.c:73:
undefined reference to `PyUnicodeUCS2_FromEncodedObject'
libgdb.a(py-value.o): In function `valpy_string':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-value.c:254:
undefined reference to `PyUnicodeUCS2_Decode'
libgdb.a(py-value.o): In function `valpy_str':
/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb/./python/py-value.c:384:
undefined reference to `PyUnicodeUCS2_Decode'
collect2: ld returned 1 exit status
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/home/mcmaster/document/software/GNU/GDB/gdb-7.0/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/mcmaster/document/software/GNU/GDB/gdb-7.0'
make: *** [all] Error 2

-- 
           Summary: Undefined Python linker messages
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: johndmcmaster at gmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11051

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]