Ad Widget

Collapse

'make' problem again!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dannybin
    Junior Member
    • Mar 2006
    • 4

    #1

    'make' problem again!

    i have tried out all the solutions in the forum tat overcome the make problems, but i think mine is different. Although i installed all the suggested packages yet the error is there... any idea?

    part of my errors showns as...

    Making all in src/zabbix_agent
    make[1]: Entering directory `/home/zabbix/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -g -O2 -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 -g -O2 -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 `/home/zabbix/zabbix-1.0/src/zabbix_agent'
    Making all in src/zabbix_sender
    make[1]: Entering directory `/home/zabbix/zabbix-1.0/src/zabbix_sender'
    gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
    make[1]: Leaving directory `/home/zabbix/zabbix-1.0/src/zabbix_sender'
    Making all in src/zabbix_sucker
    make[1]: Entering directory `/home/zabbix/zabbix-1.0/src/zabbix_sucker'
    gcc -o ../../bin/zabbix_suckerd -g -O2 -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 -lz
    /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x24b7): In function `fetch_float_with_conversion':
    : undefined reference to `__sprintf_chk'
    /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x251d): In function `fetch_float_with_conversion':
    : undefined reference to `__sprintf_chk'
    /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2755): In function `fetch_long_with_conversion':
    : undefined reference to `__memset_chk'
    .
    .
    .
    /usr/lib/mysql/libmysqlclient.a(default.o)(.text+0x119a): In function `load_defaults':
    : undefined reference to `__printf_chk'
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/home/zabbix/zabbix-1.0/src/zabbix_sucker'
    make: *** [all] Error 1

    from the error statements, it looked like related to mysql, but then i already installed mysql and neccessary packages...

    [root@dev zabbix-1.0]# rpm -qa |grep MySQL
    MySQL-server-standard-4.1.18-0.rhel4
    MySQL-client-standard-4.1.18-0.rhel4
    MySQL-shared-compat-4.1.10a-0
    [root@dev zabbix-1.0]# rpm -qa |grep mysql
    mysql-devel-4.1.11-2
    php-mysql-4.2.2-17

    anything else left out? thanks for reading or answering in advanced.
    * p/s: i m using redhat 9
    Last edited by dannybin; 09-03-2006, 10:33.
Working...