473,699 Members | 2,364 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2506
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
1640
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 root@w2kpicasso:/usr/share/site-python/xmldiff-0.6.3# echo $LD_LIBRARY_PATH
0
1716
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 my Python Code I use threads to communicate over the network and stuff like this. Compilation and linking are working very well under Windows and Linux with the same code. Under the sgi, UNIX machine some errors occur and I don't no why....
5
6764
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 __imp__Py_InitModule4TraceRefs SO.lib(ScnNode.obj) : error LNK2001: unresolved external symbol __imp___Py_RefTotal
3
14524
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 G:\NewUIPackers1\drivers\Unser\bin\WIN32\DEBUG\PPKAW1UI.dll .... LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored UIDLL.def : error LNK2001: unresolved external symbol DllCanUnloadNow
0
2555
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 using the /MT compilation option. Our debug solution's /MTd flag works fine and using /MD also seems to work ok. For some reason I can't fathom, when I use /MT, linking the static excutable completely dies (problems resolving symbols in the STL,...
5
2848
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 which provides the exchange of documents between a DMS and a remote data base. My developing environment is MSVS v.7.1, and the ASN.1 - source texts are generated with the compiler asn1c-0.9.20. Therefore I have in the project cpp-, as well as c...
0
2967
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 following link for doing so: http://www.ibm.com/developerworks/db2/library/techarticle/0301stolze/0301stolze.html While linking the below mentioned code, I am facing some errors. I have installed PCRE and am using Visual C++ 6.0 in 32-bit mode. The
1
3429
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 installed it. When, however, I tried to compile my DLLs in debug mode i got link errors specifying that I need the python25_d.lib. this is the code that generates the dependency on the python25_d.lib
4
2482
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 accessing pyqt. How can I solve this problem? Markus # installing zipimport hook
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.