2.0b4 compile issue's on FreeBSD4.8. - 1.2 compiles fine on same box.

Andreas Ericsson ae at op5.se
Fri Nov 4 12:14:56 CET 2005


Declan McKay wrote:
> I am having difficulty compiling Nagios 2.0b4 on FreeBSD4.8
> Example of what happens as follows:-
> 
> The configure runs fine...
> ##############################################################
> sudo ./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include
> .
> .
> *** Configuration summary for nagios 2.0b4 08-02-2005 ***:
> 
>  General Options:
>  -------------------------
>         Nagios executable:  nagios
>         Nagios user/group:  nagios,nagios
>        Command user/group:  nagios,nagios
>             Embedded Perl:  no
>              Event Broker:  yes
>         Install ${prefix}:  /usr/local/nagios
>                 Lock file:  ${prefix}/var/nagios.lock
>            Init directory:  /usr/local/etc/rc.d
>                   Host OS:  freebsd4.8
> .
> .
> ###############################################################
> 
> 
> 
> The Compile fails as follows:-
> ################################################################
> sudo make all
> cd ./base && make
> gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c broker.c
> In file included from ../include/config.h:174,
>                  from broker.c:26:
> /usr/include/sys/wait.h:62: warning: `WIFEXITED' redefined
> ../include/config.h:102: warning: this is the location of the previous definition
> /usr/include/sys/wait.h:63: warning: `WEXITSTATUS' redefined
> ../include/config.h:99: warning: this is the location of the previous definition


Pull the latest CVS or move the lines #ifndef WIFEXITED (and what 
follows) to after #include <sys/wait.h> in the header-file.

> In file included from ../include/config.h:114,
>                  from broker.c:26:
> /usr/include/sys/resource.h:58: field `ru_utime' has incomplete type
> /usr/include/sys/resource.h:59: field `ru_stime' has incomplete type
> /usr/include/sys/resource.h:119: syntax error before `int32_t'
> /usr/include/sys/resource.h:124: syntax error before `rlim_t'
> /usr/include/sys/resource.h:130: syntax error before `fixpt_t'


These are bugs in your systems header files. A system header file that 
uses types that aren't necessarily typedef'ed  is by definition broken.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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