[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Some Solaris issues
From: |
Akop Pogosian |
Subject: |
Some Solaris issues |
Date: |
Tue, 25 Feb 2003 21:17:37 -0800 |
User-agent: |
Mutt/1.4i |
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.
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.
-akop
- Some Solaris issues,
Akop Pogosian <=