[Nagiosplug-devel] [ nagiosplug-Bugs-1119142 ] Solrais9: make abort with Error 2

SourceForge.net noreply at sourceforge.net
Fri Feb 11 00:17:49 CET 2005


Bugs item #1119142, was opened at 2005-02-09 07:43
Message generated for change (Comment added) made by stanleyhopcroft
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1119142&group_id=29880

Category: None
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: KlausW (osumok)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solrais9: make abort with Error 2

Initial Comment:
nagios-plugins-1.4
Using Solaris 9/Sparc make exits with Error2: 
nagios-plugins-1.3.1 works well
.....make...:
...depmode=gcc /bin/bash ../depcomp gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl  
  -g -O2 -c check_icmp.c
gcc  -g -O2  -L. -o check_icmp  check_icmp.o 
../intl/libintl.a  -lgen -lsocket  
Undefined                       first referenced
 symbol                             in file
gethostbyname                       check_icmp.o 
(symbol belongs to implicit dependency
/usr/lib/libnsl.so.1)
inet_addr                           check_icmp.o 
(symbol belongs to implicit dependency
/usr/lib/libnsl.so.1)
inet_ntoa                           check_icmp.o 
(symbol belongs to implicit dependency
/usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written
to check_icmp
collect2: ld returned 1 exit status
make[2]: *** [check_icmp] Error 1
make[2]: Leaving directory
`/tmp2/NAGIOS/nagios-plugins-1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp2/NAGIOS/nagios-plugins-1.4'
make: *** [all] Error 2


----------------------------------------------------------------------

>Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2005-02-11 08:15

Message:
Logged In: YES 
user_id=395628

Dear Folks,

You can also work around this problem by
manually compiling check_icmp by

1 copy the existing gcc line


2 add to it -lnsl -lsocket

The plugin author made it clear that these libs are needed
on Solaris but unfortch they are not in the (autoiconf)
generated Makefile.

Sorry.



----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2005-02-11 08:06

Message:
Logged In: YES 
user_id=590764

When you remove alle the references to check_icmp from the
nagios-plugins-1.4/plugins/makefile then you can already 
compile the other plugins.

-- Alex Peeters

----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2005-02-11 08:00

Message:
Logged In: YES 
user_id=590764

I have the same problem!!! 

# make
make  all-recursive
make[1]: Entering directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4'
Making all in intl
make[2]: Entering directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/intl'
Making all in lib
make[2]: Entering directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/lib'
make  all-am
make[3]: Entering directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/lib'
make[2]: Leaving directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/lib'
Making all in plugins
make[2]: Entering directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/plugins'
gcc  -g -O2  -L. -o check_icmp  
check_icmp.o  ../intl/libintl.a -liconv -lgen -lsocket  
Undefined                       first referenced
 symbol                             in file
gethostbyname                       check_icmp.o  (symbol 
belongs to implicit dependency /usr/lib/libnsl.so.1)
inet_addr                           check_icmp.o  (symbol belongs 
to implicit dependency /usr/lib/libnsl.so.1)
inet_ntoa                           check_icmp.o  (symbol belongs 
to implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to 
check_icmp
collect2: ld returned 1 exit status
make[2]: *** [check_icmp] Error 1
make[2]: Leaving directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/nagios/nagios-
plugins/nagios-plugins-1.4'
make: *** [all] Error 2

Alex Peeters


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1119142&group_id=29880




More information about the Devel mailing list