473,326 Members | 2,111 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,326 software developers and data experts.

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_FromUnsignedLong 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 1777
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)

iD8DBQFBduRUJd01MZaTXX0RAj6mAJ0ec1wLYaj2RvUGoOGP4E gQu+7pjACeJiwU
QDKj2lZj4ecXYRNoZ4S1LB4=
=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
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...
29
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...
9
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....
8
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
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....
23
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
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...
4
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
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.