alloca.h does not exist in FreeBSD.

Ton Voon ton.voon at altinity.com
Fri Nov 3 15:26:08 CET 2006


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061103/30c72b3b/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list