PDA

View Full Version : 1.1beta5 bug in makefile (maybe)


vgray
04-01-2006, 08:26
my 1.1beta2 compile fine with
./configure --with-mysql=/mysql --with-net-snmp= -enable-agent --enable-server

but 1.1beta5 did not compile
gcc -g -O2 -o zabbix_server -L/mysql/lib/mysql -L/lib evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a escalator/libzbxescalator.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lz -lcrypto -lnetsnmp -lresolv -lnsl
/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
/lib/libnetsnmp.so: undefined reference to `EVP_md5'

I've made some reserch and found that
in makefile.am we define zabbix_server_LDFLAGS = @MYSQL_LFLAGS@ @PGSQL_LFLAGS@ @LDAP_LFLAGS@ @SNMP_LFLAGS@

in 1.1beta2 we define SNMP_LFLAGS like -L/lib -lnetsnmp -lcrypto, but in beta5 we split it on
SNMP_LFLAGS = -L/lib
SNMP_LIBS = -lcrypto -lnetsnmp

and in result zabbix_server_LDFLAGS looks like -L/mysql/lib/mysql -L/lib and did not compile

I've added in
zabbix_server_LDFLAGS = @MYSQL_LFLAGS@ @PGSQL_LFLAGS@ @LDAP_LFLAGS@ @SNMP_LFLAGS@

and now zabbix compile fine

Alexei
04-01-2006, 08:35
Please post full gcc line succeeded to compile.

vgray
04-01-2006, 09:01
This is unsucceeded line


make[1]: Entering directory `/root/vgray/zabbix/zabbix-1.1beta5/src/zabbix_server'
gcc -g -O2 -o zabbix_server -L/mysql/lib/mysql -L/lib evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a escalator/libzbxescalator.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lz -lcrypto -lnetsnmp -lresolv -lnsl
/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
/lib/libnetsnmp.so: undefined reference to `EVP_md5'
/lib/libnetsnmp.so: undefined reference to `HMAC'
/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
/lib/libnetsnmp.so: undefined reference to `SSLeay'
/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
make[1]: *** [zabbix_server] Error 1
make[1]: Leaving directory `/root/vgray/zabbix/zabbix-1.1beta5/src/zabbix_server'
make: *** [all-recursive] Error 1


this is succeeded


make[1]: Entering directory `/root/vgray/zabbix/zabbix-1.1beta5/src/zabbix_server'
gcc -g -O2 -o zabbix_server -L/mysql/lib/mysql -L/lib -lcrypto -lnetsnmp evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a escalator/libzbxescalator.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lz -lcrypto -lnetsnmp -lresolv -lnsl
make[1]: Leaving directory `/root/vgray/zabbix/zabbix-1.1beta5/src/zabbix_server'

nstevens
19-06-2006, 07:08
Suse 9.0 Enterprise Zabbix 1.1

./configure --with-mysql --with-net-snmp --enable-agent --enable-server

I get the same error message as vgray but there is not really anything to change in makefile.am so now I am stuck.
Any help would be greatly appricated.

*********************************************
make[3]: Entering directory `/usr/src/zabbix-1.1/src/zabbix_server'
gcc -g -O2 -o zabbix_server -L/usr/lib/mysql -L/usr/lib evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxsms/libzbxsms.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lnetsnmp -lresolv -lnsl
/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[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/src/zabbix-1.1/src/zabbix_server'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/src/zabbix-1.1/src/zabbix_server'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/zabbix-1.1/src'
make: *** [install-recursive] Error 1
paul:/usr/src/zabbix-1.1 #