Re: [Nagios-users] alloca.h does not exist in FreeBSD.
same things on OpenBSD 4.0 for 1.4.5 config.log: configure:35754: checking for working alloca.h configure:35775: gcc -o conftest -g -O2 -L. conftest.c 5 conftest.c:125:20: alloca.h: No such file or directory configure:35781: $? = 1 compile: if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../intl -I../plugins -g -O2 -MT mountlist.o -MD -MP -MF .deps/mountlist.Tpo -c -o mountlist.o mountlist.c; then mv -f .deps/mountlist.Tpo .deps/mountlist.Po; else rm -f .deps/mountlist.Tpo; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../intl -I../plugins -g -O2 -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.o regex.c; then mv -f .deps/regex.Tpo .deps/regex.Po; else rm -f .deps/regex.Tpo; exit 1; fi In file included from regex.c:55: regex_internal.h:458:20: alloca.h: No such file or directory *** Error code 1 same thing than jason, usage discouraged: http://www.openbsd.org/cgi-bin/man.cgi?query=allocaapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html commenting #include in lib/regex_internal.h solve the problem, so a #if seems needed. Regards Julien - 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=lnkkid=120709bid=263057dat=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
Re: [Nagios-users] alloca.h does not exist in FreeBSD.
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 http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon http://www.altinity.com 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 !DSPAM:37,454b51bf40412372011012! ___ 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 !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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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
Re: [Nagios-users] alloca.h does not exist in FreeBSD.
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...TonOn 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.TonOn 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.TonOn 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.5OS: FreeBSD 5.5-STABLESnipped output from config.log:configure:35748: checking for working alloca.hconfigure:35769: gcc -o conftest -g -O2 -L. conftest.c 5conftest.c:127:20: alloca.h: No such file or directoryconfigure:35775: $? = 1configure: 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 1Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /usr/home/xxx/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /usr/home/xxx/nagios-plugins-1.4.5.*** Error code 1Stop 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??? */#endifThanks,Jason http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: tonvoon http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642!DSPAM:37,454b51bf40412372011012!___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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!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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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/nullThis message has been scanned for viruses by MailController - www.MailController.altohiway.com http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: tonvoon - Using Tomcat but need to do more? Need to
Re: [Nagios-users] alloca.h does not exist in FreeBSD.
Ton Voon wrote on 03/11/2006 15:26: 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. sorry, but for me, coreutils is GNU's stuff/tools which are not in BSD base distrib (nor in ports, at least in OpenBSD except as separate misc/fileutils, textproc/textutils) what are you looking for in coreutils ? Regards Julien - 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=lnkkid=120709bid=263057dat=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
Re: [Nagios-users] alloca.h does not exist in FreeBSD.
Hello Ton, I'm hoping this news will be the better of 2 evils!! Coreutils 5.96 compiles, installs and uninstalls successfully on FreeBSD 6.1. (I did remember to remove my botched alloca.h file ;-) ) I've just tried the Nagios Plugins 1.4.5 and === In file included from regex.c:55: regex_internal.h:458:20: alloca.h: No such file or directory *** Error code 1 Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib. *** Error code 1 Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib. *** Error code 1 Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib. *** Error code 1 Stop in /endeavour/software/cache/nagios-plugins-1.4.5. *** Error code 1 Stop in /endeavour/software/cache/nagios-plugins-1.4.5. === Re-instate my botched alloca.h, and plugins compile OK. Andy. Ton Voon wrote: 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 - 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=lnkkid=120709bid=263057dat=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
Re: [Nagios-users] alloca.h does not exist in FreeBSD.
Andy,Yup, that was easier than having to upgrade to a newer coreutils!Turns out I was missing the alloca_.h and alloca.c files from coreutils-5.96. I've just committed it into CVS. Still compiles on my MacOSX box. Please try the snapshot when it is next created.If you want to make sure the plugins always compiles on your platform, please look at the tinderbox server: http://tinderbox.altinity.org. You can setup regular builds on your box, so we get a better picture of which platforms work with the latest builds.TonOn 3 Nov 2006, at 15:09, Andy Shellam (Mailing Lists) wrote:Hello Ton,I'm hoping this news will be the better of 2 evils!!Coreutils 5.96 compiles, installs and uninstalls successfully on FreeBSD 6.1. (I did remember to remove my botched alloca.h file ;-) )I've just tried the Nagios Plugins 1.4.5 and===In file included from regex.c:55:regex_internal.h:458:20: alloca.h: No such file or directory*** Error code 1Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /endeavour/software/cache/nagios-plugins-1.4.5/lib.*** Error code 1Stop in /endeavour/software/cache/nagios-plugins-1.4.5.*** Error code 1Stop in /endeavour/software/cache/nagios-plugins-1.4.5.===Re-instate my botched alloca.h, and plugins compile OK.Andy.Ton Voon wrote: 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 This message has been scanned for viruses by MailController - www.MailController.altohiway.com http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: 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=lnkkid=120709bid=263057dat=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