freeze problem, undefined symbol

S

STB

Hi. I'm trying to freeze a test program that uses curses. This test
program consists of nothing more than an 'import curses' statement. This
program runs fine if I just have the interpreter run it.

Freeze runs correctly except for the following warning (which according
to the README for freeze will not prevent the program from running on
the machine that is doing the compiling):

Warning: unknown modules remain: _curses _socket _tkinter binascii
cStringIO math pcre pwd select strop termios time

The resulting C source compiles fine. However when I try to run the binary:

Traceback (most recent call last):
File "test.py", line 1, in ?
import curses
File "/usr/local/lib/python2.2/curses/__init__.py", line 15, in ?
from _curses import *
ImportError: /usr/local/lib/python2.2/lib-dynload/_curses.so:
undefined symbol: _Py_TrueStruct

Does anyone know how I can fix this?

Python: 2.2.3, compiled from source
OS: RedHat Linux 7.2 i386
 
M

Martin v. =?iso-8859-15?q?L=F6wis?=

STB said:
Does anyone know how I can fix this?

No, but can you please report the linker line that you have used to
link the binary?

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top