473,569 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python 2.3.4 under AT&T MP RAS SVR4: ld: Symbol referencing errors.

Hi group,

I am not sure if this is the correct place for my question.
If not, please tell me.

I tried to compile Python 2.3.4 under AT&T MP RAS SVR4:
$./configure --prefix=${HOME} --with-threads=no
$make
but make fails because each invocation of ld causes errors like:

....
running build
running build_ext
building 'struct' extension
cc -DNDEBUG -O -OPT:Olimit=0 -I. -I/home/q904958/src/python2_3_
4/./Include -I/home/q904958/src/python2_3_4/Include -
I/home/q904958/src/python2_3_4 -c /home/q904958/src/python2_3_
4/Modules/structmodule.c -o build/temp.dwh1-4.0-3446-2.3/structmodule.o
(cc:) Unknown optimization designation: -OPT:Olimit=0. Opt level 0
assumed.
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-98, NCR Corporation
(c) Copyright 1987-98, MetaWare Incorporated
ld build/temp.dwh1-4.0-3446-2.3/structmodule.o -L/usr/local/lib -o
build/lib.dwh1-4.0-3446-2.3/struct.so
Undefined first referenced
symbol in file
strftime build/temp.dwh1-4.0-3446-2.3/structmodule.o
__wcstok_ptr_ build/temp.dwh1-4.0-3446-2.3/structmodule.o
PyLong_FromUnsi gnedLong build/temp.dwh1-4.0-3446-2.3/structmodule.o
PyInt_Type build/temp.dwh1-4.0-3446-2.3/structmodule.o
PyLong_Type build/temp.dwh1-4.0-3446-2.3/structmodule.o
PyTuple_Type build/temp.dwh1-4.0-3446-2.3/structmodule.o
....
UX:ld: ERROR: build/lib.dwh1-4.0-3446-2.3/struct.so: fatal error: Symbol
referencing errors. No output written to build/lib.dwh1-4.0-3446-
2.3/struct.so
....

My questions are:
1) Does that mean ld is unable to locate libraries?
(Which libraries? strftime() is declared in time.h but
I guess PyInt_Type is Python specific)
2) What is the correct way to specify library locations?
(I tried ./configure --with-libs=-L/usr/lib but
ld arguments did not change)

Thank you for any hints.

Alexander
Jul 18 '05 #1
1 1783
Python has failed to find the proper way to produce shared libraries on
your system, and instead ld tried to produce an executable program.
(possibly without also including the standard system libraries either)

I have no idea why strftime or __wcstok_ptr_ are required by
structmodule.o, but you surmise correctly that the next names listed are
functions in Python. If a shared module was produced, these symbols
would be found at runtime within the python binary instead of being a
link-time error.

Python can build without shared modules--see Modules/Setup.*. This
isn't used much anymore, as far as I know.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBduRUJd0 1MZaTXX0RAj6mAJ 0ec1wLYaj2RvUGo OGP4EgQu+7pjACe JiwU
QDKj2lZj4ecXYRN oZ4S1LB4=
=ItJd
-----END PGP SIGNATURE-----

Jul 18 '05 #2

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

Similar topics

9
3107
by: Jeff Wagner | last post by:
Is there an Expect-like module for Python that is cross platform and, for the most part, does what Expect does? A number of years ago, I wrote some Tcl scripts using Expect for automation. I am trying to convince my good friend who I worked with at the time to try Python. He said, "what about Expect?" I have heard of a Pexpect but was told...
29
3577
by: Bart Nessux | last post by:
Just fooling around this weekend. Wrote and timed programs in C, Perl and Python. Each Program counts to 1,000,000 and prints each number to the console as it counts. I was a bit surprised. I'm not an expert C or Perl programming expery, I'm most familiar with Python, but can use the others as well. Here are my results: C = 23 seconds...
9
3037
by: kbass | last post by:
I am starting to learn Python but I want to know how the job market looks for programming using Python. I really don't see many jobs (probably one or two) that require Python experience at all. Most DBA and SA positions that I have seen require Perl and most development position require Java or C++ so how can learning Python benefit my career...
8
2056
by: Luca T. | last post by:
Ok... Now... I made this simple program as a test: import popen2 r,w,e = popen2.popen3('su -c ls') for line in e.readlines(): print 'E: ' + line for line in r.readlines(): print 'R: ' + line
0
1843
by: Andrea | last post by:
Hello NG, I'm trying to follow the mayavi documentation in order to run mayavi from python. In "Chapter 4. Using MayaVi from Python", there is a simple example like this: # generate the data. from Numeric import * import scipy x = (arange(50.0)-25)/2.0
23
2104
by: Michel Claveau - abstraction méta-galactique non | last post by:
Hi ! If Python is Ok with Unicode, why the next script not run ? # -*- coding: utf-8 -*- def режим(toto): return(toto*3)
3
1746
by: jason.massey | last post by:
Hi all, I've got a weird problem. I was running Python 2.3 and MySQLdb and had everything running fine. Cutting to the chase: After upgrading to 2.4 (and latest modules) the MySQLdb functions in Python can connect to the database, do queries and do inserts. Or rather, it seems to do inserts. If I just run in the Python command
4
9771
by: needin4mation | last post by:
In this code: XmlTextWriter myWriter = new XmlTextWriter(@"C:\Xmldata\myWriter.xml", null); Why do they have the @ at symbol? Why not just the string?
9
2765
by: James Stroud | last post by:
Hello All, I have been trying to make an https client with python, but it seems that, to do this, one needs to have the socket module compiled with ssl. This is not the default. So I have a couple of questions. 1. Where do I specify to compile socket with ssl? I found no obvious option in configure or setup.py or several other files I...
0
7701
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...
0
7615
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...
0
8130
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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...
0
5219
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...
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.