Ad Widget

Collapse

Unable to compile zabbix on HP-UX 11.23

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hemicuda
    Junior Member
    • Nov 2006
    • 2

    #1

    Unable to compile zabbix on HP-UX 11.23

    Hello,

    I am installling zabbix on hpux 11.23

    I run the configure line without errors.

    Code:
    ./configure --prefix=/opt/zabbix --enable-server --with-mysql=/opt/mysql/ --with-net-snmp=/opt/iexpress/net-snmp/

    Here is configuration output of configure script:

    Code:
    Configuration:
    
      Detected OS:      hpux11.23
      Install path:     /opt/zabbix
      Compilation arch: hpux
    
      Compiler:         gcc
      Compiler flags:   -g -O2
      Linker flags:
      Libraries:        -lnsl
    
      Enable server:    yes
      With database:    MySQL
    
      Enable agent:     no
    
    ***********************************************************
    *            Now run 'make'                               *
    *                                                         *
    *            Thank you for using ZABBIX!                  *
    *              <http://www.zabbix.com>                    *
    ***********************************************************
    If I run make, I get the following error:

    Code:
    -bash-3.00# make
    No suffix list.
    Making all in src
    Making all in libs
    gmake[1]: Entering directory `/tmp/zabbix/zabbix-1.1.4/src/libs'
    Making all in zbxcommon
    gmake[2]: Entering directory `/tmp/zabbix/zabbix-1.1.4/src/libs/zbxcommon'
    gmake[3]: Entering directory `/tmp/zabbix/zabbix-1.1.4/src/libs/zbxcommon'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include     -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
    then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
    In file included from ../../../include/sysinc.h:181,
                     from ../../../include/common.h:23,
                     from misc.c:1:
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    In file included from /usr/include/sys/mp.h:53,
                     from /usr/include/sys/malloc.h:59,
                     from /usr/include/net/netmp.h:51,
                     from /usr/include/net/if.h:59,
                     from ../../../include/sysinc.h:205,
                     from ../../../include/common.h:23,
                     from misc.c:1:
    /usr/include/machine/sys/getppdp.h:65: error: array type has incomplete element type
    gmake[3]: *** [misc.o] Error 1
    gmake[3]: Leaving directory `/tmp/zabbix/zabbix-1.1.4/src/libs/zbxcommon'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/tmp/zabbix/zabbix-1.1.4/src/libs/zbxcommon'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/tmp/zabbix/zabbix-1.1.4/src/libs'
    gmake: *** [all-recursive] Error 1
    *** Error exit code 1
    
    Stop.
    What's wrong?

    Thank & regards
    Heinrich
  • Hemicuda
    Junior Member
    • Nov 2006
    • 2

    #2
    Okay,

    the problem was a wrong gcc-version in path, 4.0.2 instead of 3.4.3.

    The help was:

    export CC=/usr/local/bin/gcc,

    then rerun configure as following:

    Code:
    bash-3.00# ./configure --prefix=/opt/zabbix  --enable-server --enable-agent --with-mysql=/opt/mysql/ --with-net-snmp=/opt/iexpress/net-snmp/
    And now I get the following error message:

    Code:
    Making all in zbxsms
            if /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -O2 -MT sms.o -MD -MP -MF ".deps/sms.Tpo" -c -o sms.o sms.c; \
            then mv -f ".deps/sms.Tpo" ".deps/sms.Po"; else rm -f ".deps/sms.Tpo"; exit 1; fi
    sms.c: In function `send_sms':
    sms.c:120: error: `CRTSCTS' undeclared (first use in this function)
    sms.c:120: error: (Each undeclared identifier is reported only once
    sms.c:120: error: for each function it appears in.)
    *** 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.
    What's wrong now?

    Thanks & Regards
    Heinrich

    Comment

    • kari
      Junior Member
      • Nov 2006
      • 7

      #3
      I compiled the agent with the standard compiler on HP-UX 11.23 and it worked just fine.

      cc -V
      cc: HP aC++/ANSI C B3910B A.05.52 [Sep 05 2003]

      ./configure --enable-agent

      Configuration:

      Detected OS: hpux11.23
      Install path: /usr/local
      Compilation arch: hpux

      Compiler: cc
      Compiler flags: -g
      Linker flags:
      Libraries: -lnsl

      Enable server: no
      With database: no

      Enable agent: yes

      ************************************************** *********
      * Now run 'make' *
      * *
      * Thank you for using ZABBIX! *
      * <http://www.zabbix.com> *
      ************************************************** ********

      It compiles just fine so try with the HP-UX compiler.

      /Kari

      Comment

      Working...