importing C libraries, Solaris2.6, gcc2.95 :(
Rich Salz
rsalz at zolera.com
Fri Mar 1 11:19:55 EST 2002
I have a Solaris 2.6 machine, gcc 2.95.3 installed in /usr/local;
/usr/local/bin is in my $PATH ; /usr/ccs/bin is not in my $PATH. I
have python 2.1.1 sources; I did "./configure" with no flags.
Attempting to import any library that includes a C shared library
fails with the same backtrace:
(gdb) bt 6
#0 0xef5a4674 in strlen ()
#1 0x64204 in PyString_FromString (
str=0xd26368 <Address 0xd26368 out of bounds>) at
Objects/stringobject.c:89
#2 0x60da4 in PyDict_SetItemString (v=0xba68c,
key=0xd26368 <Address 0xd26368 out of bounds>, item=0xc3cf8)
at Objects/dictobject.c:1403
#3 0x37278 in Py_InitModule4 (name=0xadf5c "", methods=0xeed36790,
doc=0x0,
passthrough=0x0, module_api_version=802040) at
Python/modsupport.c:57
#4 0xeed25b5c in init_tkinter ()
at /export/home/jjb/Python-2.1.1/Modules/_tkinter.c:2113
#5 0x35088 in _PyImport_LoadDynamicModule (name=0xefffef80
"_tkinter",
pathname=0xefffea90
"/usr/local/lib/python2.1/lib-dynload/_tkinter.so",
fp=0xab7c8) at ./Python/importdl.c:52
What am I doing wrong in building?
Replies to me will be summarized, thanks!
More information about the Python-list
mailing list