bug-cfengine
[Top][All Lists]
Advanced

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

Re: gcc4 compilation error


From: Jeff Sheltren
Subject: Re: gcc4 compilation error
Date: Wed, 16 Mar 2005 14:47:35 -0800
User-agent: Microsoft-Entourage/11.0.0.040405

On 3/16/05 1:06 PM, "Mark Burgess" <address@hidden> wrote:
> 
> I have made an alternative patch. Use the subversions repository to test
> it. I don't have gcc4 yet. The snapshot should be updated within the
> hour too.
> 
> Mark
Whoops - forgot to cc the list on this.

Hi Mark, thanks for the quick patch.  I tried the snapshot, but it looks
like it still hasn't been updated, so I checked out from SVN and am still
having a similar compilation error:

----------
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:41: warning: unused variable 'result'
make[2]: *** [init.o] Error 1
----------

Is this trying to say that 'struct option' needs to be defined before
defining 'struct option OPTIONS[]'?  My C is too rusty.

-Jeff






reply via email to

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