Compiling for HPUX and AIX

czrpb nanotech at europa.com
Mon Feb 25 12:45:52 EST 2002


All:

I am having the following issues compiling:

HPUX 11.0
=========

/opt/ansic/bin/cc -Ae -c -DNDEBUG -O -I. -I./Include -DHAVE_CONFIG_H 
-o
Modules/python.o Modules/python.c
cpp: "./Include/pyport.h", line 437: error 4062: "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?)."
gmake: *** [Modules/python.o] Error 1

So, I took out the check and continued:

/opt/ansic/bin/cc -Ae -DNDEBUG -O  Parser/acceler.o Parser/grammar1.o
Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o
Parser/tokenizer.o Parser/bitset.o Parser/metagrammar.o
Python/mysnprintf.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o
Parser/printgrammar.o Parser/pgenmain.o -lnsl -ldld -ldl  -lpthread -o
Parser/pgen
/usr/ccs/bin/ld: Can't find library: "dl"

No good. I do have the said library at: /usr/lib/pa20_64/libdl.1
but adding it to the Make file did not work. (Also, I had to removed
the required lib: ldl.)

AIX 4.1.4
=========

./Modules/makexp_aix Modules/python.exp "" libpython2.2.a;
-Wl,-bE:Modules/python.exp -lld -o python \
                Modules/python.o \
                libpython2.2.a    -lm
/bin/sh: -Wl,-bE:Modules/python.exp:  not found


As you can see, I am not having much luck (except Linux which was
trivial!)

  -- Quentin





More information about the Python-list mailing list