If you're on AIX and Python immediately dumps core when trying to import
any SVN module, then adding "-Wl,-brtl" to LINKFORSHARED in the Makefile
seems to fix the problem.
 
Bad:   > LINKFORSHARED=        -Wl,-bE:Modules/python.exp -lld
Good:  < LINKFORSHARED=        -Wl,-bE:Modules/python.exp -lld -Wl,-brtl

1.      unset PYTHONPATH
2.      ./configure --without-gcc --disable-ipv6 --with-thread
CC=/usr/vac/bin/xlc_r CXX=/usr/vacpp/bin/xlC_r 
3.      Edit Makefile:  LINKFORSHARED=  -Wl,-bE:Modules/python.exp -lld
-Wl,-brtl 
4.      make CC=/usr/vac/bin/xlc_r CXX=/usr/vacpp/bin/xlC_r OPT="-O2
-qmaxmem=4000"
5.      make install

Oddly enough, there was no need to build Python using shared libraries.
("#*shared* in Modules/Setup was left commented out and --enable-shared
was not used.)  The OPT="..." is described in
Python-2.5.1/Misc/AIX-NOTES.

This was on AIX 5.3, xlc_r 9.0, Python 5.2.1, Subversion 1.4.5.  It also
appears to work using gcc and Python 2.4.4.

Thanks to Andy Nocera for figuring it out before 'Plan B: Blood
Sacrifice While Doing the Hokey-Pokey' was implemented.




*****

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA621


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to