with the plugins. My m4 version is 1.4.7. I don't know which version
test system to it so can check again with it.
Andy.
Hi!
I replied to Jason earlier, but forgot to copy the list. I'd like to
know if anyone else on a recent *BSD is having these problems with
coreutils 5.96.
Ton
On 3 Nov 2006, at 09:03, Ton Voon wrote:
Hi Jason,
The Nagios Plugins uses a lot of the libraries from GNU's coreutils,
of which alloca.h is taken. My guess is that the version we've sync'd
with does not work on FreeBSD 5.5. Can you please download
that compiles cleanly. If it does, then I've probably missed out some
m4 file - any help here would be great.
If it doesn't compile and looks like the same problem, then please
try newer versions of coreutils.
If we need to sync NP with a newer version of coreutils, this is much
harder work.
Ton
On 3 Nov 2006, at 04:02, Jason Kerr wrote:
Problem: regex_internal.h includes alloca.h which does not exist in
FreeBSD.
Version: nagios-plugins-1.4.5
OS: FreeBSD 5.5-STABLE
Snipped output from config.log:
configure:35748: checking for working alloca.h
configure:35769: gcc -o conftest -g -O2 -L. conftest.c >&5
conftest.c:127:20: alloca.h: No such file or directory
configure:35775: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
Snipped output from make:
In file included from regex.c:55:
regex_internal.h:458:20: alloca.h: No such file or directory
*** Error code 1
Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.
*** Error code 1
Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.
*** Error code 1
Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.
*** Error code 1
Stop in /usr/home/xxx/nagios-plugins-1.4.5.
*** Error code 1
Stop in /usr/home/xxx/nagios-plugins-1.4.5.
In FreeBSD the alloca function is contained in stdlib.h, but the
manpage discourages its use. "BUGS The alloca() function is machine
and compiler dependent; its use is dis-couraged."
In regex_internal.h do we need something like:
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#else
/* do nothing??? */
#endif
Thanks,
Jason
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
!DSPAM:37,454b51bf40412372011012!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
!DSPAM:37,454b51bf40412372011012!
------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
!DSPAM:37,454b51bf40412372011012!
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.