[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some Solaris issues
From: |
Mark . Burgess |
Subject: |
Re: Some Solaris issues |
Date: |
Wed, 26 Feb 2003 07:37:03 +0100 (MET) |
On 25 Feb, Akop Pogosian wrote:
> Hello. I am trying to compile cfengine-2.0.5 on a Solaris 2.6 box. The
> build fails with the error:
>
> cfenvd.o: In function `GatherLoadData':
> /home/src/akopps/cfengine-2.0.5/src/cfenvd.c:1058: undefined reference
> to `getloadavg'
>
> The getloadavg man page is present on Solaris 7, 8, and 9 systems but
> not on Solaris 2.6 systems, so I assume this function is not provided
> with Solaris 2.6.
>
I hope that the next version will correct this. For now, you
may comment out the call to this function.
>
> Second problem, when running cfagent from cfengine-2.0.5pre with -v
> flag on a Solaris 9 system that's running a 64-bit kernel, I see the
> following output:
>
> Additional hard class defined as: 32_bit
> Additional hard class defined as: sunos_5_9
> Additional hard class defined as: sunos_sun4u
> Additional hard class defined as: sunos_sun4u_5_9
> Additional hard class defined as: sparc
> Additional hard class defined as: sunos_sun4u_5_9_Generic_112233_03
> GNU autoconf class from compile time: compiled_on_solaris2.6
>
>
>
> Note that cfengine defines 32_bit class even though the system is
> running 64-bit kernel (/bin/isainfo -b returns 64). Does cfengine
> really have to be a compiled on a 64-bit version of Solaris to be able
> to figure out that it's running on a 64-bit system? I think it's an
> unnecessary restriction.
>
> Of course, a quick cure to this problem would be to compile cfengine
> on a newer system type, although, I was hoping that given the backward
> binary compatibility record of Solaris, I could get away with using a
> single cfengine build on all Solaris versions.
The problem is how to detect the system nature in a generic way. It is
not really so easy...I am not very happy with these classes, but I
don't know how to fix the problem.
>
> -akop
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~