Hi, Net-SNMP configuration is broken again! This is on a 64 bits Fedora Core 5.
If I try to configure an agent with the following line:
./configure --prefix=/opt/zabbix-agent --enable-agent --with-mysql --with-libcurl --with-net-snmp
it breaks. The "config.log" says:
But if I try to compile a server, always withtout "--enable-static", it works!
If I add "--enable-static" to the agent configuration, it works too:
And once again if I suppress the line "if test "x$enable_static" = "xyes"; then" in the configure scripts, configuration and compilation works again.
Regards
If I try to configure an agent with the following line:
./configure --prefix=/opt/zabbix-agent --enable-agent --with-mysql --with-libcurl --with-net-snmp
it breaks. The "config.log" says:
Code:
configure:9027: checking for net-snmp-config configure:9045: found /usr/bin/net-snmp-config configure:9057: result: /usr/bin/net-snmp-config configure:9111: checking for main in -lnetsnmp configure:9140: gcc -o conftest -g -O2 -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_ 64-linux-thread-multi/CORE -I. -I/usr/include/net-snmp conftest.c -lnetsnmp -lresolv -lnsl >&5 /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_DigestInit' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_DigestFinal' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `AES_set_encrypt_key' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_md5' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `HMAC' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `SSLeay' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_sha1' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `EVP_DigestUpdate' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `RAND_bytes' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `DES_cbc_encrypt' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `DES_key_sched' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
Code:
configure:9027: checking for net-snmp-config
configure:9045: found /usr/bin/net-snmp-config
configure:9057: result: /usr/bin/net-snmp-config
configure:9111: checking for main in -lnetsnmp
configure:9140: gcc -o conftest -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --p
aram=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv
-I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -I. -I/us
r/include/net-snmp -L/usr/lib64/mysql -L/usr/lib64 -L/usr/kerberos/lib64 conftest.c -lnetsnmp -lresolv -lnsl -lm
ysqlclient -lcurl >&5
configure:9146: $? = 0
configure:9164: result: yes
Code:
configure:9027: checking for net-snmp-config configure:9045: found /usr/bin/net-snmp-config configure:9057: result: /usr/bin/net-snmp-config configure:9111: checking for main in -lnetsnmp configure:9140: gcc -o conftest -g -O2 -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_ 64-linux-thread-multi/CORE -I. -I/usr/include/net-snmp -static conftest.c -lnetsnmp -lresolv -lnsl -lcrypto -lm -lwrap -lcrypto >&5 configure:9146: $? = 0 configure:9164: result: yes
Regards
Comment