$ gcc -H -DHAVE_CONFIG_H -I. -I.. -g -Wall -MT close-hook.o \
-MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c
. ../config.h
.. ./stdlib.h
... /usr/include/stdlib.h
.... /usr/include/features.h
..... /usr/include/sys/cdefs.h
...... /usr/include/bits/wordsize.h
..... /usr/include/gnu/stubs.h
...... /usr/include/bits/wordsize.h
...... /usr/include/gnu/stubs-64.h
.... /usr/lib64/gcc/x86_64-suse-linux/4.3/include/stddef.h
.... /usr/include/bits/waitflags.h
.... /usr/include/bits/waitstatus.h
..... /usr/include/endian.h
...... /usr/include/bits/endian.h
...... /usr/include/bits/byteswap.h
....... /usr/include/bits/wordsize.h
.... /usr/include/xlocale.h
.... /usr/include/sys/types.h
..... /usr/include/bits/types.h
...... /usr/include/bits/wordsize.h
...... /usr/include/bits/typesizes.h
..... ./time.h
...... /usr/include/time.h
..... /usr/lib64/gcc/x86_64-suse-linux/4.3/include/stddef.h
..... /usr/include/sys/select.h
...... /usr/include/bits/select.h
...... /usr/include/bits/sigset.h
...... ./time.h
....... /usr/include/time.h
...... /usr/include/bits/time.h
..... /usr/include/sys/sysmacros.h
..... /usr/include/bits/pthreadtypes.h
...... /usr/include/bits/wordsize.h
.... /usr/include/alloca.h
..... /usr/lib64/gcc/x86_64-suse-linux/4.3/include/stddef.h
... /usr/lib64/gcc/x86_64-suse-linux/4.3/include/stddef.h
.. ./error.h
.. ./xstrtol.h
... ./getopt.h
.... /usr/include/getopt.h
In file included from ./xstrtol.h:22,
                 from ../config.h:990,
                 from close-hook.c:18:
./getopt.h:183: error: redefinition of 'struct option'

I  poked around a bit, but it is pretty tangled in there.
All I know is that I get this failure building the lib directory.
I'll try inserting this into config.h:  # define _GETOPT_H 1
and force /usr/include/getopt.h to be skipped.


Reply via email to