Thanks. On Tue, 2005-03-15 at 20:41 -0800, Jeff Sheltren wrote: > Using gcc 4.0, I am unable to compile cfengine. Here is what is output > during the build: > > ---------- > > if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/db4 -I/usr/include > -pthread -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -pthread > -O2 -Wall -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -m32 -march=i386 -mtune=pentium4 > -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -O2 > -Wall -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -m32 -march=i386 -mtune=pentium4 > -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT init.o -MD > -MP -MF ".deps/init.Tpo" -c -o init.o init.c; \ > then mv -f ".deps/init.Tpo" ".deps/init.Po"; else rm -f ".deps/init.Tpo"; > exit 1; fi > In file included from init.c:33: > cf.extern.h:73: error: array type has incomplete element type > init.c: In function 'CheckWorkDirectories': > init.c:96: warning: too many arguments for format > init.c:116: warning: too many arguments for format > init.c:176: warning: too many arguments for format > init.c:89: warning: ignoring return value of 'chown', declared with > attribute warn_unused_result > init.c:109: warning: ignoring return value of 'chown', declared with > attribute warn_unused_result > init.c:130: warning: ignoring return value of 'chown', declared with > attribute warn_unused_result > init.c:150: warning: ignoring return value of 'chown', declared with > attribute warn_unused_result > init.c:182: warning: ignoring return value of 'chown', declared with > attribute warn_unused_result > > ---------- > > Apparently, the definition of OPTIONS[] in cf.extern.h is not allowed since > you can't have an array of incomplete types. See > http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html for a bit more info. I am > not quite sure what to change to get this working correctly. > > -Jeff > > > > > _______________________________________________ > Bug-cfengine mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-cfengine
_______________________________________________ Bug-cfengine mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-cfengine
