Ad Widget

Collapse

Help ! compile error for Zabbix 1.4 with Solaris 9 gcc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • portraitlandscape
    Junior Member
    • Jun 2007
    • 2

    #1

    Help ! compile error for Zabbix 1.4 with Solaris 9 gcc

    I edited mysql_config and replaced "-mt" with "-pthreads", "-xarch=v8" with "-mcpu=v8" to pass configure step.

    # configure --prefix=/opt/zabbix/1.4 --enable-server --enable-agent --with-mysql --with-net-snmp=/opt/zabbix/netsnmp/bin/net-snmp-config --with-libcurl
    :
    :

    # make
    :
    :

    /usr/include/arpa/nameser_compat.h:149:1: warning: this is the location of the previous definition
    gcc -g -O2 -I/opt/zabbix/mysql/include -pthreads -mcpu=v8 -I/usr/local/include -I/usr/local/ssl/include -I. -I/opt/zabbix/netsnmp/include -L/opt/zabbix/mysql/lib -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/local/ssl/lib -L/opt/zabbix/netsnmp/lib -L/usr/local/ssl/lib -L/opt/zabbix/netsnmp/lib -o zabbix_server 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 -lkvm -lm -lresolv -lnsl -lkstat -lsocket -lmysqlclient -lcurl -lnetsnmp
    Undefined first referenced
    symbol in file
    uncompress /opt/zabbix/mysql/lib/libmysqlclient.a(my_compress.o) (symbol belongs to implicit dependency /usr/local/lib/libz.so)
    compress /opt/zabbix/mysql/lib/libmysqlclient.a(my_compress.o) (symbol belongs to implicit dependency /usr/local/lib/libz.so)
    ld: fatal: Symbol referencing errors. No output written to zabbix_server
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/opt/zabbix/src/zabbix-1.4/src/zabbix_server'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/opt/zabbix/src/zabbix-1.4/src/zabbix_server'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/opt/zabbix/src/zabbix-1.4/src'
    make: *** [install-recursive] Error 1

    Thanks for any help !
    Last edited by portraitlandscape; 05-06-2007, 07:58.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi,

    I looks like in the last action (linking) a -lz is missing.

    Perhaps you can temporarily fix it by adding this to the right place
    in the Makefile.
    Look for other -lxxxx strings in the Makefile in the corresponding
    directory (src/zabbix_server) and add -lz somewhere at the end.

    HTH,

    Norbert.

    Comment

    • portraitlandscape
      Junior Member
      • Jun 2007
      • 2

      #3
      Originally posted by NOB
      Hi,

      I looks like in the last action (linking) a -lz is missing.

      Perhaps you can temporarily fix it by adding this to the right place
      in the Makefile.
      Look for other -lxxxx strings in the Makefile in the corresponding
      directory (src/zabbix_server) and add -lz somewhere at the end.

      HTH,

      Norbert.
      It's work !
      Thanks a lot !

      Comment

      Working...