Re: Compiling Python 2.5.2 on AIX 5.2



On Apr 14, 7:01 am, "M.-A. Lemburg" <m...@xxxxxxxxxx> wrote:

On AIX 5.3, Python 2.5.2 should build out of the box using gcc.

We've successfully build Python 2.3, 2.4 and 2.5 on AIX 5.3
using the gcc compiler suite and tools installed from the
AIX Linux Toolbox:

http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/altlic.html

./configure --enable-unicode=ucs2 --with-gcc

For 2.3 and 2.4 you need to patch pyconfig.h after the
configure run:

Marc-Andre,

Thanks so much for responding. I had to add --disable-ipv6 to ./
configure to prevent this problem:

checking getaddrinfo bug... buggy
Fatal: You must get working getaddrinfo() function.
or you can specify "--disable-ipv6".

When I checked pyconfig.h to make the patch you suggested I noticed
line 60 already reads like this:

#define HAVE_BROKEN_POSIX_SEMAPHORES 1

When ran make I immediately ran into problems. I'll investigate and
post back the results. Any comments and direction here is
appreciated.

$ make
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
In file included from Include/Python.h:83,
from ./Modules/python.c:3:
Include/unicodeobject.h:73:2: error: #error Must define
Py_UNICODE_SIZE

What is Py_UNICODE_SIZE and why was it not defined? There are current
questions I have.

Kind regards,
-Randy Galbraith
ps. Based on uname -rvp output of "2 5 powerpc" I'm assuming my OS is
AIX 5.2 on PowerPC. I noticed you said you're on AIX 5.3. I'm not
100% sure I'm understanding uname output correctly.
.



Relevant Pages

  • Password Expiration Patch for openssh-3.6.1p2
    ... gcc vulnerability). ... I've been running OpenSSH for a couple of years ... now on my AIX servers, and I decided it's time to try out Darren ... Tucker's password expiration patch (see ...
    (comp.unix.aix)
  • AIX remote SSH root logins
    ... I have downloaded the OpenSSH -current snapshot and compiled it for AIX ... Looking in the src for 3.5 it looks as though this patch is ... Disable remote logins by root ...
    (comp.security.ssh)
  • RE: decent loadbalancing with 2 different ISPs with minimum risk s
    ... iproute2, is only for linux. ... is there any solution for AIX to perform ... > route patch page. ... > Without that kernel patch it's not a solution that will fix itself ...
    (Focus-Linux)
  • Re: Builing Python 2.6 on AIX 5.2
    ... Thanks for posting this to the tracker mattias - as soon as I can ... I have made some changes in the source that lets me build on AIX ... I thought I could post the patch here and perhaps someone can ...
    (comp.lang.python)
  • Re: 5.1 & 5.2 binary compatibility
    ... All AIX level are backwards binary compatible....but, ... compiler and the processor the binary was ... models in that processor family (POWER, POWER2, POWER3 or PowerPC). ...
    (comp.unix.aix)