From: Ralf U. <Ral...@Ph...> - 2004-12-10 17:48:24
|
Hi, has anybody already tried to compile Python2.4 on AIX? In the end what I would need is a 64-bit version, but I start with the standard 32bit one ;-) 1. Needed the following patch for configure (to get cc_r as default and to avoid one error from configure) *** ../tmp/Python-2.4/configure Sun Nov 7 02:24:12 2004 --- configure Fri Dec 10 14:00:18 2004 *************** *** 1615,1617 **** case $withval in ! no) CC=cc without_gcc=yes;; --- 1615,1617 ---- case $withval in ! no) CC=cc_r without_gcc=yes;; *************** *** 18875,18877 **** if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ ! -a "$ac_cv_wchar_t_signed" == "no" then --- 18875,18877 ---- if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ ! -a "$ac_cv_wchar_t_signed" = "no" then 2. I have /usr/vacpp/bin:/usr/linux/bin in the PATH and lot's of toolkit packages installed. Run configure as: /bin/bash ./configure --without-gcc --with-cxx=xlC_r --enable-shared \ CONFIG_SHELL=/bin/bash \ CC=cc_r \ CXX=xlC_r \ AR=/usr/bin/ar \ RANLIB=/usr/bin/ranlib \ OPT="-O -qmaxmem=-1 -DAIX_GENUINE_CPLUSPLUS" Two compile problems: 1. with cjkcodecs log: building '_codecs_cn' extension cc_r -DNDEBUG -O -qmaxmem=-1 -DAIX_GENUINE_CPLUSPLUS -I. -I/ltmp/ralfu/Python-2.4-32/./Include -I/usr/local/include -I/ltmp/ralfu/Python-2.4-32/Include -I/ltmp/ralfu/Python-2.4-32 -c /ltmp/ralfu/Python-2.4-32/Modules/cjkcodecs/_codecs_cn.c -o build/temp.aix-5.1-2.4/_codecs_cn.o "/ltmp/ralfu/Python-2.4-32/Modules/cjkcodecs/_codecs_cn.c", line 431.3: 1506-206 (S) Suffix of integer constant 100_encode is not valid. "/ltmp/ralfu/Python-2.4-32/Modules/cjkcodecs/_codecs_cn.c", line 431.3: 1506-196 (W) Initialization between types "int(*)(union {...}*,const void*,const unsigned short**,unsigned long,unsigned char**,unsigned long,int)" and "int" is not allowed. This one I just ignored, the make continues. 2. with tkinter building '_tkinter' extension ./Modules/ld_so_aix cc_r -bI:Modules/python.exp build/temp.aix-5.1-2.4/_tkinter.o build/temp.aix-5.1-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib -ltk8.3 -ltcl8.3 -lX11 -o build/lib.aix-5.1-2.4/_tkinter.so ld: 0706-006 Cannot find or open library file: -l tk8.3 ld:open(): No such file or directory ld: 0706-006 Cannot find or open library file: -l tcl8.3 ld:open(): No such file or directory *** WARNING: renaming "_tkinter" since importing it failed: No such file or directory error: No such file or directory make: *** [sharedmods] Error 1 This one I got over with linking by hand using 'cc_r -G' instead of ./Modules/ld_so_aix cc_r -bI:Modules/python.exp [BTW: could one not use -G for all of this ld_so_aix stuff?] Then I run make test and it ends with: 249 tests OK. 6 tests failed: test_codecencodings_cn test_grp test_mmap test_multibytecodec test_pty test_pwd 35 tests skipped: test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dl test_gl test_imgfile test_largefile test_linuxaudiodev test_locale test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_urllib2net test_urllibnet test_winreg test_winsound Ask someone to teach regrtest.py about which tests are expected to get skipped on aix5. make: *** [test] Error 1 However, the resulting executable looks ok. Any comment? Regards, Ralf -- Ralf Utermann _____________________________________________________________________ Universität Augsburg, Institut für Physik -- EDV-Betreuer Universitätsstr.1 D-86135 Augsburg Phone: +49-821-598-3231 SMTP: Ral...@Ph... Fax: -3411 |