Ad Widget

Collapse

make giving compilation errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Neo
    Member
    • Jun 2005
    • 59

    #1

    make giving compilation errors

    [root@localhost zabbix-1.0]# make
    Making all in src/zabbix_agent
    make[1]: Entering directory `/root/not_installed/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 `/root/not_installed/zabbix-1.0/src/zabbix_agent'
    Making all in src/zabbix_sender
    make[1]: Entering directory `/root/not_installed/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 `/root/not_installed/zabbix-1.0/src/zabbix_sender'
    Making all in src/zabbix_sucker
    make[1]: Entering directory `/root/not_installed/zabbix-1.0/src/zabbix_sucker'
    gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/usr/include/mysql -I/usr/include 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 -L/usr/lib -lnetsnmp
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:223:1: warning: "PACKAGE_BUGREPORT" redefined
    In file included from zabbix_sucker.c:46:
    /usr/include/net-snmp/net-snmp-config.h:871:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:226:1: warning: "PACKAGE_NAME" redefined
    In file included from zabbix_sucker.c:46:
    /usr/include/net-snmp/net-snmp-config.h:874:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:229:1: warning: "PACKAGE_STRING" redefined
    In file included from zabbix_sucker.c:46:
    /usr/include/net-snmp/net-snmp-config.h:877:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:232:1: warning: "PACKAGE_TARNAME" redefined
    In file included from zabbix_sucker.c:46:
    /usr/include/net-snmp/net-snmp-config.h:880:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:235:1: warning: "PACKAGE_VERSION" redefined
    In file included from zabbix_sucker.c:46:
    /usr/include/net-snmp/net-snmp-config.h:883:1: warning: this is the location of the previous definition
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xbc): In function `my_compress_alloc':
    : undefined reference to `compress'
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a): In function `my_uncompress':
    : undefined reference to `uncompress'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
    /usr/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_md5'
    /usr/lib/libnetsnmp.so: undefined reference to `HMAC'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
    /usr/lib/libnetsnmp.so: undefined reference to `SSLeay'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
    /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
    /usr/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
    /usr/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
    /usr/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
    collect2: ld returned 1 exit status
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/root/not_installed/zabbix-1.0/src/zabbix_sucker'
    make: *** [all] Error 1
    [root@localhost zabbix-1.0]#
    What does this mean? Is there a bug in the source?
  • Neo
    Member
    • Jun 2005
    • 59

    #2
    What is that used for?

    Comment

    • Neo
      Member
      • Jun 2005
      • 59

      #3
      I installed the openssl-devel package and ran make again, this is what i got
      [root@localhost zabbix-1.0]# make
      Making all in src/zabbix_agent
      make[1]: Entering directory `/root/not_installed/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 `/root/not_installed/zabbix-1.0/src/zabbix_agent'
      Making all in src/zabbix_sender
      make[1]: Entering directory `/root/not_installed/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 `/root/not_installed/zabbix-1.0/src/zabbix_sender'
      Making all in src/zabbix_sucker
      make[1]: Entering directory `/root/not_installed/zabbix-1.0/src/zabbix_sucker'
      gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/usr/include/mysql -I/usr/include 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 -L/usr/lib -lnetsnmp -lcrypto
      /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xbc): In function `my_compress_alloc':
      : undefined reference to `compress'
      /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a): In function `my_uncompress':
      : undefined reference to `uncompress'
      collect2: ld returned 1 exit status
      make[1]: *** [all] Error 1
      make[1]: Leaving directory `/root/not_installed/zabbix-1.0/src/zabbix_sucker'
      make: *** [all] Error 1
      [root@localhost zabbix-1.0]#

      Comment

      • Neo
        Member
        • Jun 2005
        • 59

        #4
        Solved

        Installed the zlib package and that too disappeared,
        Sould get on with the rest of the installation now.
        Thanks gyrate

        Comment

        Working...