Thanks Mark. That was indeed very helpful.  Here's the current status:

=======================
1. applied changes suggested by Bob Atkins in that thread.

2. setting env variables.

export OBJECT_MODE=64
export CC="gcc"
export CFLAGS="-maix64 -mcpu=power5"
export LDFLAGS="-maix64 -L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/64/lib -L/usr/X11R6/lib -L/opt/freeware/lib"
export CPPFLAGS="-I/opt/freeware/include -I/usr/lpp/X11/include/X11"

3. configuring and compiling using

configure --with-gcc --enable-shared --prefix=/usr/local/Python-2.6.4 > config_264.log 2>&1 ; make > make_264.log 2>&1
=======================

Both python (executable) and libpython2.6.a build just fine and are in the same directory as configure.

However, none of the extensions build. I keep getting libpython2.6 not found error. Here's an example:

building 'math' extension
gcc -pthread -fno-strict-aliasing -maix64 -mcpu=power5 -DNDEBUG -O3 -Wall -Wstrict-prototypes -I. -I/usr/local/build/python/Python-2.6.4/./Include -I. - IInclude -I./Include -I/opt/freeware/include -I/usr/lpp/X11/include/X11 -I/usr/local/include -I/usr/local/build/python/Python-2.6.4/Include -I/usr/local /build/python/Python-2.6.4 -c /usr/local/build/python/Python-2.6.4/Modules/mathmodule.c -o build/temp.aix-5.3-2.6/usr/local/build/python/Python-2.6.4/Mo
dules/mathmodule.o
./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp -maix64 -L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/64/lib -L/usr/X11R6/lib -L/opt/freewa re/lib -fno-strict-aliasing -maix64 -mcpu=power5 -DNDEBUG -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/opt/freeware/include -I/usr/lpp/X11 /include/X11 build/temp.aix-5.3-2.6/usr/local/build/python/Python-2.6.4/Modules/mathmodule.o -L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/64/lib - L/usr/X11R6/lib -L/opt/freeware/lib -L/usr/local/lib -lm -lpython2.6 -o build/lib.aix-5.3-2.6/math.so
collect2: library libpython2.6 not found

I hacked Makefile to
LDFLAGS=        <> -L./     <other flags>

I now get:

ld: 0711-224 WARNING: Duplicate symbol: PyObject_Size
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
Fatal Python error: Interpreter not initialized (version mismatch?)
make: The signal code from the last command is 6.


There are no other versions of python on that machine. I would appreciate any help. Do I need to set the exec_prefix as well?


Thanks.


Mark Dickinson wrote:
On Nov 3, 10:40 pm, chuck <nospam_chuckwhi...@charter.net> wrote:
Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX
5.3.  Here are the settings:
Take a look at:

http://bugs.python.org/issue1628484

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

Reply via email to