f



python 2.5.2 or Python 2.6 compilation problem on AIX 5.3

Hello:
I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am
getting following error. (I also tried Python 2.6 with same error)

creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/
Modules
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -I. -I/share/tmhsdsd2/tmp/Python-2.5.2/./Include -
I. -IInclude -I./Include -I/usr/local/include -I/share/tmhsdsd2/tmp/
Python-2.5.2/Include -I/share/tmhsdsd2/tmp/Python-2.5.2 -c /share/
tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.c -o build/temp.aix-5.3-2.5/
share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o
creating build/lib.aix-5.3-2.5

../Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp build/
temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o -L/
usr/local/lib -lpython2.5 -o build/lib.aix-5.3-2.5/_struct.so
collect2: library libpython2.5 not found
*** WARNING: renaming "_struct" since importing it failed:
0509-022 Cannot load module build/lib.aix-5.3-2.5.
        0509-026 System error: A file or directory in the path name
does not exist.
error: No such file or directory
make: 1254-004 The error code from the last command is 1.


Stop.


I am not able to find the problem. I would appreciate, if you could
help. I used following command line options to confugure.
 ./configure --prefix=/home/hci/dinakar/python25 -enable-shared --with-
gcc

Thank you.
Dinakar
0
desas2 (13)
12/1/2008 5:20:56 PM
comp.lang.python 77058 articles. 6 followers. Post Follow

2 Replies
1114 Views

Similar Articles

[PageSpeed] 8

desas2@gmail.com wrote:
> Hello:
> I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am
> getting following error. (I also tried Python 2.6 with same error)
> 
> creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/
> Modules
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
> Wstrict-prototypes -I. -I/share/tmhsdsd2/tmp/Python-2.5.2/./Include -
> I. -IInclude -I./Include -I/usr/local/include -I/share/tmhsdsd2/tmp/
> Python-2.5.2/Include -I/share/tmhsdsd2/tmp/Python-2.5.2 -c /share/
> tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.c -o build/temp.aix-5.3-2.5/
> share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o
> creating build/lib.aix-5.3-2.5
> 
> ./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp build/
> temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o -L/
> usr/local/lib -lpython2.5 -o build/lib.aix-5.3-2.5/_struct.so
> collect2: library libpython2.5 not found

Have you checked all the directories on PATH to see if any contain 
libpython2.5?

> *** WARNING: renaming "_struct" since importing it failed:
> 0509-022 Cannot load module build/lib.aix-5.3-2.5.
>         0509-026 System error: A file or directory in the path name
> does not exist.
> error: No such file or directory
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> 
> 
> I am not able to find the problem. I would appreciate, if you could
> help. I used following command line options to confugure.
>  ./configure --prefix=/home/hci/dinakar/python25 -enable-shared --with-
> gcc
> 
> Thank you.
> Dinakar
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

0
tjreedy (5460)
12/1/2008 7:06:24 PM
On Dec 1, 1:06 pm, Terry Reedy <tjre...@udel.edu> wrote:
> des...@gmail.com wrote:
> > Hello:
> > I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am
> > getting following error. (I also tried Python 2.6 with same error)
>
> > creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/
> > Modules
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
> > Wstrict-prototypes -I. -I/share/tmhsdsd2/tmp/Python-2.5.2/./Include -
> > I. -IInclude -I./Include -I/usr/local/include -I/share/tmhsdsd2/tmp/
> > Python-2.5.2/Include -I/share/tmhsdsd2/tmp/Python-2.5.2 -c /share/
> > tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.c -o build/temp.aix-5.3-2.5/
> > share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o
> > creating build/lib.aix-5.3-2.5
>
> > ./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp build/
> > temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/Modules/_struct.o -L/
> > usr/local/lib -lpython2.5 -o build/lib.aix-5.3-2.5/_struct.so
> > collect2: library libpython2.5 not found
>
> Have you checked all the directories on PATH to see if any contain
> libpython2.5?
>

Thanks for your response. libpython2.5.a is in the current directory
same as Makefile.

Thank you.
Dinakar
0
desas2 (13)
12/1/2008 8:58:19 PM
Reply: