472,993 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

Compiling python2.5 on IBM AIX

hi,

I'm trying to make a local install of python 2.5 on AIX and I'm
getting some trouble with _curses.

Here is how I tried to compile it :
export BASE=/usr/local/python251

cd Python.2.5.1
../configure --prefix=${BASE}/\
LDFLAGS="-L\${BASE}/lib/"\
PPFLAGS="-I\${BASE}/include/"\

make
make test
make altinstall

and the compilation stop with the following pb :

ld: 0711-317 ERROR: Undefined symbol: _unctrl
ld: 0711-317 ERROR: Undefined symbol: .__fixsfsi
ld: 0711-317 ERROR: Undefined symbol: .setsyx
ld: 0711-317 ERROR: Undefined symbol: ._setqiflush
ld: 0711-317 ERROR: Undefined symbol: .initscr32
ld: 0711-317 ERROR: Undefined symbol: wacs_map
ld: 0711-317 ERROR: Undefined symbol: ._getsyx
ld: 0711-317 ERROR: Undefined symbol: .getattrs
ld: 0711-317 ERROR: Undefined symbol: .w32attrset
ld: 0711-317 ERROR: Undefined symbol: .w32insch
ld: 0711-317 ERROR: Undefined symbol: .p32echochar
ld: 0711-317 ERROR: Undefined symbol: .w32echochar
ld: 0711-317 ERROR: Undefined symbol: .box32
ld: 0711-317 ERROR: Undefined symbol: .w32addch
ld: 0711-317 ERROR: Undefined symbol: .w32attroff
ld: 0711-317 ERROR: Undefined symbol: .w32attron
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
*** WARNING: renaming "_curses" since importing it failed: No such
file or directory
error: No such file or directory
make: 1254-004 The error code from the last command is 1.
Stop.

I've compiled ncurses-5.6 in ${BASE}/lib but this haven't solved the
pb.

Any clue ?

Best regards

--

BL

Jul 16 '07 #1
5 3509
On Jul 16, 12:29 pm, bravo.l...@gmail.com wrote:
hi,

I'm trying to make a local install of python 2.5 on AIX and I'm
getting some trouble with _curses.

Here is how I tried to compile it :

export BASE=/usr/local/python251

cd Python.2.5.1
./configure --prefix=${BASE}/\
LDFLAGS="-L\${BASE}/lib/"\
PPFLAGS="-I\${BASE}/include/"\

make
make test
make altinstall
I haven't compiled it myself, but I'm told that the installation I
work with was compiled with:

export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
../configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
ipv6 AR="ar -X64"
make
make install

if that helps.

Gerard
Jul 16 '07 #2
On Jul 16, 12:29 pm, bravo.l...@gmail.com wrote:
hi,

I'm trying to make a local install of python 2.5 on AIX and I'm
getting some trouble with _curses.

Here is how I tried to compile it :

export BASE=/usr/local/python251

cd Python.2.5.1
./configure --prefix=${BASE}/\
LDFLAGS="-L\${BASE}/lib/"\
PPFLAGS="-I\${BASE}/include/"\

make
make test
make altinstall
I haven't compiled it myself, but I'm told that the installation I
work with was compiled with:

export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
../configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
ipv6 AR="ar -X64"
make
make install

if that helps.

Gerard

Jul 16 '07 #3
I haven't compiled it myself, but I'm told that the installation I
work with was compiled with:

export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
ipv6 AR="ar -X64"
make
make install
I've tried with the followong configuration :
----------
export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
../configure --prefix=${BASE} --with-gcc="xlc_r -q64" --with-cxx="xlC_r
-q64" --disable-ipv6 AR="ar -X64" LDFLAGS="-L\${BASE}/lib/" PPFLAGS="-I
\${BASE}/include/"

make
---------

but it doesn't compile either :

make
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/python.o ./Modules/python.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/_typesmodule.o Modules/_typesmodule.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/acceler.o Parser/acceler.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar1.o Parser/grammar1.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/listnode.o Parser/listnode.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/node.o Parser/node.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parser.o Parser/parser.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parsetok.o Parser/parsetok.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/bitset.o Parser/bitset.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/metagrammar.o Parser/metagrammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/firstsets.o Parser/firstsets.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar.o Parser/grammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/pgen.o Parser/pgen.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/myreadline.o Parser/myreadline.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/tokenizer.o Parser/tokenizer.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/abstract.o Objects/abstract.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/boolobject.o Objects/boolobject.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/bufferobject.o Objects/bufferobject.c
"Objects/bufferobject.c", line 22.15: 1506-275 (S) Unexpected text ','
encountered.
make: 1254-004 The error code from the last command is 1.

any idea ?

thanks

--
BL

Jul 17 '07 #4
br********@gmail.com wrote:
>I haven't compiled it myself, but I'm told that the installation I
work with was compiled with:

export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
ipv6 AR="ar -X64"
make
make install

I've tried with the followong configuration :
----------
export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
./configure --prefix=${BASE} --with-gcc="xlc_r -q64" --with-cxx="xlC_r
-q64" --disable-ipv6 AR="ar -X64" LDFLAGS="-L\${BASE}/lib/" PPFLAGS="-I
\${BASE}/include/"

make
---------

but it doesn't compile either :

make
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/python.o ./Modules/python.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/_typesmodule.o Modules/_typesmodule.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/acceler.o Parser/acceler.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar1.o Parser/grammar1.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/listnode.o Parser/listnode.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/node.o Parser/node.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parser.o Parser/parser.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parsetok.o Parser/parsetok.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/bitset.o Parser/bitset.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/metagrammar.o Parser/metagrammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/firstsets.o Parser/firstsets.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar.o Parser/grammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/pgen.o Parser/pgen.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/myreadline.o Parser/myreadline.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/tokenizer.o Parser/tokenizer.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/abstract.o Objects/abstract.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/boolobject.o Objects/boolobject.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/bufferobject.o Objects/bufferobject.c
"Objects/bufferobject.c", line 22.15: 1506-275 (S) Unexpected text ','
encountered.
make: 1254-004 The error code from the last command is 1.

any idea ?

thanks

--
BL
It works fine with my compiler:
what $(which xlc)
/usr/vac/bin/xlc:
61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c,
libcthrd, bos510 7/11/00 12:04:14

Licensed Materials - Property of IBM.
IBM XL C/C++ Enterprise Edition V8.0 for AIX
(5724-M12)
IBM XL C Enterprise Edition V8.0 for AIX
(5724-M11)
(C) Copyright IBM Corp. 1991, 2005 and by others.
All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by
GSA ADP Schedule Contract with IBM Corp.
-----------------------------------------
Version: 08.00.0000.0010
Intermediate Language 060405.07
Driver 060518a
Date: Thu May 18 22:08:53 EDT 2006
-----------------------------------------

I suspect the trailing comma is the issue. Googling for "xlc enumerator
trailing comma" gave me
http://sources.redhat.com/ml/gdb/1999-q1/msg00136.html
which says "AIX 4.2.0.0 xlc gives an error for trailing commas in enum
declarations".

George
Jul 17 '07 #5
On Jul 17, 3:58 am, bravo.l...@gmail.com wrote:
I haven't compiled it myself, but I'm told that the installation I
work with was compiled with:
export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
ipv6 AR="ar -X64"
make
make install

I've tried with the followong configuration :
----------
export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
./configure --prefix=${BASE} --with-gcc="xlc_r -q64" --with-cxx="xlC_r
-q64" --disable-ipv6 AR="ar -X64" LDFLAGS="-L\${BASE}/lib/" PPFLAGS="-I
\${BASE}/include/"

make
---------

but it doesn't compile either :

make
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/python.o ./Modules/python.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Modules/_typesmodule.o Modules/_typesmodule.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/acceler.o Parser/acceler.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar1.o Parser/grammar1.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/listnode.o Parser/listnode.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/node.o Parser/node.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parser.o Parser/parser.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/parsetok.o Parser/parsetok.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/bitset.o Parser/bitset.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/metagrammar.o Parser/metagrammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/firstsets.o Parser/firstsets.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/grammar.o Parser/grammar.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/pgen.o Parser/pgen.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/myreadline.o Parser/myreadline.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Parser/tokenizer.o Parser/tokenizer.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/abstract.o Objects/abstract.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/boolobject.o Objects/boolobject.c
xlc_r -q64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -
o Objects/bufferobject.o Objects/bufferobject.c
"Objects/bufferobject.c", line 22.15: 1506-275 (S) Unexpected text ','
encountered.
make: 1254-004 The error code from the last command is 1.

any idea ?

thanks

--
BL
Remove the extra comma at the end of line 22 of bufferobject.c
That should help you fix it.

I sent a bug report for that:

http://sourceforge.net/tracker/index...70&atid=105470
Jul 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike S. | last post by:
Hello, Has anyone had success compiling the informixdb-1.3 module under python 2.2? It seems the absense of makefile.pre.in in python 2.2 causes the break under py2.2. Is there an easy way...
1
by: python-listNOSPAMthankyou | last post by:
Can you  help me, can you pass me onto someone who can? Whilst compiling: rpmbuild --rebuild python2.3-2.3.4-2pydotorg.src.rpm I got an error: RPM build errors:     user jafo does not exist -...
0
by: mmarkzon | last post by:
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is...
9
by: Paul Watson | last post by:
Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It appears that the CODEC_STATELESS macro is concatenating 'hz' with a number and text. building '_codecs_cn' extension cc...
0
by: Johan Barelds | last post by:
Hi All, I am trying to compile Postgresql-7.3.4 with the following flags: .../configure --prefix=$(E4LDIR) --with-pgport=5433 --with-python --with-includes=$(E4LDIR)/include/python2.3-e4l...
1
by: vduber6er | last post by:
Hello, I just recently switched my code from one server to another and now having some problems compiling my code. I was able to compile fine with my last server now but this current one is...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
11
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
6
by: grbgooglefan | last post by:
I am compiling CPP program which uses CPython API functions from Python 2.5.1 source code First I compiled with this commanline, that time I got "pyconfig.h" not found. g++ -Os -I../../Include...
0
by: Gerardo Herzig | last post by:
Hi all. Im having a hard time trying to compile the plpython package. This is the error make gives me: gherzig@vdb:/usr/local/src/postgresql-8.2.5/src/pl/plpythonmake gcc -O2 -Wall...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.