bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch cfengine-2.0.7p1


From: Fredrik Jagenheim
Subject: Re: Patch cfengine-2.0.7p1
Date: Thu, 22 May 2003 16:42:58 +0200
User-agent: Mutt/1.5.1i

On Thu, May 22, 2003 at 03:48:44PM +0200, Mark Burgess wrote:
> The GET_LOADAVG is supposed to find this file if it needs to compile
> the getloadavg function. So solaris 5.6 does not have getloadavg?
> 
> I don't know why it does not work. All my systems have the function
> getloadvg, so I guess they don't need to include this file.

Sorry for not being clear, the problem is that on solaris 5.6
getloadvg.c tried to include the file 'a.out.h'. No such file existed,
but there existed a 'nlist.h' which was '#else':d in the code:

(This is around line 356 in getloadavg.c)

#  ifndef VMS
#   ifndef __linux__
#    ifndef NLIST_STRUCT
#     include <a.out.h>
#    else /* NLIST_STRUCT */
#     include <nlist.h>
#    endif /* NLIST_STRUCT */

Defining NLIST_STRUCT in conf.h made it include nlist.h instead of
trying to find a.out.h, which didn't exist. Atleast not on my system.

I figured the correct solution to this was to make the configure check
for the presence of 'nlist.h' and set the proper define, but I have
not enough experience with autoconf to make that patch.

Hope this makes things clearer. Or I might just not understand a
deeper problem. :)

//F

-- 
To segfault is human; to bluescreen moronic. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]