Problem compiling Python for AIX 5.2

Discussion in 'Python' started by Lars Kromann, Jul 13, 2004.

  1. Lars Kromann

    Lars Kromann Guest

    Hi

    I am trying to compile python 2.3.4 for AIX 5.2 but I ran into some
    problems.
    When I try to compile the build on the configure runs ok but make gives me
    the
    following error when i run:

    configure --with-gcc --with-cxx=g++ --with-libm="" --disable-ipv6
    make


    ./Modules/makexp_aix Modules/python.exp . libpython2.3.a; gcc
    -Wl,-bE:Modules/python.exp -lld -o python Modules/ccpython.o
    libpython2.3.a -ldl -lpthread
    ld: 0711-317 ERROR: Undefined symbol: .fmod
    ld: 0711-317 ERROR: Undefined symbol: .floor
    ld: 0711-317 ERROR: Undefined symbol: .pow
    ld: 0711-317 ERROR: Undefined symbol: .hypot
    ld: 0711-317 ERROR: Undefined symbol: .atan2
    ld: 0711-317 ERROR: Undefined symbol: .exp
    ld: 0711-317 ERROR: Undefined symbol: .log
    ld: 0711-317 ERROR: Undefined symbol: .cos
    ld: 0711-317 ERROR: Undefined symbol: .sin
    ld: 0711-317 ERROR: Undefined symbol: .ceil
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.
    collect2: ld returned 8 exit status
    make: 1254-004 The error code from the last command is 1.


    Stop.

    I then tried to edit the ld_so_aix from
    CCOPT="$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -lm -o $objfile"
    to
    CCOPT="$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -brtl -bnortllib -lm -o
    $objfile"

    but that did not work either.

    The machine has the following configuration:

    AIX 5.2
    g++-2.9.aix51.020209-3
    gcc-2.9.aix51.020209-3
    autoconf-2.53-1
    automake-1.5-1

    Does anybody have an idea to what the problem might be?


    _______________________________________________

    Lars Kromann - M.Sc.E.E, Intelligent Multimedia
    Tingvejen 16F 8600 Silkeborg - Denmark
    Tlf. +45 25132571

    www.sealclub.net

    _______________________________________________
     
    Lars Kromann, Jul 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. marko sarunac
    Replies:
    0
    Views:
    601
    marko sarunac
    Nov 17, 2003
  2. David McWilliams

    problem compiling on AIX (64-bit)

    David McWilliams, Jul 1, 2004, in forum: Python
    Replies:
    0
    Views:
    511
    David McWilliams
    Jul 1, 2004
  3. ClownPleco

    putenv for AIX and ifdef for AIX

    ClownPleco, Aug 22, 2007, in forum: C Programming
    Replies:
    5
    Views:
    1,189
    Thomas Dickey
    Aug 24, 2007
  4. Replies:
    9
    Views:
    494
    Martin v. Löwis
    May 11, 2008
  5. Replies:
    5
    Views:
    223
    Philippe Lucas
    Jul 8, 2005
Loading...

Share This Page