[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AIX Subversion Python Swig Bindings fix for core dump

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: 2007-12-05 20:57:48 CET

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. GA622

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 5 20:58:40 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.