[Nagiosplug-devel] [ nagiosplug-Bugs-1117643 ] Problems compiling 1.4 on Solaris 8 x86
SourceForge.net
noreply at sourceforge.net
Mon Feb 7 15:03:23 CET 2005
Bugs item #1117643, was opened at 2005-02-07 02:52
Message generated for change (Comment added) made by stanleyhopcroft
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1117643&group_id=29880
Category: Parsing problem
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Russell (ellipses)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problems compiling 1.4 on Solaris 8 x86
Initial Comment:
make errored on compling check_icmp.
------<snip>----------------------------------------
gcc -g -O2 -L. -R/usr/local/ssl/lib -L/usr/local/ssl/lib -o
check_icmp check_icmp.o ../intl/libintl.a -liconv -lgen -
lsocket -I/usr/local/ssl/include
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
`/usr/local/support/src/monitor/nagios-plugins-
1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/support/src/monitor/nagios-plugins-1.4'
make: *** [all] Error 2
----------<snip>--------------------------------
gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-
solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
edited plugins/Makefile
# diff Makefile Makefile.orig
419c419
< check_icmp_LDADD = -lnsl
---
> check_icmp_LDADD =
attaching config.log
----------------------------------------------------------------------
>Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2005-02-07 23:02
Message:
Logged In: YES
user_id=395628
Dear Jeremy,
I am writing to thank you for opening a tracker about this
problem, which appears to be Solaris specific.
The developers advice is to add _both_ -lnsl and -lsocket
for Solaris compiles.
Since all the Makefiles for the plugins are generated by
autoconf/automake, there needs to be Solaris specific mods
made to configure.in and perhaps plugin/Makefile.am for this
to please everyone.
In the meantime, others should do as you have and manually
add the extra libraries for Solaris.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1117643&group_id=29880
More information about the Devel
mailing list