Ad Widget

Collapse

compiling zabbix 4.2.0 on HP-UX11.31

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svobolad
    Junior Member
    • Apr 2019
    • 2

    #1

    compiling zabbix 4.2.0 on HP-UX11.31

    Hi zabbix gurus,

    I need a help with compiling zabbix agent on ia64 hp-ux11.31

    I'm using configure following way:

    ./configure --enable-agent --with-libpcre-lib=/home/svobolad/pcre/lib --with-libpcre-include=/home/svobolad/pcre/include --with-iconv-include=/usr/local/include --with-iconv-lib=/usr/local/lib/hpux32 --prefix=/home/svobolad/zabbix CC=gcc

    configure is done without error what is strange:

    config.status: executing depfiles commands


    Configuration:

    Detected OS: hpux11.31
    Install path: /home/svobolad/zabbix
    Compilation arch: hpux

    Compiler: gcc
    Compiler flags: -g -O2 -I/home/svobolad/pcre/include

    Library-specific flags:
    iconv: -I/usr/local/include

    Enable server: no

    Enable proxy: no

    Enable agent: yes
    Agent details:
    TLS: no
    Linker flags: -L/home/svobolad/pcre/lib -L/usr/local/lib/hpux32
    Libraries: -lm -lpcre -liconv
    Configuration file: /home/svobolad/zabbix/etc/zabbix_agentd.conf
    Modules: /home/svobolad/zabbix/lib/modules

    Enable Java gateway: no

    LDAP support: no
    IPv6 support: no

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

    uxlab:/home/svobolad/zabbix-4.2.0 # echo $?
    0

    in config.log I can see following errors:

    conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
    conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
    conftest.c:70:19: error: mtent.h: No such file or directory
    conftest.c:37:19: error: mtent.h: No such file or directory
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:76:24: error: sys/statfs.h: No such file or directory
    conftest.c:43:24: error: sys/statfs.h: No such file or directory
    conftest.c:77:25: error: sys/loadavg.h: No such file or directory
    conftest.c:44:25: error: sys/loadavg.h: No such file or directory
    conftest.c:80:25: error: vm/vm_param.h: No such file or directory
    conftest.c:47:25: error: vm/vm_param.h: No such file or directory
    conftest.c:81:19: error: kstat.h: No such file or directory
    conftest.c:48:19: error: kstat.h: No such file or directory
    conftest.c:84:28: error: mach/host_info.h: No such file or directory
    conftest.c:51:28: error: mach/host_info.h: No such file or directory
    conftest.c:84:28: error: mach/mach_host.h: No such file or directory
    conftest.c:51:28: error: mach/mach_host.h: No such file or directory
    conftest.c:84:20: error: knlist.h: No such file or directory
    conftest.c:51:20: error: knlist.h: No such file or directory
    conftest.c:85:21: error: sys/var.h: No such file or directory
    conftest.c:52:21: error: sys/var.h: No such file or directory
    conftest.c:87:24: error: sys/dkstat.h: No such file or directory
    conftest.c:54:24: error: sys/dkstat.h: No such file or directory
    conftest.c:87:22: error: sys/disk.h: No such file or directory
    conftest.c:54:22: error: sys/disk.h: No such file or directory
    conftest.c:88:18: error: zone.h: No such file or directory
    conftest.c:55:18: error: zone.h: No such file or directory
    conftest.c:89:17: error: kvm.h: No such file or directory
    conftest.c:56:17: error: kvm.h: No such file or directory
    conftest.c:89:26: error: linux/kernel.h: No such file or directory
    conftest.c:56:26: error: linux/kernel.h: No such file or directory
    conftest.c:89:22: error: procinfo.h: No such file or directory
    conftest.c:56:22: error: procinfo.h: No such file or directory
    conftest.c:92:21: error: windows.h: No such file or directory
    conftest.c:59:21: error: windows.h: No such file or directory
    conftest.c:92:21: error: process.h: No such file or directory
    conftest.c:59:21: error: process.h: No such file or directory
    conftest.c:92:19: error: conio.h: No such file or directory
    conftest.c:59:19: error: conio.h: No such file or directory
    conftest.c:94:22: error: winsock2.h: No such file or directory
    conftest.c:61:22: error: winsock2.h: No such file or directory
    conftest.c:94:17: error: pdh.h: No such file or directory
    conftest.c:61:17: error: pdh.h: No such file or directory
    conftest.c:94:19: error: psapi.h: No such file or directory
    conftest.c:61:19: error: psapi.h: No such file or directory
    conftest.c:97:21: error: Winldap.h: No such file or directory
    conftest.c:64:21: error: Winldap.h: No such file or directory
    conftest.c:97:20: error: Winber.h: No such file or directory
    conftest.c:64:20: error: Winber.h: No such file or directory
    conftest.c:98:22: error: ws2tcpip.h: No such file or directory
    conftest.c:65:22: error: ws2tcpip.h: No such file or directory
    conftest.c:101:22: error: execinfo.h: No such file or directory
    conftest.c:68:22: error: execinfo.h: No such file or directory
    conftest.c:101:27: error: sys/systemcfg.h: No such file or directory
    conftest.c:68:27: error: sys/systemcfg.h: No such file or directory
    conftest.c:101:24: error: sys/mnttab.h: No such file or directory
    conftest.c:68:24: error: sys/mnttab.h: No such file or directory
    conftest.c:98:24: error: net/if_mib.h: No such file or directory
    conftest.c:87:24: error: sys/sysctl.h: No such file or directory
    conftest.c:87:22: error: sys/user.h: No such file or directory
    conftest.c:86:21: error: devstat.h: No such file or directory
    conftest.c:86:27: error: linux/netlink.h: No such file or directory
    conftest.c:86:25: error: libperfstat.h: No such file or directory
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    | /* Override any GCC internal prototype to avoid an error.
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    | /* Override any GCC internal prototype to avoid an error.
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    | /* Override any GCC internal prototype to avoid an error.
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    | /* Override any GCC internal prototype to avoid an error.
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    | /* Override any GCC internal prototype to avoid an error.
    Fatal error.
    conftest.c:90: error: size of array 'off_t_is_large' is negative
    conftest.c:119: error: expected expression before ')' token
    conftest.c:90: error: conflicting types for 'getpeername'
    /usr/include/sys/socket.h:714: error: previous declaration of 'getpeername' was here
    conftest.c:90: error: conflicting types for 'getpeername'
    /usr/include/sys/socket.h:714: error: previous declaration of 'getpeername' was here
    conftest.c:90: error: conflicting types for 'getpeername'
    /usr/include/sys/socket.h:714: error: previous declaration of 'getpeername' was here
    conftest.c:90: error: conflicting types for 'getpeername'
    /usr/include/sys/socket.h:714: error: previous declaration of 'getpeername' was here
    conftest.c:90: error: conflicting types for 'getpeername'
    /usr/include/sys/socket.h:714: error: previous declaration of 'getpeername' was here
    1 error.
    2 errors.
    conftest.c:111: error: 'struct __res_state' has no member named '_u'
    conftest.c:111: error: 'struct __res_state' has no member named '_u'
    conftest.c:111: error: 'struct __res_state' has no member named '_ext'
    conftest.c:112: error: 'struct sockaddr_in6' has no member named 'sin6_len'
    conftest.c:93: error: storage size of 'foo' isn't known
    conftest.c:106: error: 'SC_GETNSWP' undeclared (first use in this function)
    conftest.c:106: error: (Each undeclared identifier is reported only once
    conftest.c:106: error: for each function it appears in.)
    conftest.c:138: error: 'ST_DOINGDEL' undeclared (first use in this function)
    conftest.c:140: error: 'struct swapent' has no member named 'ste_pages'
    conftest.c:141: error: 'struct swapent' has no member named 'ste_free'
    conftest.c:87:23: error: sys/queue.h: No such file or directory
    conftest.c:88:25: error: sys/sensors.h: No such file or directory
    conftest.c:92: error: storage size of 'sensordev' isn't known
    conftest.c:97: error: storage size of 's' isn't known
    conftest.c:97: error: storage size of 's' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    /usr/include/sys/sysinfo.h:187: error: array type has incomplete element type
    conftest.c:90: error: storage size of 'sysinfo' isn't known
    conftest.c:100: error: 'struct tm' has no member named 'tm_gmtoff'
    conftest.c:94: error: '_SC_PHYS_PAGES' undeclared (first use in this function)
    conftest.c:94: error: (Each undeclared identifier is reported only once
    conftest.c:94: error: for each function it appears in.)
    conftest.c:95: error: '_SC_AVPHYS_PAGES' undeclared (first use in this function)
    1 error.
    conftest.c:97:24: error: sys/sysctl.h: No such file or directory
    conftest.c:97:24: error: sys/sysctl.h: No such file or directory
    conftest.c:110: error: 'CTL_KERN' undeclared (first use in this function)
    conftest.c:110: error: (Each undeclared identifier is reported only once
    conftest.c:110: error: for each function it appears in.)
    conftest.c:111: error: 'KERN_BOOTTIME' undeclared (first use in this function)
    conftest.c:97:24: error: sys/sysctl.h: No such file or directory
    conftest.c:106: error: 'CTL_HW' undeclared (first use in this function)
    conftest.c:106: error: (Each undeclared identifier is reported only once
    conftest.c:106: error: for each function it appears in.)
    conftest.c:107: error: 'HW_NCPU' undeclared (first use in this function)
    conftest.c:97:24: error: sys/sysctl.h: No such file or directory
    conftest.c:106: error: 'CTL_KERN' undeclared (first use in this function)
    conftest.c:106: error: (Each undeclared identifier is reported only once
    conftest.c:106: error: for each function it appears in.)
    conftest.c:107: error: 'KERN_MAXFILES' undeclared (first use in this function)
    conftest.c:97:24: error: sys/sysctl.h: No such file or directory
    conftest.c:106: error: 'CTL_KERN' undeclared (first use in this function)
    conftest.c:106: error: (Each undeclared identifier is reported only once
    conftest.c:106: error: for each function it appears in.)
    conftest.c:107: error: 'KERN_MAXPROC' undeclared (first use in this function)
    conftest.c:90:24: error: sys/sysctl.h: No such file or directory
    conftest.c:102: error: 'CP_USER' undeclared (first use in this function)
    conftest.c:102: error: (Each undeclared identifier is reported only once
    conftest.c:102: error: for each function it appears in.)
    conftest.c:102: error: 'CP_NICE' undeclared (first use in this function)
    conftest.c:102: error: 'CP_SYS' undeclared (first use in this function)
    conftest.c:102: error: 'CP_INTR' undeclared (first use in this function)
    conftest.c:102: error: 'CP_IDLE' undeclared (first use in this function)
    conftest.c:105: error: 'CPUSTATES' undeclared (first use in this function)
    conftest.c:106: error: 'CTL_KERN' undeclared (first use in this function)
    conftest.c:106: error: 'KERN_CPTIME' undeclared (first use in this function)
    conftest.c:113: error: 'u_int64_t' undeclared (first use in this function)
    conftest.c:113: error: expected ';' before 'states'
    conftest.c:114: error: 'KERN_CPTIME2' undeclared (first use in this function)
    conftest.c:116: error: 'states' undeclared (first use in this function)
    conftest.c:97: error: void value not ignored as it ought to be
    1 error.
    | /* Override any GCC internal prototype to avoid an error.
    configure:7473: checking for hstrerror
    ld: Unsatisfied symbol "hstrerror" in file /var/tmp//ccO5EQlY.o
    1 error.
    | /* Define hstrerror to an innocuous variant, in case <limits.h> declares hstrerror.
    | #define hstrerror innocuous_hstrerror
    | which can conflict with char hstrerror (); below.
    | #undef hstrerror
    | /* Override any GCC internal prototype to avoid an error.
    | char hstrerror ();
    | #if defined __stub_hstrerror || defined __stub___hstrerror
    | return hstrerror ();
    conftest.c:95:22: error: execinfo.h: No such file or directory
    conftest.c:96:25: error: libperfstat.h: No such file or directory
    conftest.c:100: error: 'perfstat_memory_total_t' undeclared (first use in this function)
    conftest.c:100: error: (Each undeclared identifier is reported only once
    conftest.c:100: error: for each function it appears in.)
    conftest.c:100: error: expected ';' before 'memstats'
    conftest.c:101: error: 'memstats' undeclared (first use in this function)
    conftest.c:96:25: error: libperfstat.h: No such file or directory
    conftest.c:100: error: 'perfstat_partition_total_t' undeclared (first use in this function)
    conftest.c:100: error: (Each undeclared identifier is reported only once
    conftest.c:100: error: for each function it appears in.)
    conftest.c:100: error: expected ';' before 'lparstats'
    conftest.c:101: error: 'lparstats' undeclared (first use in this function)
    3 errors.
    ac_cv_func_hstrerror=no

    Attached Files
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    If "configure" script runs successfully, then errors in config.log can be ignored (at least now). The errors are from probing various system features as most of them might not be available on a HP-UX system.
    Try running "make install".

    Comment

    Working...