Ad Widget

Collapse

libmysql problem with latest stable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omikron
    Junior Member
    • Sep 2005
    • 6

    #1

    libmysql problem with latest stable

    [root@monitor tmp]# tar zxf zabbix-1.0.tar.gz
    cd zabbi
    ./configur[root@monitor tmp]# cd zabbix-1.0
    [root@monitor zabbix-1.0]# ./configure --with-mysql
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for main in -lsocket... no
    checking for main in -lkstat... no
    checking for main in -lnsl... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking mtent.h usability... no
    checking mtent.h presence... no
    checking for mtent.h... no
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/mount.h usability... yes
    checking sys/mount.h presence... yes
    checking for sys/mount.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking sys/vfs.h usability... yes
    checking sys/vfs.h presence... yes
    checking for sys/vfs.h... yes
    checking sys/pstat.h usability... no
    checking sys/pstat.h presence... no
    checking for sys/pstat.h... no
    checking sys/sysinfo.h usability... yes
    checking sys/sysinfo.h presence... yes
    checking for sys/sysinfo.h... yes
    checking sys/statvfs.h usability... yes
    checking sys/statvfs.h presence... yes
    checking for sys/statvfs.h... yes
    checking for sys/socket.h... (cached) yes
    checking sys/loadavg.h usability... no
    checking sys/loadavg.h presence... no
    checking for sys/loadavg.h... no
    checking for netinet/in.h... (cached) yes
    checking for arpa/inet.h... (cached) yes
    checking sys/swap.h usability... yes
    checking sys/swap.h presence... yes
    checking for sys/swap.h... yes
    checking sys/vmmeter.h usability... no
    checking sys/vmmeter.h presence... no
    checking for sys/vmmeter.h... no
    checking for strings.h... (cached) yes
    checking sys/sysctl.h usability... yes
    checking sys/sysctl.h presence... yes
    checking for sys/sysctl.h... yes
    checking vm/vm_param.h usability... no
    checking vm/vm_param.h presence... no
    checking for vm/vm_param.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking kstat.h usability... no
    checking kstat.h presence... no
    checking for kstat.h... no
    checking sys/syscall.h usability... yes
    checking sys/syscall.h presence... yes
    checking for sys/syscall.h... yes
    checking sys/sysmacros.h usability... yes
    checking sys/sysmacros.h presence... yes
    checking for sys/sysmacros.h... yes
    checking sys/procfs.h usability... yes
    checking sys/procfs.h presence... yes
    checking for sys/procfs.h... yes
    checking for an ANSI C-conforming const... yes
    checking for pid_t... yes
    checking for socklen_t... yes
    checking for /proc filesystem... yes
    checking for file /proc/1/status... yes
    checking for file /proc/0/psinfo... no
    checking for file /proc/loadavg... yes
    checking for file /proc/net/dev... yes
    checking for mem_unit in struct sysinfo... yes
    checking for freeswap in struct sysinfo... yes
    checking for function sysconf() in unistd.h... yes
    checking for vmtotal in struct sys/vmmeter.h... no
    checking for struct swaptable in sys/swap.h... no
    checking for totalswap in struct sysinfo... yes
    checking for function sysctl (KERN_BOOTTIME)... no
    checking for function sysctl (KERN_MAXFILES)... no
    checking for function sysctl (KERN_MAXPROC)... no
    checking for function seteuid()... yes
    checking for function setproctitle()... no
    checking for totalram in struct sysinfo... yes
    checking for totalram in struct sysinfo... yes
    checking for sharedram in struct sysinfo... yes
    checking for bufferram in struct sysinfo... yes
    checking for freeram in struct sysinfo... yes
    checking for uptime in struct sysinfo... yes
    checking for procs in struct sysinfo... yes
    checking return type of signal handlers... void
    checking for getloadavg... yes
    checking for socket... yes
    checking for strtod... yes
    checking for snprintf... yes
    checking for MySQL support... yes
    checking for floor... no
    checking for floor in -lm... yes
    checking for compress in -lz... no
    checking for PostgreSQL support... no
    checking for NET-SNMP support... no
    checking for UCD-SNMP support... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/zabbix_sender/Makefile
    config.status: creating src/zabbix_agent/Makefile
    config.status: creating src/zabbix_sucker/Makefile
    config.status: creating src/zabbix_trapper/Makefile
    config.status: creating include/config.h

    ************************************************** *********
    * Now run 'make' *
    * *
    * Thank you for using Zabbix! *
    * <http://www.zabbix.com> *
    ************************************************** *********

    [root@monitor zabbix-1.0]# make
    Making all in src/zabbix_agent
    make[1]: Entering directory `/tmp/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
    gcc -o ../../bin/zabbix_agentd -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall -lnsl
    make[1]: Leaving directory `/tmp/zabbix-1.0/src/zabbix_agent'
    Making all in src/zabbix_sender
    make[1]: Entering directory `/tmp/zabbix-1.0/src/zabbix_sender'
    gcc -o ../../bin/zabbix_sender -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
    make[1]: Leaving directory `/tmp/zabbix-1.0/src/zabbix_sender'
    Making all in src/zabbix_sucker
    make[1]: Entering directory `/tmp/zabbix-1.0/src/zabbix_sucker'
    gcc -o ../../bin/zabbix_suckerd -I../../include -I/usr/include/mysql zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -lnsl -L/usr/lib/mysql -lmysqlclient -lm
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xaa): In function `my_uncompress':
    : undefined reference to `uncompress'
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13c): In function `my_compress_alloc':
    : undefined reference to `compress'
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.0/src/zabbix_sucker'
    make: *** [all] Error 1
    [root@monitor zabbix-1.0]#
  • ftpuser
    Junior Member
    • Feb 2005
    • 11

    #2
    may be same problem....

    check this thread

    Comment

    Working...