[Nagiosplug-help] check_icmp error under Solaris again

Horváth Tamás zsitfa at axelero.hu
Mon Dec 20 12:15:01 CET 2004


Thanks Andreas!

I tried what you suggested, but got the following error:

bash-2.03# gcc -O2 check_icmp.c -o check_icmp
Undefined                       first referenced
 symbol                             in file
inet_addr                           /var/tmp//cc2lIMsO.o
getprotobyname                      /var/tmp//cc2lIMsO.o
gethostbyname                       /var/tmp//cc2lIMsO.o
sendto                              /var/tmp//cc2lIMsO.o
h_errno                             /var/tmp//cc2lIMsO.o
socket                              /var/tmp//cc2lIMsO.o
recvfrom                            /var/tmp//cc2lIMsO.o
inet_ntoa                           /var/tmp//cc2lIMsO.o
gethostbyaddr                       /var/tmp//cc2lIMsO.o
ld: fatal: Symbol referencing errors. No output written to check_icmp
collect2: ld returned 1 exit status

My GCC version is:
bash-2.03# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.3

Sorry, but I'm not a programmer and have absolutely no experience with
compiling. How can I solve this issue?

Thanks in advance!

Bye, Tamas. 

More information about the Help mailing list