[Nagiosplug-help] configure nagios-plugins-1.4.10 on solaris

Marc Belanger sun.jedi at gmail.com
Thu Oct 25 19:01:41 CEST 2007


Hi,

A couple of comments and what I did to fix it. Firstly, I've not had much
luck with the '--with-openssl' argument to ./configure and I want ssl in
most cases. Admittedly, I've not spent much time trying to make it work with
the SUNopenssl packages either. Here's the minimum required to make it work
in theory.

1. openssl must be in your $PATH. The Sun packages are in /usr/sfw by
default.

root @ nagsrv: pkginfo | grep SUNWopenssl
system      SUNWopenssl-commands             OpenSSL Commands (Usr)
system      SUNWopenssl-include              OpenSSL Header Files
system      SUNWopenssl-libraries            OpenSSL Libraries (Usr)
system      SUNWopenssl-man                  OpenSSL Manual Pages
system      SUNWopensslr                     OpenSSL (Root)

Use pkginfo -l <package_name> for the detail. Although the BASEDIR for the
Sun stuff is /; how helpful, eh? It's in /usr/sfw/lib.

2. The runtime linker path must have the openssl libraries. The default is
/lib:/usr/lib. Add /usr/sfw/lib to the runtime linker path.

root @ nagsrv: crle

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /lib:/usr/lib:/usr/sfw/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system
default)

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/sfw/lib

That should fix the ssl part of your compile on a Solaris install with
SUNWCall.

Personally, I dump the SUNWopenssl stuff, and roll my own OpenSSL into
/usr/local, either from Sunfreeware, or openssl.org source but thats not
intrinsic to the problem, just some insight into how I overcame similar
errors. The $PATH, and crle are the minimal changes as far as I know.
Obviously, if you use the SMCossl or from source, openssl must be in the
$PATH and you must make clre see the libs (/usr/local/ssl/lib instead of the
/usr/sfw/lib).

3. Lastly, my installs use gcc 3.4.6 (not cc or SunStudio -- shame on me!),
and libiconv from Sunfreeware.

-Marc

On 10/15/07, Stevens, Michael <Michael_Stevens at affymetrix.com> wrote:
>
> It looks like configure did not find openssl properly.  Try
> --with-openssl=<path>, or even --without-openssl if you don't want ssl.
>
> --
> Mike
>
> > -----Original Message-----
> > From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-
> > help-bounces at lists.sourceforge.net] On Behalf Of David Rivera
> > Sent: Thursday, October 11, 2007 9:02 AM
> > To: nagiosplug-help at lists.sourceforge.net
> > Subject: [Nagiosplug-help] configure nagios-plugins-1.4.10 on solaris
> >
> > Hi list
> >
> >
> > I am having the following issue, I have search thew web and notice
> plenty
> > of people have had my same issue, but I have not run across a post
> with a
> > resolution. Any help would be helpful.
> >
> > I run the configure command, it *seems* to be fine, but once I run
> make,
> > it bombs with...
> >
> >
> >
> > -----
> > LD_LIBRARY_PATH=/usr/local/ssl/lib:
> >
> PATH=/bin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:/usr/local/etc:/us
> r/
> > bin:/bin:/sbin:/usr/sbin:
> > -----
> >
> >
> > cc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  -
> > L/tmp/nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a
> ../gl/libgnu.a
> > -lresolv -lssl -lcrypto -lnsl -lsocket
> > Undefined                       first referenced
> >  symbol                             in file
> > OpenSSL_add_all_algorithms          sslutils.o
> > ld: fatal: Symbol referencing errors. No output written to check_http
> > collect2: ld returned 1 exit status
> > *** Error code 1
> > make: Fatal error: Command failed for target `check_http'
> > Current working directory /tmp/nagios-plugins-1.4.10/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 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 /tmp/nagios-plugins-1.4.10
> > *** Error code 1
> >
> >
> >
> >
> > - David Rivera (drivera)
> >
> > -----------------------
> > The mailing list archive is found here:
> > http://www.nagiosexchange.org/nagiosplug-help.32.0.html
> >
> >
> >
> ------------------------------------------------------------------------
> -
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20071025/30a114f4/attachment.html>


More information about the Help mailing list