Compile / link error in AIX 5.3

Help
striebhz
2009-02-04
2013-05-08
  • striebhz

    striebhz - 2009-02-04

    Hi

    I tried to get unixtop 3.7 running on a AIX 5.3 PPC machine. Configure just ran fine, but "make" returns with an error.
    Compiler is gcc but ld is the original one from AIX (didn't find gnu ld).
    What do I have to do?

    ---

    stdout:
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c display.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c hash.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c screen.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c top.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c username.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c utils.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall  -c version.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall   -fno-strict-aliasing -o m_aix5.o -c ./machine/m_aix5.c
    gcc -DHAVE_CONFIG_H  -I. -I. -O2 -pipe -Wall   -o top display.o hash.o screen.o top.o username.o utils.o version.o  m_aix5.o -lperfstat -lcurses

    ---

    stderr:
    ./machine/m_aix5.c: In function 'get_process_info':
    ./machine/m_aix5.c:434: warning: implicit declaration of function 'getprocs64'
    ./machine/m_aix5.c:424: warning: 'timediff' may be used uninitialized in this function
    ld: 0711-317 ERROR: Undefined symbol: .floor
    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.

    ---

    Thanks a lot.

     
    • Daryl Dawkins

      Daryl Dawkins - 2009-03-25

      I have the same issue with 3.7 and AIX 5.3

      # make
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c color.c
              nawk -f ./sigconv.awk /usr/include/sys/signal.h >sigdesc.h
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c commands.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c display.c
      display.c: In function `display_move':
      display.c:234: warning: `p' might be used uninitialized in this function
      display.c: In function `i_message':
      display.c:1378: warning: suggest parentheses around && within ||
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c hash.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c screen.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c top.c
      top.c: In function `do_command':
      top.c:658: warning: suggest parentheses around && within ||
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c username.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c utils.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c version.c
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall   -fno-strict-aliasing -o m_aix5.o -c ./machine/m_aix5.c
      machine/m_aix5.c: In function `get_process_info':
      machine/m_aix5.c:434: warning: implicit declaration of function `getprocs64'
      machine/m_aix5.c:424: warning: `timediff' might be used uninitialized in this function
              gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall   -o top color.o commands.o display.o hash.o screen.o top.o username.o utils.o version.o  m_aix5.o -lperfstat -lcurses
      ld: 0711-317 ERROR: Undefined symbol: .floor
      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.

      This builds just fine on slackware linux however

       
    • Dan Nelson

      Dan Nelson - 2009-04-17

      You're hitting a bug in AIX 5.3's C compiler.  IBM fixed it, so upgrading should solve your problem:

      http://www.ibm.com/developerworks/forums/message.jspa?messageID=13876484#13876484

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks