473,667 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3545
On Jul 16, 12:29 pm, bravo.l...@gmai l.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...@gmai l.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********@gmai l.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...@gmai l.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
2685
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 around this. I've heard rumors of a manual method, but have been unable to track down details. Any help is very much appreciated. Thanks in advance, Mike
1
1332
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 - using root     group jafo does not exist - using root     user jafo does not exist - using root     group jafo does not exist - using root
0
1705
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 with Python 2.4.1 on Solaris 2.8. Can anyone help? Thank you. -> python setup.py build creating /home/kzvbq3/linkchecker-3.2/_linkchecker_configdata.py running build running build_py
9
1961
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 -DNDEBUG -O -I. -I/home/pwatson/src/python/Python-2.4.2/./Include -I/home/pwatson/src/python/Python-2.4.2/Include -I/home/pwatson/src/python/Python-2.4.2 -c /home/pwatson/src/python/Python-2.4.2/Modules/cjkcodecs/_codecs_cn.c -o
0
810
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 --with-libra ries=$(E4LDIR)/lib/python2.3-e4l && \ $(MAKE) This gives me the following compilation error:
1
1970
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 giving me problems. My build file is as follows g++ -Wall ibdws.cpp ../cgic205/cgic.c -oibdws.cgi -Lcgraph -lcgraph -Icgraph/Cgraph/source -I../cgic205 -L../cgic205 -I/usr/include/python2.4 -L/usr/lib
2
2289
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. Ok, so I did ../configure --prefix=/Users/tbrannon/Documents/Python/Swarm/Python-2.5 but during make install I get this:
11
2563
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 install Password: running install
6
2824
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 ../../libpython2.5.a -lm -ldl -lpthread -lutil testeval.cpp In file included from testeval.cpp:1: .../../Include/Python.h:8:22: pyconfig.h: No such file or directory In file included from ../../Include/Python.h:57, from
0
1206
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 -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -shared -Wl,-soname,libplpython.so.0 plpython.o -L/usr/lib/python2.5/config -L../../../src/port -lpython2.5 -lpthread -ldl -lutil -lm...
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.