Ad Widget

Collapse

Zabbix 1.4.4 Compile error in Solaris 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smsullivan
    Junior Member
    • Nov 2007
    • 11

    #1

    Zabbix 1.4.4 Compile error in Solaris 10

    Okay I had some issue with getting it to configure, but I got that working. Now I can't get it to compile.
    To configure I had to do the following in the configure:
    ./configure --enable-server --with-mysql=/usr/sfw/bin/mysql_config --with-libcurl=/usr/local/bin/curl-config CFLAGS="-I/usr/local/include -I/usr/sfw/include/mysql"

    Attached is my configure results:
    And here is my results trying to do the make install:

    Code:
    Making install in create
    Making install in schema
    Making install in misc
    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
    Making install in zbxsysinfo
    Making install in common
    Making install in simple
    Making install in solaris
    Making install in zbxplugin
    Making install in zbxsys
    Making install in zbxcomms
    Making install in zbxdb
    Making install in zbxdbhigh
    Making install in zbxemail
    Making install in zbxsms
    Making install in zabbix_server
    Making install in alerter
    Making install in discoverer
    Making install in housekeeper
    Making install in pinger
    Making install in poller
    Making install in httppoller
    Making install in timer
    Making install in trapper
    Making install in nodewatcher
    Making install in watchdog
    Making install in utils
    cc  -I/usr/local/include -I/usr/sfw/include/mysql   -I/usr/sfw/include/mysql -xstrconst -mt   -I/usr/local/include   -o zabbix_server -L/usr/sfw/lib -L/usr/sfw/lib/mysql    -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib -L/usr/local/ssl/lib zabbix_server-evalfunc.o  zabbix_server-expression.o  zabbix_server-actions.o  zabbix_server-operations.o  zabbix_server-events.o zabbix_server-zlog.o  zabbix_server-functions.o  zabbix_server-server.o alerter/libzbxalerter.a  discoverer/libzbxdiscoverer.a  pinger/libzbxpinger.a  poller/libzbxpoller.a  housekeeper/libzbxhousekeeper.a  timer/libzbxtimer.a  trapper/libzbxtrapper.a  nodewatcher/libzbxnodewatcher.a  utils/libzbxutils.a  httppoller/libzbxhttppoller.a  watchdog/libzbxwatchdog.a  ../../src/libs/zbxsysinfo/libzbxserversysinfo.a  ../../src/libs/zbxsysinfo/solaris/libspecsysinfo.a  ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a  ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a  ../../src/libs/zbxlog/libzbxlog.a  ../../src/libs/zbxnix/libzbxnix.a  ../../src/libs/zbxsys/libzbxsys.a  ../../src/libs/zbxconf/libzbxconf.a  ../../src/libs/zbxemail/libzbxemail.a  ../../src/libs/zbxsms/libzbxsms.a  ../../src/libs/zbxdbhigh/libzbxdbhigh.a  ../../src/libs/zbxdb/libzbxdb.a  ../../src/libs/zbxcommon/libzbxcommon.a  ../../src/libs/zbxcrypto/libzbxcrypto.a  ../../src/libs/zbxcomms/libzbxcomms.a    -lmysqlclient    -lcurl -lkvm -lm -lresolv -lnsl -lkstat -lsocket
    Undefined                       first referenced
     symbol                             in file
    mysql_autocommit                    ../../src/libs/zbxdb/libzbxdb.a(db.o)
    ld: fatal: Symbol referencing errors. No output written to zabbix_server
    *** Error code 1
    make: Fatal error: Command failed for target `zabbix_server'
    Current working directory /export/home/webops/programs/zabbix-1.4.4/src/zabbix_server
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='alerter  discoverer  housekeeper  pinger  poller  httppoller  timer  trapper  nodewatcher  watchdog  utils'; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/home/webops/programs/zabbix-1.4.4/src/zabbix_server
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='libs    zabbix_server'; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/home/webops/programs/zabbix-1.4.4/src
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='create  misc  src  upgrades'; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    Attached Files
  • smsullivan
    Junior Member
    • Nov 2007
    • 11

    #2
    Anybody have any ideas?

    Comment

    • standist
      Junior Member
      • Jan 2008
      • 11

      #3
      try this

      add /usr/ccs/bin to user's $PATH and login as zabbix or anyone not root

      Comment

      • Canuck
        Junior Member
        • Mar 2008
        • 8

        #4
        Originally posted by standist
        add /usr/ccs/bin to user's $PATH and login as zabbix or anyone not root
        I have the same error

        my not-root user .profile:

        LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/lib:/etc/lib:/usr/ccs/lib:/usr/sfw/lib:/usr/local/lib
        export LD_LIBRARY_PATH
        PATH=$PATH:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/sfw/bin
        export PATH

        Comment

        Working...