help-cfengine
[Top][All Lists]
Advanced

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

Re: DPKGPackageCheck() implementation.


From: Nate Campi
Subject: Re: DPKGPackageCheck() implementation.
Date: Thu, 11 Mar 2004 16:31:24 -0800
User-agent: Mutt/1.3.28i

On Tue, Mar 09, 2004 at 08:18:32PM +0100, Morten Werner Olsen wrote:
> 
> Cfengine was choosen as the configuration management tool, and one of
> the first things I missed when using APT from Cfengine, was package
> support for DPKG (this is already implemented for RPM). I have made a
> draft implementation [1] of the function DPKGPackageCheck() in
> src/package.c based on the already existing RPMPackageCheck().

I didn't have the same older cfengine version you had, but I had
cfengine-2.1.0p1 which was pretty close. It patches fine but doesn't
build on sid ("gcc (GCC) 3.3.3 (Debian)").

gcc -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include  -pthread  -g -O2
-Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread -g -O2
-pthread -g -O2  -c `test -f 'misc.c' || echo './'`misc.c
misc.c: In function `ChecksumChanged':
misc.c:274: warning: passing arg 2 of pointer to function from
incompatible pointer type
misc.c:274: warning: passing arg 4 of pointer to function makes pointer
from integer without a cast
misc.c:274: error: too few arguments to function
misc.c: In function `ChecksumPurge':
misc.c:442: warning: passing arg 2 of pointer to function from
incompatible pointer type
misc.c:442: warning: passing arg 4 of pointer to function makes pointer
from integer without a cast
misc.c:442: error: too few arguments to function
make[2]: *** [misc.o] Error 1
make[2]: Leaving directory `/usr/src/cfengine-2.1.0p1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/cfengine-2.1.0p1/src'
make: *** [all-recursive] Error 1

-- 
Nate

He may look like an idiot and talk like an idiot but don't let that fool
you. He really is an idiot. - Groucho Marx





reply via email to

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