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

Alex Lai report at bugs.python.org
Fri May 6 03:16:25 CEST 2011

New submission from Alex Lai <alex_lai at scotiacapital.com>:

Hi guys,
  I was knocked down by a error related to a socket library _socket.so when I was trying to compile distribute-0.6.14:

# python3 setup.py install
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
Traceback (most recent call last):
  File "setup.py", line 211, in <module>
    scripts = scripts,
  File "/usr/local/lib/python3.1/distutils/core.py", line 149, in setup
  File "/usr/local/lib/python3.1/distutils/dist.py", line 919, in run_commands
  File "/usr/local/lib/python3.1/distutils/dist.py", line 938, in run_command
  File "build/src/setuptools/command/install.py", line 73, in run
  File "build/src/setuptools/command/install.py", line 82, in do_egg_install
    easy_install = self.distribution.get_command_class('easy_install')
  File "build/src/setuptools/dist.py", line 361, in get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
  File "build/src/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/src/setuptools/command/easy_install.py", line 24, in <module>
    from setuptools.package_index import PackageIndex
  File "build/src/setuptools/package_index.py", line 2, in <module>
    import sys, os.path, re, urllib.parse, urllib.request, urllib.error, urllib.parse, shutil, random, socket, io
  File "/usr/local/lib/python3.1/urllib/request.py", line 88, in <module>
    import http.client
  File "/usr/local/lib/python3.1/http/client.py", line 69, in <module>
    import email.parser
  File "/usr/local/lib/python3.1/email/parser.py", line 12, in <module>
    from email.feedparser import FeedParser
  File "/usr/local/lib/python3.1/email/feedparser.py", line 27, in <module>
    from email import message
  File "/usr/local/lib/python3.1/email/message.py", line 17, in <module>
    from email import utils
  File "/usr/local/lib/python3.1/email/utils.py", line 28, in <module>
    import socket
  File "/usr/local/lib/python3.1/socket.py", line 45, in <module>
    import _socket
ImportError: ld.so.1: python3: fatal: relocation error: file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

# ls -l /usr/local/lib/python3.1/lib-dynload/_socket.so
-rwxr-xr-x   1 bin      bin       113860 Mar 23  2010 /usr/local/lib/python3.1/lib-dynload/_socket.so
# ldd /usr/local/lib/python3.1/lib-dynload/_socket.so
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2

Could anyone advise what does this error message mean?

Thanks in advance,


messages: 135257
nosy: alex_lai
priority: normal
severity: normal
status: open
title: file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found
type: crash
versions: Python 3.1

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list