bug-gnulib
[Top][All Lists]
Advanced

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

#ifndef __need_getopt not working in getopt.h


From: Bruce Korb
Subject: #ifndef __need_getopt not working in getopt.h
Date: Sat, 14 Nov 2009 12:04:49 -0800
User-agent: Thunderbird 2.0.0.21 (X11/20090310)

$ 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

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