Ad Widget

Collapse

Compilation error on Solaris 2.5.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steria
    Junior Member
    • Jun 2007
    • 17

    #1

    Compilation error on Solaris 2.5.1

    Hello,

    I am trying to install zabbix 1.4.1 agent on a Solaris 2.5.1 server.

    The configure command runs fine:
    ./configure --prefix=/usr/zabbix --enable-agent

    However, when I run make, I get the following errors:

    Code:
    gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include    -I../../../../src/zabbix_agent/ -g -O2 -c -o libspecsysinfo_a-net.o `test -f 'net.c' || echo './'`net.c
    net.c: In function `NET_IF_IN_BYTES':
    net.c:77: union has no member named `ui64'
    net.c:82: union has no member named `ui32'
    net.c: In function `NET_IF_IN_PACKETS':
    net.c:111: union has no member named `ui64'
    net.c:116: union has no member named `ui32'
    net.c: In function `NET_IF_IN_ERRORS':
    net.c:144: union has no member named `ui32'
    net.c: In function `NET_IF_OUT_BYTES':
    net.c:172: union has no member named `ui64'
    net.c:177: union has no member named `ui32'
    net.c: In function `NET_IF_OUT_PACKETS':
    net.c:206: union has no member named `ui64'
    net.c:211: union has no member named `ui32'
    net.c: In function `NET_IF_OUT_ERRORS':
    net.c:239: union has no member named `ui32'
    net.c: In function `NET_IF_TOTAL_BYTES':
    net.c:268: union has no member named `ui64'
    net.c:268: union has no member named `ui64'
    net.c:273: union has no member named `ui32'
    net.c:273: union has no member named `ui32'
    net.c: In function `NET_IF_TOTAL_PACKETS':
    net.c:303: union has no member named `ui64'
    net.c:303: union has no member named `ui64'
    net.c:308: union has no member named `ui32'
    net.c:308: union has no member named `ui32'
    net.c: In function `NET_IF_TOTAL_ERRORS':
    net.c:336: union has no member named `ui32'
    net.c:336: union has no member named `ui32'
    net.c: In function `NET_IF_COLLISIONS':
    net.c:365: union has no member named `ui32'
    *** Error code 1
    make: Fatal error: Command failed for target `libspecsysinfo_a-net.o'
    Current working directory /tmp/zabbix-1.4/src/libs/zbxsysinfo/solaris
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /tmp/zabbix-1.4/src/libs/zbxsysinfo
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /tmp/zabbix-1.4/src/libs
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /tmp/zabbix-1.4/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Does anyone managed to install zabbix agent on a Solaris 2.5.1 platform ?
    Is there a pre-compiled package available somewhere?

    Thank you very much.
  • morgan
    Junior Member
    • Jul 2007
    • 24

    #2
    Looks like a bug in the replacement macro for unsigned 32/64 bit integers. You might be able to adjust the define to use something a bit more Solaris friendly if you can't otherwise compile it.

    Comment

    Working...