linking errors with debug build of Python2.4.3

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Wiechert

    #1

    linking errors with debug build of Python2.4.3

    Hi list,

    I've created a fresh build of Python 2.4.3 using the following configuration

    $ ./configure --with-pydebug --prefix=/usr/local/debug --enable-shared
    --with-fpectl --with-signal-module

    in particular I used --with-pydebug.

    Now when I start the interpreter some dynamically loaded modules do not see
    debug-related symbols:

    $ /usr/local/debug/bin/python
    Python 2.4.3 (#1, May 12 2006, 05:35:54)
    [GCC 4.1.0 (SUSE Linux)] on linux2
    Type "help", "copyright" , "credits" or "license" for more information.
    Traceback (most recent call last):
    File "/etc/pythonstart", line 7, in ?
    import readline
    ImportError: /usr/local/debug/lib/python2.4/lib-dynload/readline.so: undefined
    symbol: _Py_RefTotal[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]

    I've attached a shell session with the outputs of ldd and nm on readline.so

    What did I do wrong?
    My System is SuSE Linux 10.1 on Intel.

    Any help would be much appreciated.

    Thanks, Martin.

  • nnorwitz@gmail.com

    #2
    Re: linking errors with debug build of Python2.4.3

    Martin Wiechert wrote:[color=blue]
    > Hi list,
    >
    > I've created a fresh build of Python 2.4.3 using the following configuration
    >
    > $ ./configure --with-pydebug --prefix=/usr/local/debug --enable-shared
    > --with-fpectl --with-signal-module
    >
    > What did I do wrong?[/color]

    Try with just: ./configure --with-pydebug --prefix=/usr/local/debug

    I think the problem is --enable-shared. I'm not sure what you are
    doing, but you probably don't need the other options. The signal
    module should always be built, I've never even seen the
    --with-signal-module option. :-)

    n

    Comment

    • Martin Wiechert

      #3
      Re: linking errors with debug build of Python2.4.3

      You were right, leaving out --with-pydebug did the trick.

      Thanks, Martin


      On Sunday 28 May 2006 03:53, nnorwitz@gmail. com wrote:[color=blue]
      > Martin Wiechert wrote:[color=green]
      > > Hi list,
      > >
      > > I've created a fresh build of Python 2.4.3 using the following
      > > configuration
      > >
      > > $ ./configure --with-pydebug --prefix=/usr/local/debug --enable-shared
      > > --with-fpectl --with-signal-module
      > >
      > > What did I do wrong?[/color]
      >
      > Try with just: ./configure --with-pydebug --prefix=/usr/local/debug
      >
      > I think the problem is --enable-shared. I'm not sure what you are
      > doing, but you probably don't need the other options. The signal
      > module should always be built, I've never even seen the
      > --with-signal-module option. :-)
      >
      > n[/color]

      Comment

      • Martin Wiechert

        #4
        Re: linking errors with debug build of Python2.4.3

        Nonsense! I meant leaving out --enable-shared.

        On Sunday 04 June 2006 16:17, Martin Wiechert wrote:[color=blue]
        > You were right, leaving out --with-pydebug did the trick.
        >
        > Thanks, Martin
        >
        > On Sunday 28 May 2006 03:53, nnorwitz@gmail. com wrote:[color=green]
        > > Martin Wiechert wrote:[color=darkred]
        > > > Hi list,
        > > >
        > > > I've created a fresh build of Python 2.4.3 using the following
        > > > configuration
        > > >
        > > > $ ./configure --with-pydebug --prefix=/usr/local/debug --enable-shared
        > > > --with-fpectl --with-signal-module
        > > >
        > > > What did I do wrong?[/color]
        > >
        > > Try with just: ./configure --with-pydebug --prefix=/usr/local/debug
        > >
        > > I think the problem is --enable-shared. I'm not sure what you are
        > > doing, but you probably don't need the other options. The signal
        > > module should always be built, I've never even seen the
        > > --with-signal-module option. :-)
        > >
        > > n[/color][/color]

        Comment

        Working...