[Python-bugs-list] [ python-Bugs-521706 ] Python expects __eprintf on Solaris

noreply@sourceforge.net noreply@sourceforge.net
Sat, 23 Feb 2002 15:09:14 -0800


Bugs item #521706, was opened at 2002-02-22 19:58
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=521706&group_id=5470

Category: Build
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Kochanski (gpk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python expects __eprintf on Solaris

Initial Comment:
ftp_up.py
Traceback (most recent call last):
  File "/usr/local/bin/ftp_up.py", line 10, in ?
    import ftplib
  File "/usr/local/lib/python2.1/ftplib.py", line 46,
in ?
    import socket
  File "/usr/local/lib/python2.1/socket.py", line 41,
in ?
    from _socket import *
ImportError: ld.so.1: /usr/local/bin/python: fatal:
relocation error: file
/usr/local/lib/python2.1/lib-dynload/_socket.so: symbol
__eprintf: referenced symbol not found


On Solaris 2.6 (current patches), Python 2.1.2
out-of-the-box install.

nm *.a | grep eprintf   shows nothing in /lib and
/usr/lib.  Presumably, the build system is expecting
that function to exist, when it really doesn't.

Same problem on Solaris 2.7:

/usr/local/bin/python
Python 2.1.2 (#1, Jan 23 2002, 10:44:53) [C] on sunos5
Type "copyright", "credits" or "license" for more
information.
>>> import _socket
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: ld.so.1: /usr/local/bin/python: fatal:
relocation error: file
/usr/local/lib/python2.1/lib-dynload/_socket.so: symbol
__eprintf: referenced symbol not found
>>> 


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-02-23 15:09

Message:
Logged In: YES 
user_id=21627

This is not a bug in Python, but in your installation.
Python does not, in itself, ever call __eprintf. Instead,
certain versions of gcc emit references to this symbol when
expanding the assert macro. In turn, you need to link such
object files with libgcc.a.

Are you certain that you have build all relevant objects
with the system compiler (including, for example, any
OpenSSL installation)?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=521706&group_id=5470