Problem compiling Python for AIX 5.2

From: Lars Kromann (sealclub_at_sealclub.net)
Date: 07/13/04

  • Next message: beliavsky_at_aol.com: "Re: Monte Carlo Method and pi"
    Date: Tue, 13 Jul 2004 15:03:39 +0200
    
    

    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
    sealclub@sealclub.net
    www.sealclub.net

    _______________________________________________


  • Next message: beliavsky_at_aol.com: "Re: Monte Carlo Method and pi"

    Relevant Pages

    • Linking problems with xerces-c2_2_0 on ibm aix 5.2
      ... ld: 0711-317 ERROR: Undefined symbol: ... First I thought it is because xerces binaries are shared librarys and ... I tried then to build xerces on the AIX 5.2 my own, ... Maybe it is because there is no valid gcc for AIX 5.2. ...
      (comp.unix.aix)
    • Re: Make on AIX 5.2 ML01
      ... Make on AIX 5.2 ML01 ... We are trying to make an Oracle Internet Application Server ... ld: 0711-317 ERROR: Undefined symbol: .kpuexes ...
      (AIX-L)
    • Re: Compilation problems courier-imap
      ... ld: 0711-317 ERROR: Undefined symbol: cerr ... ld: 0711-317 ERROR: Undefined symbol: endl ... collect2: ld returned 8 exit status ...
      (comp.unix.aix)
    • GD-1.38: Undefined symbol: .__fixsfsi
      ... Try to compile GD-1.38 under AIX 5.1 and run into the following error ... when running make: Undefined symbol: .__fixsfsi ... I did install gd-1.8.4 successfully before! ...
      (comp.lang.perl.modules)
    • libtsdc++ and AIX linker problem
      ... AIX is different from some other popular ... [src@grs1 src]$ cat a.cc ... ld: 0711-317 ERROR: Undefined symbol: ... td::allocatorconst&) ...
      (comp.unix.aix)