Ad Widget

Collapse

Error compiling server ver. 1.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stefaans
    Junior Member
    • Dec 2006
    • 6

    #1

    Error compiling server ver. 1.4

    I am getting an error during "make install" that seems related to MySQL.

    My configure line:
    Code:
    ./configure --enable-server --with-mysql
    And the last couple of lines from the "make install" output:
    Code:
    gcc  -g -O2   -I/usr/include/mysql -g -pipe -march=i386 -mcpu=i686        -L/usr/lib/mysql       -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/linux/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  -lm -lresolv -lnsl    -lmysqlclient
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xf5): In function `my_compress_alloc':
    /home/mysqldev/rpm/BUILD/mysql-5.0.27/libmysql/my_compress.c:58: undefined reference to `compress'
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x1a5): In function `my_uncompress':
    [COLOR=Red]/home/mysqldev/rpm/BUILD/mysql-5.0.27/libmysql/my_compress.c:85: undefined reference to `uncompress'[/COLOR]
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/usr/src/zabbix-1.4/src/zabbix_server'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/usr/src/zabbix-1.4/src/zabbix_server'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zabbix-1.4/src'
    make: *** [install-recursive] Error 1
    I am using Centos with 2.4.21-47.0.1.ELsmp kernel.

    I know too little about this to fix it myself, so any help will be appreciated
    Last edited by Stefaans; 05-06-2007, 20:22.
  • disgruntleddutch
    Member
    • Oct 2006
    • 34

    #2
    Thats no bug, thats you missing the zlib library.

    Comment

    • Stefaans
      Junior Member
      • Dec 2006
      • 6

      #3
      Dank u Omgekrapte Hollander

      I have now installed libz. There is now a libz.so and some other libz files in the /usr/lib/ directory.

      I Googled and found that I also had to add -lz to the LIBS line in the MakeFile:
      Code:
      LIBS = -lz -lm -lresolv -lnsl    -lmysqlclient
      That did not solve the problem. So I added -lz to a few more lines:
      Code:
      MYSQL_LIBS = -lz -lmysqlclient
      .
      .
      DB_LIBS =   -lz -lmysqlclient
      Still no luck. Before each "make install", I also did a "make clean" in case it matters. Any suggestions will be welcome.

      BTW, I have been using v1.1x for the last six months and had no problems compiling any of its releases

      Comment

      Working...