Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Richard W.M. Jones
Indeed 'make distclean' does fix this. Sorry for the noise .. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_st

Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Eric Blake
On 06/04/2010 08:05 AM, Richard W.M. Jones wrote: > > On Fri, Jun 04, 2010 at 03:16:38PM +0200, Bruno Haible wrote: >> The first one is fine. The second one should not be there. > > Yes, I see now that gnulib/lib/getopt.h is present on the machine > which fails and absent on the other one. > >>

Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Richard W.M. Jones
On Fri, Jun 04, 2010 at 03:16:38PM +0200, Bruno Haible wrote: > The first one is fine. The second one should not be there. Yes, I see now that gnulib/lib/getopt.h is present on the machine which fails and absent on the other one. > Conclusion: You had a getopt.h that was necessary for one platfo

Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Bruno Haible
Richard W.M. Jones wrote: > /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 > -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT xstrtol.lo -MD -MP -MF > $depbase.Tpo -c -o xstrtol.lo xstrtol.c &&\ This command line is line. > > 2) the contents of config.h > > At

Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Richard W.M. Jones
99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT xstrtol.lo -MD -MP -MF .deps/xstrtol.Tpo -c xstrtol.c -fPIC -DPIC -o .libs/xstrtol.o In file included from xstrtol.h:23, from xstrtol.c:32: ./getopt.h:195: error: redefinition of 'struct option' [...] > > In

Re: ./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Bruno Haible
t; In file included from xstrtol.h:23, > from xstrtol.c:32: > ./getopt.h:195: error: redefinition of 'struct option' Next, you need to show 1) grep GETOPT config.status 2) the contents of config.h 3) if the first two don't help, also the output of the

./getopt.h:195: error: redefinition of 'struct option'

2010-06-04 Thread Richard W.M. Jones
make[4]: Entering directory `/home/rjones/d/libguestfs/gnulib/lib' CC xstrtol.lo In file included from xstrtol.h:23, from xstrtol.c:32: ./getopt.h:195: error: redefinition of 'struct option' In file included from xstrtol.h:23, from xstrtol.c