Segmentation Fault
Bug #6624 reported by
Joselo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CFEngine |
Invalid
|
Undecided
|
Unassigned | ||
cfengine (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Breezy |
Invalid
|
Critical
|
Unassigned | ||
cfengine2 (Debian) |
Fix Released
|
Unknown
|
Bug Description
when I launch
$ cfengine -h
i got the following error:
GNU cfengine: A system configuration engine
1.6.5
Free Software Foundation 1995-2000
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, 0254 Oslo, Norway
Options:
Segmentation fault
-J.
Changed in cfengine: | |
assignee: | nobody → jose-lacapital |
Changed in cfengine: | |
status: | In Progress → Unconfirmed |
Changed in cfengine: | |
status: | Unconfirmed → Fix Committed |
Changed in cfengine: | |
assignee: | motumergers → motu |
Changed in cfengine: | |
assignee: | motureviewers → nobody |
Changed in cfengine: | |
status: | New → Invalid |
To post a comment you must log in.
forwarded 299676 <email address hidden>
thanks
On Tue, Mar 15, 2005 at 08:41:59PM -0800, Jeff Sheltren wrote:
> Using gcc 4.0, I am unable to compile cfengine. Here is what is output prototypes -Wuninitialized -pthread FORTIFY_ SOURCE= 2 -m32 -march=i386 -mtune=pentium4 OFFSET_ BITS=64 -pthread -O2 FORTIFY_ SOURCE= 2 -m32 -march=i386 -mtune=pentium4 OFFSET_ BITS=64 -MT init.o -MD tories' : gcc.gnu. org/ml/ gcc/2005- 02/msg00053. html for a bit more info. I am
> during the build:
>
> ----------
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/db4 -I/usr/include
> -pthread -g -O2 -Wreturn-type -Wmissing-
> -O2 -Wall -g -pipe -Wp,-D_
> -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_
> -Wall -g -pipe -Wp,-D_
> -I/usr/include/db4 -D_LARGEFILE_SOURCE -D_FILE_
> -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 'CheckWorkDirec
> 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://
> not quite sure what to change to get this working correctly.
One of our Debian users have reported the same bug [1] with a patch
included. Mark, do you check it out?
- Werner
[1] http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 299676