PDA

View Full Version : Seems I am doing something stupid while installing this great tool.


rajeevtomar
11-05-2005, 19:25
Seems I am doing something stupid while installing this great tool.

Error is pasted below :

postgres@zabbix-test1:~/zabbix-1.0> make
Making all in src/zabbix_agent
make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -static -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall
/tmp/cc9f6YHD.o(.text+0xc4): In function `check_ssh':
/var/lib/pgsql/zabbix-1.0/src/zabbix_agent/sysinfo.c:2383: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
gcc -o ../../bin/zabbix_agentd -static -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
/tmp/cc2tuYJZ.o(.text+0x444): In function `daemon_init':
/var/lib/pgsql/zabbix-1.0/src/zabbix_agent/zabbix_agentd.c:140: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccLu9gfA.o(.text+0xc4): In function `check_ssh':
/var/lib/pgsql/zabbix-1.0/src/zabbix_agent/sysinfo.c:2383: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -static -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c
/tmp/cc44x4E8.o(.text+0x1d): In function `send_value':
/var/lib/pgsql/zabbix-1.0/src/zabbix_sender/zabbix_sender.c:70: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sender'
Making all in src/zabbix_sucker
make[1]: Entering directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sucker'
gcc -o ../../bin/zabbix_suckerd -static -g -O2 -I../../include -I/usr/include/pgsql -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 -lcrypt -L/usr/lib -lpq -L/usr/lib -lnetsnmp -lcrypto
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lnetsnmp
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/lib/pgsql/zabbix-1.0/src/zabbix_sucker'
make: *** [all] Error 1


Please let me know, if anybody has any clue....???

Thanks, Rajeev

rajeevtomar
11-05-2005, 20:13
My Configure option is :

./configure --with-pgsql=/usr --enable-static --with-net-snmp=/usr

rajeevtomar
11-05-2005, 21:47
When I removed --enable-static it all worked fine. Please let me know what I will have to do make it compile with --enable-static

Response/hint will be highly appreciated.

Thanks, Rajeev

rajeevtomar
12-05-2005, 08:55
Also, my OS Version SuSe 9.1.

-Rajeev

rajeevtomar
12-05-2005, 15:56
Alexei,

Please help me on this ...I am closing to deadline. I will have to show a working model at the earlieast.

Thanking in anticipation.

Regards,
Rajeev

rajeevtomar
27-05-2005, 10:13
Can any one send me a solution for the above mentioned problem...???

I want to compile with option "--enable-static" on SUSE 9.1 with snmp support. But when doing so, I am getting above mentioned errors.

When I am removing the option "--enable-static"...it's all working fine.

Thanking in anticipation.

Rajeev

rajeevtomar
02-06-2005, 21:08
Can somebody will tell me the solution of the above mentioned problem...>?? I will be highly thankful to him/her.

I am stuck at this point.

Regards, Rajeev

mconigliaro
09-06-2005, 21:13
im getting this same error on suse pro 9.3

welshpjw
10-06-2005, 17:32
Sorry, I don't run SUSE, but I could swear I previously read some reports of the type of issue you are having. I can't currently find the google incantation to get you the answer. I think it had something to do with SSL or LDAP, but am not sure.

welshpjw
10-06-2005, 17:37
A couple of post talk about openssl-static-devel package. Hope this helps.

mconigliaro
10-06-2005, 21:24
suse doesn't have an openssl-static-devel package. i do have openssl-devel installed though.