building 2.2.2 on SCO Open Server

I'm trying to get the release22-maint branch to build on SCO Open Server 5. When setup.py fails to import an extention but the .c file compiles, how do you track down why it failed?
Ie. (lines formated for readability)
case $MAKEFLAGS in \ *-s*) CC='cc' LDSHARED='cc -G -Kpic -Ki486 -belf -Wl,-Bexport' \ OPT='-DNDEBUG -O -Ki486 -DSCO5' ./python \ -E /opt/src/utils/python/python-2.2.2/src/setup.py -q build;; \ *) CC='cc' LDSHARED='cc -G -Kpic -Ki486 -belf -Wl,-Bexport' \ OPT='-DNDEBUG -O -Ki486 -DSCO5' ./python \ -E /opt/src/utils/python/python-2.2.2/src/setup.py build;; \ esac running build running build_ext building 'struct' extension [snip] building 'pwd' extension cc -DNDEBUG -O -Ki486 -DSCO5 -Kpic -dy -Bdynamic -I. \ -I/opt/src/utils/python/python-2.2.2/src/./Include \ -I/usr/local/include -IInclude/ \ -c /opt/src/utils/python/python-2.2.2/src/Modules/pwdmodule.c \ -o build/temp.sco_sv-3.2-i386-2.2/pwdmodule.o cc -G -Kpic -Ki486 -belf -Wl,-Bexport \ build/temp.sco_sv-3.2-i386-2.2/pwdmodule.o -L/usr/local/lib \ -o build/lib.sco_sv-3.2-i386-2.2/pwd.so WARNING: removing "pwd" since importing it failed

Tim Rice tim@multitalents.net writes:
I'm trying to get the release22-maint branch to build on SCO Open Server 5. When setup.py fails to import an extention but the .c file compiles, how do you track down why it failed?
You invoke the compilation commands manually (as printed), then start an interactive session and import try to import the module.
Regards, Martin

On 25 Sep 2002, Martin v. Loewis wrote:
Tim Rice tim@multitalents.net writes:
I'm trying to get the release22-maint branch to build on SCO Open Server 5. When setup.py fails to import an extention but the .c file compiles, how do you track down why it failed?
You invoke the compilation commands manually (as printed), then start an interactive session and import try to import the module.
Regards, Martin
Thanks. I was sure I had tried that before. Oh well. It does tell me what the problem is. Now I have to track down why it can't find setpwent(). The man pacge says it's in libc.
participants (2)
-
martin@v.loewis.de
-
Tim Rice