Andy,

Can you goto http://ftp.gnu.org/pub/gnu/coreutils/ and download 5.96 and try and compile on your platform. As the plugins are currently syncd with this version, if coreutils compiles, it means I've made a mistake somewhere in copying their files over.

If their code fails to compile, it is a problem with their code, which they've probably fixed in a newer version - please confirm by compiling their latest version. If a newer coreutils works, then I need to take some time to re-sync the plugins with their latest code, but that takes time...

Ton

On 3 Nov 2006, at 14:32, Andy Shellam (Mailing Lists) wrote:

Hi Ton,

How can we find out the coreutils version? 
Basically I'm using FreeBSD 6.1-RELEASE, and have experienced this issue 
with the plugins.  My m4 version is 1.4.7.  I don't know which version 
of coreutils 6.1 runs against though?

As soon as FreeBSD 6.2 is released (couple weeks) I'll be upgrading my 
test system to it so can check again with it.

Andy.

Ton Voon wrote:
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 
coreutils-5.96 from http://ftp.gnu.org/pub/gnu/coreutils/ and see if 
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!



-------------------------------------------------------------------------
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
_______________________________________________
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


This message has been scanned for viruses by MailController - www.MailController.altohiway.com



T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------------------------------------------------------------------
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
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to