Ad Widget

Collapse

Help needed : compilation on AIX 5.3 failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pcamelio
    Member
    • Jul 2005
    • 67

    #1

    Help needed : compilation on AIX 5.3 failed

    I try to compile Zabbix on AIX 5.3 unsuccessfully
    I got the following error msg at the link step:

    Configure option I used :
    configure --enable-server --enable-agent --with-mysql --with-net-snmp-5.2.2 --prefix=$HOME

    Then I run Make
    the compilation is OK but the link failed at the first step

    ...
    Making all in zabbix_agent
    ...
    gcc -static -g -O2 -o zabbix_agent zabbix_agent.o .....

    collect2: ../libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file
    make: The error code from the last command is 1.

    Any idea ?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Seems like outdated version of GCC. Try to compile ZABBIX with AIX compiler by setting environment CC:

    export CC=cc
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • pcamelio
      Member
      • Jul 2005
      • 67

      #3
      So I need the IBM C compiler

      but we did not have it, I just can use gcc provided by IBM:

      gcc 3.3.2-5 for aix 5.3

      ...

      I read in some threads in forum about pb between 32 bits and 64 bits
      I tried to compile with -maix64 but I have got error msg for declaration variables in some c files ... stop to look in that direction

      sniff sniff
      I already used Zabbix on Linux, but I really loved use it on AIX 5.3 (p520)
      Any others suggestions

      Comment

      • pcamelio
        Member
        • Jul 2005
        • 67

        #4
        I am downloading gcc 4.0.2

        I let you know if I already have problem to compile

        Regards

        Comment

        • pcamelio
          Member
          • Jul 2005
          • 67

          #5
          I still have the same pb with gcc 4.0.2

          Any help is welcome

          Comment

          • Wookielnx
            Junior Member
            • Jan 2006
            • 1

            #6
            I'm having the same problem. I've tried to dig into it a bit more. I'm using AIX 5.2 ML6 and I've tried both the IBM supplied gcc and the one from bull's freeware. Here is what I've been able to see also.

            I get the following error first:
            gcc -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/aix/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a
            ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a -lnsl
            collect2: ../libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file

            Then, if I run the collect2 and ld commands here is what I find:
            Code:
            [B]~#>[/B] [I]collect2 ./src/libs/zbxsysinfo/libzbxsysinfo.a [/I] 
            collect2: ./src/libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file
            [B]~#>[/B] [I]collect2 -v[/I]
            collect2 version 3.3.2
            /usr/bin/ld -v
            ld: 0706-030 No processing done.  Specify at least one
                    input or import file or use at least one -b ex<n> option.
            collect2: ld returned 255 exit status
            [B]~#>[/B] [I]/usr/bin/ld ./src/libs/zbxsysinfo/libzbxsysinfo.a[/I]
            ld: 0711-230 WARNING: Nested archives are not supported.
                    Archive member ./src/libs/zbxsysinfo/libzbxsysinfo.a[libzbxcommon.a] is being ignored.
            ld: 0711-230 WARNING: Nested archives are not supported.
                    Archive member ./src/libs/zbxsysinfo/libzbxsysinfo.a[libzbxcrypto.a] is being ignored.
            ld: 0711-327 WARNING: Entry point not found: __start
            ld: 0711-244 ERROR: No csects or exported symbols have been saved.
            I also read through all of the issues with AIX 4.3 and the "not a COFF file" errors. I've tried to "ar -g" the files (which changes them from big archives to small archives), and it doesn't do anything different.

            I hope this helps get us closer to using this. I would really like to start monitoring all of my AIX boxes. Let me know if you want me try anything to get this going.

            Chip

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              There is pre-compiled ZABBIX agent for AIX 5.1. I'm not sure I have access to AIX 5.3 box to create an agent specially for 5.3.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • pcamelio
                Member
                • Jul 2005
                • 67

                #8
                Well, about the error in the compilation I tried with the gcc get from AIXPDSL
                (http://aixpdslib.seas.ucla.edu) with the same error

                Unfortunately, I can't spend a lot of time to solve this problem.


                About your answer Alexei, I did not try to build only the agent but Zabbix itself because I planned to install the Zabbix server on our AIX server in order to manage other AIX boxes and our network and W2K servers.

                Anyway, it is already running on Debian box, and it is working fine for the network and Windows servers

                Bye.

                Comment

                • crs9
                  Member
                  • Feb 2006
                  • 35

                  #9
                  AIX agent

                  I'm current running the 1.1beta2 agent on AIX 5.1 and 1.1beta5 on my server. Will using the beta5 agent give me more items I can check against? If so, anyway we can get a pre-compiled beta5 agent since I'm have the same make issue as others?

                  Just started using this software and it looks pretty good so far.

                  Thanks

                  Comment

                  • clund
                    Junior Member
                    • Feb 2006
                    • 1

                    #10
                    Things work with IBM's c compiler ... I just compiled the agent on 5.3 using XLC.

                    If you don't have a license for XLC and only need it for this one thing then you can always download the free trial version ... I think they give you 30 or 60 days for free.

                    Comment

                    • pcamelio
                      Member
                      • Jul 2005
                      • 67

                      #11
                      Thank you for the update

                      As soon as I got time, I'll try to download the C compiler and compile Zabbix

                      I let you know what I have done

                      Regards

                      Comment

                      • vendraminmauro
                        Junior Member
                        • Feb 2006
                        • 1

                        #12
                        Hi All,
                        I'm a system administrator on p595 machines (about 25 systems with AIX 5.3 ML03).
                        I tried to compile the server and the agent (with gcc-3.3.2-5) but I got the same results.
                        Did you tried to compile zabbix on AIX with XLC compiler ?
                        Any result ?

                        Regards.

                        Mauro

                        Comment

                        • KarmaPolice
                          Member
                          • Oct 2005
                          • 95

                          #13
                          bump for having the same issue... anyone know a workaround?...

                          XLC isn't really an option... and i'm getting the "Empty String" error if i try and use the pre-compiled agent out on the site...

                          Any help?
                          Last edited by KarmaPolice; 01-05-2006, 22:54.

                          Comment

                          • crs9
                            Member
                            • Feb 2006
                            • 35

                            #14
                            Aix Snmp

                            Just FYI, I gave up on an agent for AIX and am just running the default AIX SNMP from my AIX boxes, 9 of them.

                            Good luck guys

                            Comment

                            • fmtaylor2
                              Member
                              • May 2006
                              • 66

                              #15
                              Any clues yet

                              I installed the latest gcc. still getting that *&$^# not a COFF file error. If anyone has any ideas or a fix or something let me know. I am desperate to get this working on my AIX boxen

                              Comment

                              Working...