Error building python26

Bryan Blackburn blb at
Sat Feb 28 14:51:39 PST 2009

On Sat, Feb 28, 2009 at 07:51:09PM +0100, Yannick Carissan said:
> yes, when python26 is cleaned, the problem stays :

>From the debug output:

/usr/bin/install -c -m 644 ./Misc/ \
*** WARNING: renaming "_struct" since importing it failed:
dlopen(build/lib.macosx-10.5-i386-2.6/, 2): Symbol not
found: ___sysctl
   Referenced from: /usr/local/lib/libgcc_s.1.dylib
   Expected in: /usr/lib/libSystem.B.dylib

It looks like you may have something in /usr/local (a gcc build perhaps)
that is interferring with building.  There are quite a few similar warnings
like this one, which eventually conclude in:

Failed to build these modules:
_bisect            _bsddb             _bytesio
_CF                _CG                _codecs_cn
_codecs_hk         _codecs_iso2022    _codecs_jp
_codecs_kr         _codecs_tw         _collections
_csv               _ctypes            _ctypes_test
_curses            _curses_panel      _elementtree
_fileio            _functools         _hashlib
_heapq             _hotshot           _json
_Launch            _locale            _lsprof
_multibytecodec    _multiprocessing   _random
_socket            _sqlite3           _ssl
_struct            _testcapi          _tkinter
_weakref           array              audioop
autoGIL            binascii           bz2
cmath              cPickle            crypt
cStringIO          datetime           dbm
dl                 fcntl              future_builtins
gdbm               grp                imageop
itertools          math               mmap
nis                operator           parser
pyexpat            readline           resource
select             strop              syslog
termios            time               unicodedata

It looks like most modules are failing to build because of it.



More information about the macports-users mailing list