[Nagiosplug-help] Error in installing plugins Plugin version nagios-plugins-1.4.15SunOSmasterdns2 5.10 Generic_127127-11 sun4u sparc SUNW, SPARC-Enterprise
Amit Gupta
jtosys at bol.net.in
Tue Oct 26 11:09:22 CEST 2010
Dear Support Team
Please help me
I have installed nagios core nagios-3.2.1 on my Sun m5000 server
(Solaris 10 ) SunOS masterdns2 5.10 Generic_127127-11 sun4u sparc
SUNW,SPARC-Enterprise
But while running make on nagios-plugins-1.4.15 I get following error
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
-I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap
-I/usr/include/pgsql -I/usr/local/ssl/include -I/usr/local/ssl/include
-DNP_VERSION='"1.4.15"' -g -O2 -MT check_pgsql.o -MD -MP -MF
.deps/check_pgsql.Tpo -c -o check_pgsql.o check_pgsql.c
mv -f .deps/check_pgsql.Tpo .deps/check_pgsql.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.15"'
-g -O2 -L. -L/usr/local/ssl/lib -o check_pgsql check_pgsql.o
netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket
-lresolv -lpq -lcrypt -lintl -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.15\" -g -O2 -o check_pgsql
check_pgsql.o netutils.o utils.o
-L/data4/NAGIOS/nagios-plugins-1.4.15/plugins -L/usr/local/ssl/lib
../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -lresolv -lpq
-lcrypt /usr/local/lib/libintl.so -L/usr/local/lib -L/usr/openwin/lib
-L/usr/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib
/usr/local/lib/libiconv.so -lsec -lc -lpthread -ldl -R/usr/local/lib
-R/usr/local/lib
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
-I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap
-I/usr/include/pgsql -I/usr/local/ssl/include -I/usr/local/ssl/include
-DNP_VERSION='"1.4.15"' -g -O2 -MT check_ldap.o -MD -MP -MF
.deps/check_ldap.Tpo -c -o check_ldap.o check_ldap.c
check_ldap.c: In function `main':
check_ldap.c:102: warning: passing arg 1 of `asprintf' from incompatible
pointer type
mv -f .deps/check_ldap.Tpo .deps/check_ldap.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.15"'
-g -O2 -L. -L/usr/local/ssl/lib -o check_ldap check_ldap.o netutils.o
utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -lresolv
-lldap -llber -lintl -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.15\" -g -O2 -o check_ldap
check_ldap.o netutils.o utils.o
-L/data4/NAGIOS/nagios-plugins-1.4.15/plugins -L/usr/local/ssl/lib
../lib/libnagiosplug.a ../gl/libgnu.a /usr/local/lib/libldap.so
-L/usr/local/pgsql/lib -L/usr/local/lib -L/usr/openwin/lib -L/usr/lib
-L/usr/X11R6/lib -L/usr/local/BerkeleyDB.4.7/lib
/usr/local/lib/libsasl2.so -L/usr/local/BerkeleyDB.4.2/lib
-L/usr/openwinlib -lgss -lssl -lcrypto /usr/local/lib/liblber.so
-lresolv -lgen -lnsl -lnet -lsocket /usr/local/lib/libintl.so
/usr/local/lib/libiconv.so -lsec -lc -lpthread -ldl -R/usr/local/lib
-R/usr/local/lib
ld: fatal: library -lnet: not found
ld: fatal: File processing errors. No output written to check_ldap
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `check_ldap'
Current working directory /data4/NAGIOS/nagios-plugins-1.4.15/plugins
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='gl tap lib plugins plugins-scripts plugins-root po'; for subdir in
$list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /data4/NAGIOS/nagios-plugins-1.4.15
*** Error code 1
make: Fatal error: Command failed for target `all'
masterdns2#more .profile
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin:/usr/local/bin:/usr/
sbin:/usr/bin
PATH=$PATH:/usr/local/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib:/usr/local/lib
export LD_LIBRARY_PATH
EDITOR=vi
bash
Regards
Asst-Manager(Int-systems)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20101026/293f16f3/attachment.html>
More information about the Help
mailing list