Thanks. This is caused by a bit of C++ in the C in this contributed program. If one moves the assignment to the end of the decalarations, it should be fine.
Patching now. M On Thu, 2005-10-06 at 11:12 -0700, [EMAIL PROTECTED] wrote: > with this error message: > > gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread > -g -O2 -I/usr/local/BerkeleyDB.4.1/include -D_FILE_OFFSET_BITS=64 > -pthread -g -O2 -I/usr/local/BerkeleyDB.4.1/include > -D_FILE_OFFSET_BITS=64 -L/usr/local/BerkeleyDB.4.1/lib -L/usr/lib -o > cfshow cfshow.o globals.o popen.o log.o errors.o filenames.o patches.o > -lfl -lfl -ldb -lcrypto -L../pub -lpub -lnss_nis -lpthread -lm > if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/BerkeleyDB.4.1/include > -I/usr/include -pthread -g -O2 -Wreturn-type -Wmissing-prototypes > -Wuninitialized -pthread -g -O2 -I/usr/local/BerkeleyDB.4.1/include > -D_FILE_OFFSET_BITS=64 -pthread -g -O2 > -I/usr/local/BerkeleyDB.4.1/include -D_FILE_OFFSET_BITS=64 -MT > cfetool.o -MD -MP -MF ".deps/cfetool.Tpo" -c -o cfetool.o cfetool.c; \ > then mv -f ".deps/cfetool.Tpo" ".deps/cfetool.Po"; else rm -f > ".deps/cfetool.Tpo"; exit 1; fi > cfetool.c: In function `DoBatch': > cfetool.c:2650: parse error before `int' > cfetool.c:2720: `timeint' undeclared (first use in this function) > cfetool.c:2720: (Each undeclared identifier is reported only once > cfetool.c:2720: for each function it appears in.) > cfetool.c:2775: `av' undeclared (first use in this function) > make[2]: *** [cfetool.o] Error 1 > make[2]: Leaving directory `/usr/src/redhat/BUILD/cfengine-2.1.16/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/src/redhat/BUILD/cfengine-2.1.16/src' > make: *** [all-recursive] Error 1 > error: Bad exit status from /var/tmp/rpm-tmp.67170 (%build) > > _______________________________________________ > Help-cfengine mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cfengine
