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

Andreas Ericsson ae at op5.se
Fri Nov 4 14:07:21 CET 2005


Respond publicly or the list (and the archives) won't benefit from the 
answers (and if you do it twice I won't answer).

Declan McKay wrote:
> Hi Andreas,
> 
> Thankyou for your prompt reply.
> 
> Exactly which file should I be updating to solve this compile problem? 
> Is there a particular CVS repository to pull the update from?

http://nagios.sourceforge.net/ has all the cvs info you'll need.

> You mention "Bugs in my system header files..." - I assume you mean my 
> local /usr/include/sys tree - How can this be fixed
> 

I assume an update from your vendor (FreeBSD) should take care of it. 
They usually try hard to make sure things stay sane in their environment.

> If you could drop a quite note that would me much appreciated. My 
> questions maybe quite simple but I am quite new to FreeBSD.
> 

Yes, quite. ;)

> Again, thanks for you help.
> 
> Declan.
> 
> ----- Original Message ----- From: "Andreas Ericsson" <ae at op5.se>
> To: <nagios-users at lists.sourceforge.net>
> Sent: Friday, November 04, 2005 11:14 AM
> Subject: Re: [Nagios-users] 2.0b4 compile issue's on FreeBSD4.8. - 1.2 
> compiles fine on same box.
> 
> 
>> 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
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 
>> 03/11/2005
>>
>>
> 
> 

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