All extension fail while linking: building '_ctypes_test' extension creating build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_ctypes i586-pc-interix6.0-gcc -fno-strict-aliasing -DNDEBUG -D_ALL_SOURCE -D_REENTRANT -pipe -O2 -fwrapv -I. -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/./Include -I/opt/gentoo/usr/include -I. -IInclude -I./Include -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Include -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5 -c /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_ctypes/_ctypes_test.c -o build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_ctypes/_ctypes_test.o ld -L. -fno-strict-aliasing -DNDEBUG -D_ALL_SOURCE -D_REENTRANT -pipe -O2 -fwrapv -I. -IInclude -I./Include -D_ALL_SOURCE -D_REENTRANT -pipe -O2 build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_ctypes/_ctypes_test.o -L/opt/gentoo/usr/lib -L. -lpython2.6 -o build/lib.interix-6.1-x86-2.6/_ctypes_test.so /opt/gcc.3.3/bin/ld: unrecognized option '-DNDEBUG' /opt/gcc.3.3/bin/ld: use the --help option for usage information emerge --info =dev-lang/python-2.6.5-r1 Portage 2.2.00.15842-prefix (prefix/windows/interix/6.0/x86, gcc-4.2.4, unavailable, 6.1 x86) ================================================================= System Settings ================================================================= System uname: Interix-6.1-x86-32bit-WindowsPE Timestamp of tree: Wed, 07 Apr 2010 18:37:13 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.1.0 dev-util/ccache: 2.4-r8 sys-devel/autoconf: 2.65 sys-devel/automake: 1.7.9-r2, 1.10.2-r00.1, 1.11.1 sys-devel/binutils: 2.18-r4, 2.20.51.0.6 sys-devel/gcc: 4.2.4-r01.2 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="x86-interix ~x86-interix" ACCEPT_LICENSE="* -@EULA" ACCEPT_PROPERTIES="*" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ARCH="x86-interix" AUTOCLEAN="yes" C89_COMPILER="/dev/fs/C/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe" C89_LINKER="/dev/fs/C/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/link.exe" CBUILD="i586-pc-interix6.0" CCACHE_SIZE="10G" CFLAGS=" -D_ALL_SOURCE -D_REENTRANT -pipe -O2" CHOST="i586-pc-interix6.0" CLEAN_DELAY="5" COLLISION_IGNORE="/lib/modules" COMPUTER="SUPERBIA" COMPUTERNAME="SUPERBIA" COMSPEC="C:\Windows\system32\cmd.exe" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CONFIG_SITE="/root/config.site" CPPFLAGS=" -D_ALL_SOURCE -D_REENTRANT -pipe -O2" CREDENTIALS="Sinbios" CVS_RSH="ssh" CXXFLAGS=" -D_ALL_SOURCE -D_REENTRANT -pipe -O2" DEFAULT_PATH="/opt/gentoo/usr/sbin:/opt/gentoo/usr/bin:/opt/gentoo/sbin:/opt/gentoo/bin" DISPLAY="Superbia:10.0" DISTDIR="/opt/gentoo/usr/portage/distfiles" EAUTORECONF="yes" EDITOR="/opt/gentoo/bin/nano" ELIBC="Interix" EMERGE_WARNING_DELAY="10" EPREFIX="/opt/gentoo" EROOT="/opt/gentoo/" EXTRA_PATH="/usr/bin:/bin" FCEDIT="vi" FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" FETCHCOMMAND="/opt/gentoo/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" FP_NO_HOST_CHECK="NO" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://distfiles.gentoo.org" GUILE_LOAD_PATH="/opt/gentoo/usr/share/guile/1.8" HISTCONTROL="ignoredups" HISTIGNORE="[ ]*:&:bg:fg:exit" HOME="/dev/fs/C/Windows/SUA/root" INFOPATH="/opt/gentoo/usr/share/info:/opt/gentoo/usr/share/binutils-data/i586-pc-interix6.0/2.20.51.0.6/info:/opt/gentoo/usr/share/gcc-data/i586-pc-interix6.0/4.2.4/info" INPUT_DEVICES="keyboard mouse" INTERIX_ROOT="/dev/fs/C/Windows/SUA/" INTERIX_ROOT_WIN="C:\Windows\SUA\" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LDFLAGS="" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LOGNAME="Administrator" LS_COLORS="di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:" MAIL="/var/mail/Superbia+Sinbios" MANPATH="/opt/gentoo/usr/share/man:/opt/gentoo/usr/share/binutils-data/i586-pc-interix6.0/2.20.51.0.6/man:/opt/gentoo/usr/share/gcc-data/i586-pc-interix6.0/4.2.4/man:/usr/share/man" MSSDK="/dev/fs/C/Program Files (x86)/Microsoft SDKs/Windows/v7.0A" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NUMBER_OF_PROCESSORS="4" OLDPWD="/dev/fs/C/Users/Sinbios/Desktop/j13li" OPENNT_ROOT="/dev/fs/C/Windows/SUA/" OS="Windows_NT" PAGER="/opt/gentoo/usr/bin/less" PATH="/opt/gentoo/usr/sbin:/opt/gentoo/usr/bin:/opt/gentoo/sbin:/opt/gentoo/bin:/opt/gentoo/opt/bin:/opt/gentoo/usr/i586-pc-interix6.0/gcc-bin/4.2.4:/usr/sbin:/usr/bin:/sbin:/bin:/usr/contrib/bin:/usr/contrib/win32/bin:/dev/fs/C/Windows/system32:/dev/fs/C/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/Tools:/dev/fs/C/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE:/dev/fs/C/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin:/dev/fs/C/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/bin" PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC" PATH_ORIG="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" PATH_WINDOWS="/dev/fs/C/Windows/System32:/dev/fs/C/Windows/SUA/common" PKGDIR="/packages/gentoo" PKG_CONFIG_PATH="/opt/gentoo/usr/lib/pkgconfig:/opt/gentoo/usr/share/pkgconfig" PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/opt/gentoo/usr/lib/portage/bin" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/opt/gentoo/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/opt/gentoo/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="Sinbios@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="Administrator" PORTAGE_ELOG_SYSTEM="save_summary echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="131616" PORTAGE_GROUP="+Administrators" PORTAGE_INST_GID="131616" PORTAGE_INST_UID="197108" PORTAGE_PYM_PATH="/opt/gentoo/usr/lib/portage/pym" PORTAGE_ROOT_USER="Administrator" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --delete --whole-file --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_SYNC_STALE="30" PORTAGE_TMPDIR="/opt/gentoo/var/tmp" PORTAGE_USER="Sinbios" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/opt/gentoo/usr/portage" PORTDIR_OVERLAY="/opt/gentoo/var/lib/layman/pippings-bleeding-edge /opt/gentoo/var/lib/layman/fafhrd-branch /opt/gentoo/var/lib/layman/godserv /opt/gentoo/var/lib/layman/heikos-break-your-prefix" PROCESSOR_ARCHITECTURE="AMD64" PROCESSOR_IDENTIFIER="Intel64 Family 6 Model 15 Stepping 11, GenuineIntel" PROCESSOR_LEVEL="6" PROCESSOR_REVISION="0f0b" PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$ " PSMODULEPATH="C:\Windows\system32\WindowsPowerShell\v1.0\Modules\" PWD="/dev/fs/C/Windows/SUA/root" PYTHONDONTWRITEBYTECODE="1" RESUMECOMMAND="/opt/gentoo/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" ROOT="/" ROOTPATH="/opt/gentoo/opt/bin:/opt/gentoo/usr/i586-pc-interix6.0/gcc-bin/4.2.4" RPMDIR="/opt/gentoo/usr/portage/rpm" RUBY_TARGETS="ruby18" SFUDIR="C:\Windows\SUA\" SFUDIR_INTERIX="/dev/fs/C/Windows/SUA/" SHELL="/opt/gentoo/bin/bash" SHLVL="5" SSH_CLIENT="209.183.151.182 41082 2222" SSH_CONNECTION="209.183.151.182 41082 192.168.1.112 2222" SSH_TTY="/dev/ttyp0" SUA_ROOT="/dev/fs/C/Windows/SUA/" SUA_ROOT_WIN="C:\Windows\SUA\" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" SYSTEMDRIVE="C:" SYSTEMROOT="C:\Windows" SYS_EPREFIX="/opt/gentoo" TEMP="C:\Windows\SUA\tmp" TERM="xterm" TERMCAP="/usr/share/termcap" TMP="C:\Windows\SUA\tmp" TMPDIR="/tmp" TZ="America/New_York" UIDPATH="/usr/X11R6/lib/X11/uid/%U" ULTRAMON_LANGDIR="C:\Program Files\UltraMon\Resources\en" USE="X Xaw3d bash-completion bazaar bindist bzip2 cairo cleartype cracklib cscope curl cvs cxx dbus exif expat fontconfig gdbm gif git gmp gnulib gtk i6fork iconv jpeg libffi lzo mad mng modules mp3 mpfr multislot ncurses netpbm openssh openssl pcre pdf perl png prefix prefix-chaining python readline ruby sqlite ssl startup-notification subversion svg tcl tcpd threads tk truetype vorbis x86-interix xinerama xml xpm zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Interix" INPUT_DEVICES="keyboard mouse" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" USER="Administrator" USERDOMAIN="Superbia" USERLAND="GNU" USERNAME="Sinbios" USERPROFILE="C:\Users\Sinbios" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VISUAL="/opt/gentoo/usr/bin/vim" VS90COMNTOOLS="C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\" WINDIR="C:\Windows" XAPPLRESDIR="/usr/X11R6/lib/X11/app-defaults" XCMSDB="/usr/X11R6/lib/X11/Xcms.txt" XDG_DATA_DIRS="/opt/gentoo/usr/share" XFILESEARCHPATH="/usr/X11R6/lib/X11/app-defaults/%N%S:/usr/X11R6/include/X11/bitmaps/%N%S" XKEYSYMDB="/usr/X11R6/lib/X11/XKeysymDB" XNLSPATH="/usr/X11R6/lib/X11/locale" _="/opt/gentoo/usr/bin/emerge" bash4="4.0.37(1)-release"
Tried to emerge with LDSHARED="i586-pc-interix6.0-gcc -shared" which results in i586-pc-interix6.0-ranlib libpython2.6.a i586-pc-interix6.0-gcc -L. -o python.exe \ Modules/python.o \ libpython2.6.a -lsocket -ldl -lm Fatal Python error: Interpreter not initialized (version mismatch?) /opt/gentoo/bin/bash: line 1: 1725 Abort trap CC='i586-pc-interix6.0-gcc' LDSHARED='i586-pc-interix6.0-gcc -shared' CFLAGS='-fno-strict-aliasing -DNDEBUG -D_ALL_SOURCE -D_REENTRANT -pipe -O2 -fwrapv' ./python.exe -E ./setup.py build make: *** [sharedmods] Error 134 Replacing python.exe with a symlink to the system python allows compilation to continue. Next, building _curses and dbm fails: i586-pc-interix6.0-gcc -fno-strict-aliasing -D_ALL_SOURCE -DNDEBUG -DHAVE_GDBM_NDBM_H -I. -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/./Include -I/opt/gentoo/usr/include -I. -IInclude -I./Include -I/opt/gentoo/usr/include/python2.6 -c /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/dbmmodule.c -o build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/dbmmodule.o i586-pc-interix6.0-gcc -shared -fno-strict-aliasing -DNDEBUG build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/dbmmodule.o -L/opt/gentoo/usr/lib -L. -lgdbm -lgdbm_compat -lpython2.6 -o build/lib.interix-6.1-x86-2.6/dbm.so *** WARNING: renaming "dbm" since importing it failed: /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/build/lib.interix-6.1-x86-2.6/dbm.so: undefined symbol: _gdbm_nextkey building '_curses' extension i586-pc-interix6.0-gcc -fno-strict-aliasing -D_ALL_SOURCE -DNDEBUG -I. -I/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/./Include -I/opt/gentoo/usr/include -I. -IInclude -I./Include -I/opt/gentoo/usr/include/python2.6 -c /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_cursesmodule.c -o build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_cursesmodule.o i586-pc-interix6.0-gcc -shared -fno-strict-aliasing -DNDEBUG build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_cursesmodule.o -L/opt/gentoo/usr/lib -L. -lncurses -lpython2.6 -o build/lib.interix-6.1-x86-2.6/_curses.so *** WARNING: renaming "_curses" since importing it failed: /opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/build/lib.interix-6.1-x86-2.6/_curses.so: undefined symbol: _resize_term The dbm failure is caused by having -lgdbm before -lgdbm_compat. Linking with i586-pc-interix6.0-gcc -shared -fno-strict-aliasing -DNDEBUG build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/dbmmodule.o -L/opt/gentoo/usr/lib -L. -lgdbm_compat -lgdbm -lpython2.6 -o build/lib.interix-6.1-x86-2.6/dbm.so fixes it. The _curses failure is due to ld trying to link against /usr/lib/x86/libncurses.a instead of /opt/gentoo/usr/lib/libncurses.a. I'm not sure if this is specific to this package but I think this has come up before. Is this a prefix issue? Anyway, linking with i586-pc-interix6.0-gcc -shared -fno-strict-aliasing -DNDEBUG build/temp.interix-6.1-x86-2.6/opt/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r1/work/Python-2.6.5/Modules/_cursesmodule.o -L/opt/gentoo/usr/lib -L. /opt/gentoo/usr/lib/libncurses.a -lpython2.6 -o build/lib.interix-6.1-x86-2.6/_curses.so works. After these steps the merge now completes, resulting in... a python binary that crashes and then immediately relaunches itself in a loop.
Ok, here's what I'm seeing so far. If LDSHARED is ld, the bootstrapped python.exe for building works but the extensions fail to build because ld doesn't understand -DNDEBUG. After removing -DNDEBUG ld complains about missing references to functions found in libm and libdl. Adding -lm and -ldl leads to extensions failing with: /opt/gcc.3.3/bin/ld: warning: cannot find entry symbol ___PosixProcessStartup; defaulting to 00001000 Using LDSHARED="ld --shared -lc" builds the extensions but at the end of the build they claim to have failed with messages like: *** WARNING: renaming "_struct" since importing it failed: build/lib.interix-6.1-x86-2.6/_struct.so: unable to read file header: No such file or directory Changing LDSHARED to gcc or gcc --shared produces Fatal Python error: Interpreter not initialized (version mismatch?) LDSHARED="gcc -ldl -lm -lc " produces /usr/lib/x86/crt0.o(.text+0x28): undefined reference to `_main' So, what exactly should be used to link the modules?
this has been fixed a long time ago IIRC. at least, python 2.6.5 builds fine for me on interix 6.1
Yay :) I did notice though that the _sockets extension needed -lbind added while linking though.
(In reply to comment #4) > Yay :) > > I did notice though that the _sockets extension needed -lbind added while > linking though. > huh? very strange - it builds as-is for me. and the socket extension _is_ there. even with poll support now.