Ad Widget

Collapse

Compiling Zabbix 1.5.3 on Solaris 8 Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rodney
    Junior Member
    • Jun 2008
    • 15

    #1

    Compiling Zabbix 1.5.3 on Solaris 8 Error

    I´m running Zabbix 1.4.5 on a Server with Solaris 8 without any problem. Everything is OK.

    However, when I tried to compile Zabbix 1.5.3 on the same machine I´ve got the errors below:

    ================================================== ==
    ...
    make[3]: Entering directory `/export/home/install/zabbix-1.5.3/src/libs/zbxconf'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/local/mysql/include/mysql -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -I/usr/local/rrdtool-1.2.19/include -I/usr/local/include -I/usr/local/ssl/include -I. -I/usr/local/include -MT cfg.o -MD -MP -MF ".deps/cfg.Tpo" -c -o cfg.o cfg.c; \
    then mv -f ".deps/cfg.Tpo" ".deps/cfg.Po"; else rm -f ".deps/cfg.Tpo"; exit 1; fi
    cfg.c: In function `parse_cfg_object':
    cfg.c:62: error: structure has no member named `d_type'
    cfg.c:62: error: `DT_REG' undeclared (first use in this function)
    cfg.c:62: error: (Each undeclared identifier is reported only once
    cfg.c:62: error: for each function it appears in.)
    make[3]: *** [cfg.o] Error 1
    make[3]: Leaving directory `/export/home/install/zabbix-1.5.3/src/libs/zbxconf'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/export/home/install/zabbix-1.5.3/src/libs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/export/home/install/zabbix-1.5.3/src'
    make: *** [all-recursive] Error 1
    ================================================== ==

    Anyone could help me?

    Thanks.
  • disgruntleddutch
    Member
    • Oct 2006
    • 34

    #2
    No but I have the same error for both Solaris 8 and Solaris 10.
    I get the error with both gcc and Sun Studio (11 on 5.8, 12 on 5.10)'s cc.

    Making install in src
    Making install in libs
    Making install in zbxcrypto
    Making install in zbxcommon
    Making install in zbxlog
    Making install in zbxnix
    Making install in zbxconf
    source='cfg.c' object='cfg.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
    cc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -c cfg.c
    "cfg.c", line 62: undefined struct/union member: d_type
    "cfg.c", line 62: undefined symbol: DT_REG
    cc: acomp failed for cfg.c
    *** Error code 2
    make: Fatal error: Command failed for target `cfg.o'
    Current working directory /export/build/zabbix-1.5.3/src/libs/zbxconf
    *** Error code 1
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/build/zabbix-1.5.3/src/libs
    *** Error code 1
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/build/zabbix-1.5.3/src
    *** Error code 1
    make: Fatal error: Command failed for target `install-recursive'


    No one here have Solaris 8 or Solaris 10?

    Attached is my config.log generated by configure (i did a ./configure --enable-agent)
    Attached Files

    Comment

    • traq911
      Junior Member
      • May 2005
      • 17

      #3
      This link may provide some answers.

      This is a portability issue between Linux and Solaris. It doesn't matter what compiler you're using.

      http://forum.java.sun.com/thread.jspa?threadID=5265960

      The above link notes the posibility of using stat() since dirent.h on Solaris doesn't have any definitions for d_type and DT_REG.

      I'm not sure how the dev's want to resolve the problem but am interested in a fix since I use Zabbix on a SPARC Solaris 10 system.

      Comment

      • disgruntleddutch
        Member
        • Oct 2006
        • 34

        #4
        Alexei,

        You have an update on this? No good if 1.5.x cant compile on Solaris 10.

        Comment

        Working...