This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: socket module on solaris
Type: Stage:
Components: Build Versions: Python 2.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: anthonybaxter, loewis, mwh, nnorwitz, rabrads
Priority: normal Keywords:

Created on 2003-02-11 21:02 by rabrads, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (5)
msg14574 - (view) Author: RIck Bradshaw (rabrads) Date: 2003-02-11 21:02
I just built python 2.2.2 on solaris 7 or 2.7 to be
technically correct.  I then fire up the interpreter
and import test.testall. It fails for socket, which is
very import to me and my users. I then import _socket
and get the following info

Python 2.2.2 (#4, Feb  6 2003, 17:17:38) [C] on sunos5
Type "help", "copyright", "credits" or "license" for
more information.
>>> import _socket
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: ld.so.1:
/soft/apps/packages/Python-2.2.2/bin/python: fatal:
relocation error: file
/soft/apps/packages/Python-2.2.2/lib/python2.2/_socket.so:
symbol __eprintf: referenced symbol not found

Thanks for any help.
Rick
msg14575 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-02-11 23:25
Logged In: YES 
user_id=33168

This error looks familiar, but I don't recall the cause. 
Did you have a working version of python on this machine? 
What compiler and version are you using?  Is __eprintf in a
library (libc.a)?  Is that not getting linked?  Is it using
the correct linker and library locations?
msg14576 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-02-12 14:16
Logged In: YES 
user_id=6656

IIRC this usually happens when you compile with gcc and link
with the system ld or vice versa or something like that.
msg14577 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-02-13 08:26
Logged In: YES 
user_id=29957

This means something didn't get linked with -lgcc. As mwh
guessed, this is usually because Solaris' 'ld' was used
instead of the GNU one. Does the build machine have a
working install of binutils as well as gcc?
msg14578 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-03-05 15:32
Logged In: YES 
user_id=21627

Most likely, the OpenSSL library was build with gcc. You
will need to

a) recompile all of Python with gcc, or
b) uninstall the OpenSSL library, or
c) modify Modules/Setup, to tell Python that the socket
module should be built without SSL support.

closing as not-a-bug.
History
Date User Action Args
2022-04-10 16:06:44adminsetgithub: 37967
2003-02-11 21:02:28rabradscreate