Dear Forum Members!
I have a RH 5.3 box that is maintained by a different team and there is no root access for me on this box. This will prevent fixes as "install net-snmp-devel" and similar things.
I have built net-snmp and also libcurl in a location owned by our team, and tried to build zabbix against these:
./configure --prefix=/opt/SP/apps/zabbix/current/ --exec-prefix=/opt/SP/apps/zabbix/current/ --enable-server --enable-agent --with-net-snmp --with-libcurl --sysconfdir=/opt/SP/apps/zabbix/etc/ --with-mysql
The PATH contains the access to the needed net-snmp-config and curl-config files...
However during the configure command I run into an error:
checking for net-snmp-config... /opt/SP/apps/net-snmp/current/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library
I have found that there is a line in the configure file:
_full_libnetsnmp_libs="`$_libnetsnmp_config --libs` -lcrypto"
If I delete the -lcrypto part - to leave only the --libs the configure runs but the make fails.
Using the original configure script (with the -lcrypto) still in it the logs in the config.log related to the incident are:
configure:12659: checking for main in -lnetsnmp
configure:12688: gcc -o conftest -g -O2 -I/opt/SP/mysql/mysql-5.1.53-amd-x64/include/mysql -m64 -mfpmath=sse -msse3 -I/opt/SP/mysql/mysql-5.1.53-amd
-x64/include -I/opt/SP/gcc/current/include -I/usr/include -Wl,-R/opt/SP/mysql/mysql-5.1.53-amd-x64/lib -DUNIV_LINUX -DUNIV_LINUX -I/usr/local/
include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -I. -I/opt/SP/apps/net-snmp-5.6.1/include -rdynamic -L/opt/SP/a
pps/net-snmp-5.6.1/lib -lnetsnmp -lcrypto conftest.c -lnetsnmp -lm -lresolv >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:12694: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
<SNIP>
Is there any chance somebody has seen this - is able to help me with it - or in general at this time I am opened to any suggestions.
Thank you in advance !
Lorand
I have a RH 5.3 box that is maintained by a different team and there is no root access for me on this box. This will prevent fixes as "install net-snmp-devel" and similar things.
I have built net-snmp and also libcurl in a location owned by our team, and tried to build zabbix against these:
./configure --prefix=/opt/SP/apps/zabbix/current/ --exec-prefix=/opt/SP/apps/zabbix/current/ --enable-server --enable-agent --with-net-snmp --with-libcurl --sysconfdir=/opt/SP/apps/zabbix/etc/ --with-mysql
The PATH contains the access to the needed net-snmp-config and curl-config files...
However during the configure command I run into an error:
checking for net-snmp-config... /opt/SP/apps/net-snmp/current/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library
I have found that there is a line in the configure file:
_full_libnetsnmp_libs="`$_libnetsnmp_config --libs` -lcrypto"
If I delete the -lcrypto part - to leave only the --libs the configure runs but the make fails.
Using the original configure script (with the -lcrypto) still in it the logs in the config.log related to the incident are:
configure:12659: checking for main in -lnetsnmp
configure:12688: gcc -o conftest -g -O2 -I/opt/SP/mysql/mysql-5.1.53-amd-x64/include/mysql -m64 -mfpmath=sse -msse3 -I/opt/SP/mysql/mysql-5.1.53-amd
-x64/include -I/opt/SP/gcc/current/include -I/usr/include -Wl,-R/opt/SP/mysql/mysql-5.1.53-amd-x64/lib -DUNIV_LINUX -DUNIV_LINUX -I/usr/local/
include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -I. -I/opt/SP/apps/net-snmp-5.6.1/include -rdynamic -L/opt/SP/a
pps/net-snmp-5.6.1/lib -lnetsnmp -lcrypto conftest.c -lnetsnmp -lm -lresolv >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:12694: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
<SNIP>
Is there any chance somebody has seen this - is able to help me with it - or in general at this time I am opened to any suggestions.
Thank you in advance !
Lorand
Comment