python2.4-dbg and C modules

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hanke@volny.cz

    python2.4-dbg and C modules


    Hello,

    please, when I try to run my code under python2.4-dbg
    from Ubuntu, the interpreter complains that the Py_InitModule4
    symbol is undefined in a C module I'm using (PyOpenAL):

    ImportError: /var/lib/python-support/python2.4/_openal.so: undefined
    symbol: Py_InitModule4

    Google reveals that this problem is not specific just to PyOpenAL,
    but I couldn't find out what is the essence of the problem and how
    python-2.4dbg is different from python2.4 except for including
    debugging symbols, because in plain python2.4 the module works
    fine. Also, the same thing happens with python 2.5 (not the
    -dbg variant).

    Please, what is the problem and how to overcome it?

    Thank you,
    Hynek Hanke


  • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

    #2
    Re: python2.4-dbg and C modules

    please, when I try to run my code under python2.4-dbg
    from Ubuntu, the interpreter complains that the Py_InitModule4
    symbol is undefined in a C module I'm using (PyOpenAL):
    >
    ImportError: /var/lib/python-support/python2.4/_openal.so: undefined
    symbol: Py_InitModule4
    >
    Google reveals that this problem is not specific just to PyOpenAL,
    but I couldn't find out what is the essence of the problem and how
    python-2.4dbg is different from python2.4 except for including
    debugging symbols, because in plain python2.4 the module works
    fine.
    The dbg version does not define Py_InitModule4, but
    Py_InitModule4T raceRefs. This is a safety-measure to prevent modules
    compiled for the nodebug version of Python to load into the debug
    version. There are major changes to the internal interpreter data
    structures in the debug version, so you have to recompile your module
    with the debug headers.

    HTH,
    Martin

    Comment

    Working...