473,385 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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


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.

May 24 '06 #1
3 2497
Martin Wiechert wrote:
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?


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

May 28 '06 #2
You were right, leaving out --with-pydebug did the trick.

Thanks, Martin
On Sunday 28 May 2006 03:53, nn******@gmail.com wrote:
Martin Wiechert wrote:
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?


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

Jun 4 '06 #3
Nonsense! I meant leaving out --enable-shared.

On Sunday 04 June 2006 16:17, Martin Wiechert wrote:
You were right, leaving out --with-pydebug did the trick.

Thanks, Martin

On Sunday 28 May 2006 03:53, nn******@gmail.com wrote:
Martin Wiechert wrote:
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?


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

Jun 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jari Aalto+usenet | last post by:
Hi, Where I can specify more linking search directories for a Python module that makes a gcc build? Setting the LD_LIBRARY_PATH on command line does not seem to propagate to the linker. Jari...
0
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
5
by: J | last post by:
Hi everyone, I started embedding python into a 3D graphics App and I came across this linking problem. SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol...
3
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
5
by: eberesche | last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of ASN.1 - structures risquély. One of my colleagues means, this would deal something with masochism ;-). Result should be a DLL...
0
by: dotyet | last post by:
Hi Everyone, I am trying to build a DB2 UDB UDF which can perform regex over the table data. The user defined function will call an external .dll file to do the task. I am referring to the...
1
by: moshehaim1 | last post by:
Hi, I am working with C++ code that needs to be maintained both in debug and release versions. The environment is Windows 32 bit with MSVC8. I downloaded the python installation for Win32 and...
4
by: Markus Dahlbokum | last post by:
Hello, I'm trying to link python statically with qt and pyqt. I've tried this in several ways but never succeeded. At the moment the final make runs without errors but I get import errors when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.