[Nagiosplug-devel] [ nagiosplug-Bugs-1753164 ] configure script fails to recognise radius libs
SourceForge.net
noreply at sourceforge.net
Fri Jul 13 05:22:03 CEST 2007
Bugs item #1753164, was opened at 2007-07-13 13:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1753164&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Arya (alphamega)
Assigned to: Nobody/Anonymous (nobody)
Summary: configure script fails to recognise radius libs
Initial Comment:
There's a good chance this has already been fixed in CVS (and apologies if this is the case), but just in case it hasnt....
It looks like the configure script doesnt detect the radiusclient libs, even though they are present.
OS: Solaris 10
Plugins Version: 1.4.9
Radiusclient Version: 0.3.2
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9]
# echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin:/usr/sfw/sbin:/usr/ccs/bin:/usr/local/ssl/bin:/opt/64/bin:/opt/64/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/local/BerkeleyDB.4.4/bin:/usr/local/apache2/bin:/usr/local/mysql/bin/:/usr/local/net-snmp/bin:/usr/local/net-snmp/sbin:/usr/local/openldap/bin:/usr/local/openldap/sbin:/usr/local/php5/bin:/usr/local/radiusclient/sbin:/usr/local/rrdtool/bin
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9]
# crle
Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/BerkeleyDB.4.4/lib:/usr/local/apache2/lib:/usr/local/mysql/lib/mysql:/usr/local/net-snmp/lib:/usr/local/openldap/lib:/usr/local/php5/lib:/usr/local/radiusclient/lib:/usr/local/rrdtool/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/local/lib:/usr/local/ssl/lib:/usr/local/BerkeleyDB.4.4/lib:/usr/local/apache2/lib:/usr/local/mysql/lib/mysql:/usr/local/net-snmp/lib:/usr/local/openldap/lib:/usr/local/php5/lib:/usr/local/radiusclient/lib:/usr/local/rrdtool/lib:/usr/lib:/usr/sfw/lib
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9]
# cat configure-script.sh
export CPPFLAGS="-I/usr/local/radiusclient/include -I/usr/local/openldap/include"
export LDFLAGS="-L/usr/local/radiusclient/lib -L/usr/local/openldap/lib -R/usr/local/radiusclient/lib -R/usr/local/openldap/lib"
export CC=gcc
./configure --prefix=/usr/local/nagios
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9]
# ./configure-script.sh
<snip>
checking for libpq-fe.h... no
checking for rc_read_config in -lradiusclient... no
configure: WARNING: Skipping radius plugin
configure: WARNING: install radius libs to compile this plugin (see REQUIREMENTS).
checking for main in -lldap... yes
checking for ldap_set_option... yes
checking for ldap_init... yes
checking for ldap_set_option... (cached) yes
checking for ldap_get_option... yes
checking for ldap_start_tls_s... yes
<snip>
config.status: creating po/Makefile
--with-apt-get-command:
--with-ping6-command:
--with-ping-command: /usr/sbin/ping -n -s %s 56 %d
--with-ipv6: yes
--with-mysql: /usr/local/mysql/bin//mysql_config
--with-openssl: yes
--with-gnutls: no
--with-perl: /usr/local/bin/perl
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9]
# cd /usr/local
[root at cbr-x2200-02 /usr/local]
# ls -ld radiusclient*
2 lrwxrwxrwx 1 root root 19 Jul 12 16:07 radiusclient -> radiusclient-0.3.2/
2 drwxr-xr-x 7 root root 512 Jul 12 15:54 radiusclient-0.3.2
[root at cbr-x2200-02 /usr/local]
# du -a radiusclient/
6 radiusclient/include/includes.h
24 radiusclient/include/radiusclient.h
4 radiusclient/include/messages.h
2 radiusclient/include/pathnames.h
38 radiusclient/include
154 radiusclient/lib/libradiusclient.so.0.0.1
2 radiusclient/lib/libradiusclient.so.0
2 radiusclient/lib/libradiusclient.so
2 radiusclient/lib/libradiusclient.la
224 radiusclient/lib/libradiusclient.a
386 radiusclient/lib
52 radiusclient/sbin/radlogin
24 radiusclient/sbin/radstatus
26 radiusclient/sbin/radacct
22 radiusclient/sbin/radexample
126 radiusclient/sbin
2 radiusclient/etc/radiusclient/servers
2 radiusclient/etc/radiusclient/issue
2 radiusclient/etc/radiusclient/port-id-map
6 radiusclient/etc/radiusclient/radiusclient.conf
14 radiusclient/etc/radiusclient/dictionary
26 radiusclient/etc/radiusclient/dictionary.ascend
4 radiusclient/etc/radiusclient/dictionary.compat
2 radiusclient/etc/radiusclient/dictionary.merit
60 radiusclient/etc/radiusclient
62 radiusclient/etc
18 radiusclient/doc/instop.html
20 radiusclient/doc
634 radiusclient
Once I comment out some lines in configure (lines 20994 - 21003):
#if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
EXTRAS="$EXTRAS check_radius"
RADIUSLIBS="-lradiusclient"
#else
# { echo "$as_me:$LINENO: WARNING: Skipping radius plugin" >&5
#echo "$as_me: WARNING: Skipping radius plugin" >&2;}
# { echo "$as_me:$LINENO: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5
#echo "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;}
#fi
I can re-run ./configure-script.sh. Obviously configure will still report this:
checking for rc_read_config in -lradiusclient... no
However, it pretends it's there, and when I run a 'make', viola, it works.
To install radiusclient, I did a simple "./configure --prefix=/usr/local/radiusclient && make && make install" -- which works.
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9/plugins]
# make check_radius
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -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/radiusclient/include -I/usr/local/openldap/include -D_REENTRANT -I/usr/local/ssl/include -g -O2 -MT check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o check_radius.o check_radius.c; \
then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm -f ".deps/check_radius.Tpo"; exit 1; fi
In file included from check_radius.c:42:
common.h:191: warning: static declaration of 'floorf' follows non-static declaration
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -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/radiusclient/include -I/usr/local/openldap/include -D_REENTRANT -I/usr/local/ssl/include -g -O2 -MT netutils.o -MD -MP -MF ".deps/netutils.Tpo" -c -o netutils.o netutils.c; \
then mv -f ".deps/netutils.Tpo" ".deps/netutils.Po"; else rm -f ".deps/netutils.Tpo"; exit 1; fi
In file included from netutils.c:36:
common.h:191: warning: static declaration of 'floorf' follows non-static declaration
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -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/radiusclient/include -I/usr/local/openldap/include -D_REENTRANT -I/usr/local/ssl/include -g -O2 -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o utils.c; \
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; exit 1; fi
In file included from utils.c:17:
common.h:191: warning: static declaration of 'floorf' follows non-static declaration
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/radiusclient/lib -L/usr/local/openldap/lib -R/usr/local/radiusclient/lib -R/usr/local/openldap/lib -L. -L/usr/local/ssl/lib -o check_radius check_radius.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -lresolv -lradiusclient -lnsl -lsocket
mkdir .libs
gcc -g -O2 -o check_radius check_radius.o netutils.o utils.o -L/usr/local/radiusclient/lib -L/usr/local/openldap/lib -L/usr/local/src/nagios-plugins-1.4.9/plugins -L/usr/local/ssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a -lresolv /usr/local/radiusclient/lib/libradiusclient.so -lcrypt -lnsl -lsocket -R/usr/local/radiusclient/lib -R/usr/local/radiusclient/lib -R/usr/local/openldap/lib
[root at cbr-x2200-02 /usr/local/src/nagios-plugins-1.4.9/plugins]
# ldd ./check_radius
libresolv.so.2 => /lib/libresolv.so.2
libradiusclient.so.0 => /usr/local/radiusclient/lib/libradiusclient.so.0
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libc.so.1 => /lib/libc.so.1
libgen.so.1 => /lib/libgen.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
I suspect what's happening here is that configure is a little too optimistic about how configured the radiusclient installation is :-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1753164&group_id=29880
More information about the Devel
mailing list