Re: Compiling python2.5 on IBM AIX

2007-07-17 Thread bravo . loic
 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

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


Re: Compiling python2.5 on IBM AIX

2007-07-17 Thread George Trojan
[EMAIL PROTECTED] 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..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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Compiling python2.5 on IBM AIX

2007-07-17 Thread pruebauno
On Jul 17, 3:58 am, [EMAIL PROTECTED] 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.php?func=detailaid=1557983group_id=5470atid=105470


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


Compiling python2.5 on IBM AIX

2007-07-16 Thread bravo . loic
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

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


Re: Compiling python2.5 on IBM AIX

2007-07-16 Thread Gerard Flanagan
On Jul 16, 12:29 pm, [EMAIL PROTECTED] 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


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


Re: Compiling python2.5 on IBM AIX

2007-07-16 Thread Gerard Flanagan
On Jul 16, 12:29 pm, [EMAIL PROTECTED] 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



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