[Nagiosplug-devel] [ nagiosplug-Bugs-1119142 ] Solrais9: make abort with Error 2
SourceForge.net
noreply at sourceforge.net
Fri Mar 4 13:55:36 CET 2005
Bugs item #1119142, was opened at 2005-02-09 07:43
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1119142&group_id=29880
Category: None
Group: Release (specify)
>Status: Closed
Resolution: None
Priority: 5
Submitted By: KlausW (osumok)
Assigned to: Stanley Hopcroft (stanleyhopcroft)
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: Ton Voon (tonvoon)
Date: 2005-03-04 21:54
Message:
Logged In: YES
user_id=664364
This appears to be fixed, so closing this now.
Ton
----------------------------------------------------------------------
Comment By: KlausW (osumok)
Date: 2005-02-14 11:22
Message:
Logged In: YES
user_id=1214509
Dear Stanley Hopcroft,
everthing works fine! Thank You!
Yours sincerely
Klaus Wissmath
----------------------------------------------------------------------
Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2005-02-11 11:57
Message:
Logged In: YES
user_id=395628
Should have added this to the last update
bash-2.05$ uname -a
SunOS sparc-solaris2 5.9 Generic_112233-03 sun4u sparc
SUNW,Ultra-60
bash-2.05$ cd nagiosplug/plugins
bash-2.05$ rm check_icmp
bash-2.05$ make check_icmp
gcc -g -O2 -L. -o check_icmp check_icmp.o -lnsl -lsocket
-lresolv ../intl/libintl.a -liconv -lgen -lsocket
bash-2.05$
The formerly missing -lnsl from $SOCKETLIBS was what was
killing it.
HTH.
----------------------------------------------------------------------
Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2005-02-11 11:54
Message:
Logged In: YES
user_id=395628
Dear KlausW & zxr750,
The problem may be fixed in the CVS (I was able to compile
check_icmp on the SF Compile Farm Sparc/Sol 9 #1).
Fix from Andreas Ericsson <ae at op5.se>.
Let me know if it helps or brealks something else (I don't
think it will).
Yours sincerely.
----------------------------------------------------------------------
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