Ad Widget

Collapse

Can't compile agent 2.0 on HP-UX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ericw
    Junior Member
    • Jun 2012
    • 11

    #1

    Can't compile agent 2.0 on HP-UX

    I've tried to compile the 2.0 agent on HP-UX and can't seem to figure out what I'm missing. I've tried both gcc and the native compiler. Configure works fine, end up with this from make (and gmake):


    cc -DSYSCONFDIR="\"/usr/local/etc\"" -g -o zabbix_agent zabbix_agent-zabbix_agent.o zabbix_agent-stats.o zabbix_agent-cpustat.o zabbix_agent-diskdevices.o zabbix_agent-perfstat.o zabbix_agent-vmstats.o zabbix_agent-zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a ../../src/libs/zbxsysinfo/agent/libagentsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a -lm
    /usr/ccs/bin/ld: Unsatisfied symbols:
    if_freenameindex (first referenced in ../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a(libspecsysinfo_a-net.o)) (code)
    if_nameindex (first referenced in ../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a(libspecsysinfo_a-net.o)) (code)
    *** Error exit code 1

    Stop.
    *** Error exit code 1

    Stop.
    *** Error exit code 1

    Stop.


    Anyone have any advice? Thanks!
  • ericw
    Junior Member
    • Jun 2012
    • 11

    #2
    From what I can gather, the problem I'm having is that those functions are part of the ipv6 libraries.. not installed by default. I only have 11.00 and 11.11 HP-UX installations, I'm not sure if this would work properly on an 11.23 machine. Is there any way I can skip this portion of the compile? Are 11.00 and 11.11 not supported by the 2.0 agent?

    Comment

    • porlock
      Junior Member
      • May 2012
      • 13

      #3

      Comment

      • ericw
        Junior Member
        • Jun 2012
        • 11

        #4
        Thanks for the response.. I tried that one already though, configure fails here:

        /usr/ccs/bin/ld: Can't find library: "ipv6"
        collect2: ld returned 1 exit status

        Since it's an old OS, the ipv6 libraries aren't part of the base install. If those are required I guess that's fine, but I'd like to know if there's another workaround.

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          You are welcome to test the fix in development branch:

          svn://svn.zabbix.com/branches/dev/ZBX-5171

          And if you do please add a comment in Jira:



          if that works or not.

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            In order to compile Zabbix agent 2.0 and later on HP-UX prior to 11i v3 (11.31) you will need ipv6 library.

            The reason is new feature of 2.0 - low-level discovery (LLD). This feature uses functions like if_nameindex() which prior to 11.31 were part of ipv6 library. Starting from 11.31 these were moved to libc.

            Related information: http://h20000.www2.hp.com/bc/docs/su.../c02258083.pdf

            Comment

            Working...