Ad Widget

Collapse

compiling error on aix 5.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globe
    Member
    • Apr 2006
    • 40

    #1

    compiling error on aix 5.1

    Hi @all,

    i tried to compile the zabbix 1.1.4 agent for aix 5.1 but there's always a strange error, mybe one of you can help me

    Code:
    make[1]: Entering directory `/tmp/zabbix-1.1.4/src/zabbix_agent'
    gcc  -static -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
    make[1]: *** [zabbix_agent] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.1.4/src/zabbix_agent'
    make: *** [all-recursive] Error 1
    in check dep. there is this error but i think it's normal due to missing proc info
    Code:
    checking net/if.h presence... yes
    configure: WARNING: net/if.h: present but cannot be compiled
    configure: WARNING: net/if.h:     check for missing prerequisite headers?
    configure: WARNING: net/if.h: see the Autoconf documentation
    configure: WARNING: net/if.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: net/if.h: proceeding with the preprocessor's result
    configure: WARNING: net/if.h: in the future, the compiler will take precedence
    configure: WARNING:     ## ------------------------------------------ ##
    configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
    configure: WARNING:     ## ------------------------------------------ ##
    Thanks in advance for help,

    Cheers Globe

    P.S.:
    Has someone precompiled agents for aix 5.1-4 and can provide them to the downloadsection?
  • dsipe
    Senior Member
    • Oct 2006
    • 184

    #2
    i've compiled zabbix 1.1.4 on AIX 5.2.

    To make it work, you need to use xlc as the compiler.
    So, just before running the configure script, issue the 'export CC=xlc' command.

    Comment

    • globe
      Member
      • Apr 2006
      • 40

      #3
      HI dsipe,

      can you send me the bin of it to my mail?
      globe [at] my [minus] mail [dot] ch

      Thanks in advance,

      Globe

      Comment

      • globe
        Member
        • Apr 2006
        • 40

        #4
        dsipe,

        you're the best
        Thanks for the precompiled agent.

        cheers Globe

        to provide it to others i uploaded it here ; will be deleted 35day after last download

        Comment

        • stritec
          Junior Member
          • Mar 2005
          • 13

          #5
          AIX precompiled Agents (Still available?)

          Would anyone be so kind as to provide another link or access to an AIX 5.1 precompiled agent?

          I'm having the same error when trying to compile on the server as what started this thread.

          libzbxsysinfo.a: not a COFF file

          Comment

          Working...