bug-cfengine
[Top][All Lists]
Advanced

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

miscmounts problem


From: Massimo Loschi
Subject: miscmounts problem
Date: Thu, 19 Apr 2001 12:49:19 +0200

> On 16 Apr, Robert Shaw wrote:
> > Mark,
> > 
> > How come I can't do this:
> > 
> > miscmounts:
> >       $(myserver):/export/hostcfg     /export/junk    mode=rw
> > 
> > It doesn't allow me to use variables. Is there a specific reason you
> > have disabled this capability? If so, I'd like to hear why. If not, I'll
> > keep digging in the code to fix it.
> > 
> > Thanks.
> > -Robert
>
> A minor oversight. Here is a patched parse.c which fixes this.
>
> Mark
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  address@hidden
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> ---2137268918-851401618-987452089=:11495
> Content-Type: TEXT/plain; CHARSET=US-ASCII
> Content-Disposition: attachment; filename="parse.c"
[....]


Hi,

I also have the same problem as Robert, and I put the new parse.c in the src
directory, but compiling it I have a lot of errors, while the original
src/parse.c compile correctly:

[.....]
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -g -O2  -c misc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -g -O2  -c parse.c
parse.c:229: warning: type mismatch with previous implicit declaration
parse.c:67: warning: previous implicit declaration of `NewParser'
parse.c:229: warning: `NewParser' was previously implicitly declared to return `
int'
parse.c: In function `NewParser':
parse.c:231: incompatible types in assignment
parse.c:232: incompatible types in assignment
parse.c:233: incompatible types in assignment
parse.c:234: `STRATEGYNAME' undeclared (first use in this function)
parse.c:234: (Each undeclared identifier is reported only once
parse.c:234: for each function it appears in.)
parse.c:235: incompatible types in assignment
parse.c:236: incompatible types in assignment
parse.c:237: incompatible types in assignment
parse.c:238: incompatible types in assignment
parse.c:239: incompatible types in assignment
parse.c:240: incompatible types in assignment
parse.c:241: incompatible types in assignment
parse.c:242: incompatible types in assignment
parse.c:243: incompatible types in assignment
parse.c:244: incompatible types in assignment
parse.c:245: incompatible types in assignment
parse.c:246: incompatible types in assignment
parse.c:249: incompatible types in assignment
parse.c:250: incompatible types in assignment
parse.c:251: incompatible types in assignment
parse.c:252: `CHDIR' has an incomplete type
parse.c:253: incompatible types in assignment
parse.c:254: incompatible types in assignment
parse.c:255: incompatible types in assignment
parse.c:256: `STRATEGYDATA' undeclared (first use in this function)
parse.c: At top level:
parse.c:263: warning: type mismatch with previous implicit declaration
parse.c:220: warning: previous implicit declaration of `DeleteParser'
parse.c:263: warning: `DeleteParser' was previously implicitly declared to retur
n `int'
parse.c: In function `DeleteParser':
parse.c:268: `STRATEGYNAME' undeclared (first use in this function)
parse.c:288: `STRATEGYDATA' undeclared (first use in this function)
parse.c: In function `SetAction':
parse.c:313: `strategies' undeclared (first use in this function)
parse.c:317: `disks' undeclared (first use in this function)
parse.c: In function `HandleId':
parse.c:390: `CLASSBUF' undeclared (first use in this function)
parse.c:390: parse error before `F'
parse.c:402: `strategies' undeclared (first use in this function)
parse.c:403: `STRATEGYNAME' undeclared (first use in this function)
parse.c: In function `HandleItem':
parse.c:557: `disks' undeclared (first use in this function)
parse.c:709: `strategies' undeclared (first use in this function)
parse.c:710: `STRATEGYNAME' undeclared (first use in this function)
parse.c:716: `STRATEGYDATA' undeclared (first use in this function)
parse.c: In function `HandlePath':
parse.c:828: `disks' undeclared (first use in this function)
parse.c: In function `HandleVarpath':
parse.c:914: `ad' undeclared (first use in this function)
parse.c:914: parse error before `mit'
parse.c:934: `disks' undeclared (first use in this function)
parse.c: In function `HandleWildcard':
parse.c:1104: `wild' undeclared (first use in this function)
parse.c:1104: parse error before `card'
parse.c:1104: `card' undeclared (first use in this function)
parse.c:1189: `disks' undeclared (first use in this function)
parse.c:1200: `CL' undeclared (first use in this function)
parse.c:1200: parse error before `ASSBUFF'
parse.c:1204: `CLAS' undeclared (first use in this function)
parse.c:1204: parse error before `SBUFF'
parse.c:1225: `strategies' undeclared (first use in this function)
parse.c:1226: `STRATEGYNAME' undeclared (first use in this function)
parse.c:1233: `STRATEGYNA' undeclared (first use in this function)
parse.c:1233: parse error before `ME'
parse.c:1233: `ME' undeclared (first use in this function)
parse.c: In function `InitializeAction':
parse.c:1405: `STRATEGYDATA' undeclared (first use in this function)
parse.c:1432: `VSTRATEGYBUILD' undeclared (first use in this function)
make[1]: *** [parse.o] Error 1
make[1]: Leaving directory `/home/mloschi/cfengine-1.6.3/src'
make: *** [all-recursive] Error 1


Any suggestions?!?

Thanks in advance
Massimo



reply via email to

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