[Nagiosplug-help] Can't compile nagios-plugins-1.4.3 on Solaris10
Raphael
ramunag at sourcecap.ch
Mon Aug 7 16:46:26 CEST 2006
Hi list readers
I have successfully compiled and installed the nagios-plugins-1.4.3 on
OpenBSD3.6 and later, SuSE Linux Pro 8.2 (2.4.20-64GB-SMP), SUSE Linux
10.1 (2.6.16.21-0.13-smp) and Solaris 8 (sparc).
However, I didn't succeed to compile it on Solaris 10:
- it fails with "ld: fatal: library -lssl: not found" and more error
messages (see extended log further down)
- Configuring without ssl
./configure --without-ssl --without-openssl --without-crypto
did not help as the compilation stopped in the check_http section.
I appreciate any help including pointers and messages like "It works for
me".
Cheers,
Raphael
bash-3.00# uname -a
SunOS mysun01 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-V210
bash-3.00# ./configure
[snip]
checking for krb5.h... no
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for CRYPTO_lock in -lcrypto... yes
checking for main in -lssl... yes
checking for ANSI C header files... (cached) yes
[snip]
--with-openssl: yes
[snip]
bash-3.00# make
[snip]
bash-3.00# make
make all-recursive
Making all in intl
Making all in lib
make all-am
Making all in plugins
Making all in tests
/bin/bash ../libtool --mode=link --tag=CC gcc -Wall -g -O2 -L.
-R/usr/local/ssl/lib -o check_disk check_disk.o
utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a
popen.o ../intl/libintl.a -lgen -lsocket -lssl -lcrypto
gcc -Wall -g -O2 -o check_disk check_disk.o utils.o popen.o
-L/opt/nagios-plugins-1.4.3/plugins ../lib/libnagiosplug.a ../lib/libcoreutils.a ../intl/libintl.a -lgen -lsocket -lssl -lcrypto -R/usr/local/ssl/lib
ld: fatal: library -lssl: not found
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to check_disk
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `check_disk'
Current working directory /opt/nagios-plugins-1.4.3/plugins
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='tests'; 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) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
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 /opt/nagios-plugins-1.4.3/plugins
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='intl lib plugins plugins-scripts plugins-root m4 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) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
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 /opt/nagios-plugins-1.4.3
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00# ls -l /usr/local/ssl/lib
total 5412
drwxr-xr-x 2 root root 512 Aug 3 17:44 engines
-rw-r--r-- 1 root root 2349980 Aug 7 15:35 libcrypto.a
-rw-r--r-- 1 root root 393680 Aug 7 15:35 libssl.a
drwxr-xr-x 2 root root 512 Aug 3 17:45 pkgconfig
bash-3.00#
More information about the Help
mailing list