[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

Jeff Blaine report at bugs.python.org
Mon Jul 18 02:56:46 CEST 2011


Jeff Blaine <cjblaine at gmail.com> added the comment:

FWIW, this same problem exists with 2.7.1, compiled by myself, and only on some Solaris 10 boxes of ours that have not had a lot of recent patching.

==================================================================

On an old-ish Solaris 10 box:

% /tmp/py271test/bin/python -m test.regrtest
Traceback (most recent call last):
  File "/tmp/py271test/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/tmp/py271test/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/tmp/py271test/lib/python2.7/test/regrtest.py", line 211, in <module>
    from test import test_support
  File "/tmp/py271test/lib/python2.7/test/test_support.py", line 10, in <module>
    import socket
  File "/tmp/py271test/lib/python2.7/socket.py", line 47, in <module>
    import _socket
ImportError: ld.so.1: python: fatal: relocation error: file /tmp/py271test/lib/python2.7/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found
==================================================================

On a modern Solaris 10 box patched 2 months ago:


% /tmp/py271test/bin/python -m test.regrtest
[ runs, takes too long, so we'll test the stuff that ]
[ imports socket ... ]
^C


Python-2.7.1:cairo> for i in `grep -l "import socket" /tmp/py271test/lib/python
2.7/test/*py | sed 's/\.py//g'`; do echo "RUNNING $i"; /tmp/py271test/bin/pytho
n -m test.`basename $i`; done 2>&1 | /usr/sfw/bin/ggrep -E '(OK|RUNNING)'
RUNNING /tmp/py271test/lib/python2.7/test/test_asyncore
OK (skipped=2)
RUNNING /tmp/py271test/lib/python2.7/test/test_docxmlrpc
OK
RUNNING /tmp/py271test/lib/python2.7/test/test_epoll
RUNNING /tmp/py271test/lib/python2.7/test/test_ftplib
OK
RUNNING /tmp/py271test/lib/python2.7/test/test_httplib
OK (skipped=1)
RUNNING /tmp/py271test/lib/python2.7/test/test_import
OK
RUNNING /tmp/py271test/lib/python2.7/test/test_kqueue
RUNNING /tmp/py271test/lib/python2.7/test/test_logging
OK
RUNNING /tmp/py271test/lib/python2.7/test/test_mailbox
OK
RUNNING /tmp/py271test/lib/python2.7/test/test_multiprocessing
...etc...

----------
nosy: +Jeff.Blaine

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12013>
_______________________________________


More information about the Python-bugs-list mailing list