Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9178

Agent compile 'make' fails on HP-UX 11.23 IA64 with error regarding net.c

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.4.2
    • Agent (G)
    • HP-UX 11.23 for IA64

      I am trying to compile the Zabbix agent (2.4.2 source) for HP-UX 11.23 (11i v2) on IA64 hardware, and have run into several problems.

      1. Had to temporarily rename /usr/include/iconv.h so that the ./configure script uses /usr/local/include/iconv.h instead.

      2. Had to configure using --with-iconv-lib=/usr/local/lib/hpux32 to get it to finish successfully.

      3. Now I can't 'make' or 'make install' without hitting the following errors:

              gcc -DHAVE_CONFIG_H -I. -I../../../../include    -I../../../../src/zabbix_agent/ -D_HPUX_API_LEVEL=20040821 -g -O2    -MT libspecsysinfo_a-net.o -MD -MP -MF .deps/libspecsysinfo_a-net.Tpo -c -o libspecsysinfo_a-net.o `test -f 'net.c' || echo './'`net.c
      net.c: In function 'get_if_names':
      net.c:69: error: storage size of 'ifc' isn't known
      net.c:71: error: storage size of 'lifc' isn't known
      net.c:80: error: invalid application of 'sizeof' to incomplete type 'struct ifconf' 
      net.c:91: error: invalid application of 'sizeof' to incomplete type 'struct ifconf' 
      net.c:98: error: dereferencing pointer to incomplete type
      net.c:103: error: dereferencing pointer to incomplete type
      net.c:108: error: increment of pointer to unknown structure
      net.c:108: error: arithmetic on pointer to an incomplete type
      net.c:128: error: invalid application of 'sizeof' to incomplete type 'struct if_laddrreq' 
      net.c:132: error: invalid application of 'sizeof' to incomplete type 'struct if_laddrconf' 
      net.c:136: error: dereferencing pointer to incomplete type
      net.c:136: error: increment of pointer to unknown structure
      net.c:136: error: arithmetic on pointer to an incomplete type
      net.c:138: error: dereferencing pointer to incomplete type
      net.c:143: error: dereferencing pointer to incomplete type
      *** Error exit code 1
      
      Stop.
      *** Error exit code 1
      
      Stop.
      *** Error exit code 1
      
      Stop.
      *** Error exit code 1
      
      Stop.
      *** Error exit code 1
      
      Stop.
      

      I configured the agent with:

      ./configure --prefix=/opt/zabbix_agent --enable-agent --with-iconv-lib=/usr/local/lib/hpux32
      

      Please let me know if further details are needed.

      Thank you preemptively.

      Cheers,
      Nathan Zachary

            Unassigned Unassigned
            nathan.georgeoff@emc.com Nathan Zachary
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: