[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization
From: |
Soeren D. Schulze |
Subject: |
[Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization |
Date: |
Sun, 5 Sep 2004 19:22:45 +0200 |
Hello,
I think this is quite self-explaining:
---snip---
.../gnulib$ for source in lib/argp-*.c; do echo "compiling $source..." >&2;
LANG=C gcc -c -O3 -D_GNU_SOURCE $source; done
compiling lib/argp-ba.c...
compiling lib/argp-eexst.c...
compiling lib/argp-fmtstream.c...
In file included from lib/argp-namefrob.h:79,
from lib/argp-fmtstream.c:34:
lib/mempcpy.h:30: error: parse error before "__extension__"
In file included from lib/argp-namefrob.h:82,
from lib/argp-fmtstream.c:34:
lib/strndup.h:28: error: parse error before "__extension__"
lib/strndup.h:28: error: parse error before "n"
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: conflicting types for `__retval'
lib/strndup.h:28: error: previous declaration of `__retval'
lib/strndup.h:28: error: `__len' undeclared here (not in a function)
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: parse error before "const"
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before '}' token
compiling lib/argp-fs-xinl.c...
compiling lib/argp-help.c...
In file included from lib/argp-namefrob.h:79,
from lib/argp-help.c:52:
lib/mempcpy.h:30: error: parse error before "__extension__"
In file included from lib/argp-namefrob.h:82,
from lib/argp-help.c:52:
lib/strndup.h:28: error: parse error before "__extension__"
lib/strndup.h:28: error: parse error before "n"
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: conflicting types for `__retval'
lib/strndup.h:28: error: previous declaration of `__retval'
lib/strndup.h:28: error: `__len' undeclared here (not in a function)
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: parse error before "const"
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before '}' token
lib/argp-help.c:1673:4: warning: #warning No reasonable value to return
compiling lib/argp-parse.c...
lib/argp-parse.c:30:24: getopt_int.h: No such file or directory
In file included from lib/argp-namefrob.h:79,
from lib/argp-parse.c:43:
lib/mempcpy.h:30: error: parse error before "__extension__"
In file included from lib/argp-namefrob.h:82,
from lib/argp-parse.c:43:
lib/strndup.h:28: error: parse error before "__extension__"
lib/strndup.h:28: error: parse error before "n"
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: conflicting types for `__retval'
lib/strndup.h:28: error: previous declaration of `__retval'
lib/strndup.h:28: error: `__len' undeclared here (not in a function)
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before "if"
lib/strndup.h:28: error: parse error before "const"
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: warning: data definition has no type or storage class
lib/strndup.h:28: error: parse error before '}' token
lib/argp-parse.c:252: error: field `opt_data' has incomplete type
lib/argp-parse.c: In function `parser_init':
lib/argp-parse.c:464: error: variable `opt_data' has initializer but incomplete
type
lib/argp-parse.c:464: error: `_GETOPT_DATA_INITIALIZER' undeclared (first use
in this function)
lib/argp-parse.c:464: error: (Each undeclared identifier is reported only once
lib/argp-parse.c:464: error: for each function it appears in.)
lib/argp-parse.c:464: error: storage size of `opt_data' isn't known
compiling lib/argp-pv.c...
compiling lib/argp-pvh.c...
compiling lib/argp-xinl.c...
---snap---
My gnulib is the latest CVS checkout.
Omitting either -O3 or -D_GNU_SOURCE, the error does not occur.
Thanks in advance,
Soeren Schulze
PS:
Could you CC me?
- [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization,
Soeren D. Schulze <=
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Paul Eggert, 2004/09/05
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Soeren D. Schulze, 2004/09/06
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Paul Eggert, 2004/09/06
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Soeren D. Schulze, 2004/09/06
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Paul Eggert, 2004/09/11
- Re: [Bug-gnulib] Argp compilation failure with _GNU_SOURCE and optimization, Soeren D. Schulze, 2004/09/12
- [Bug-gnulib] Re: Argp compilation failure with _GNU_SOURCE and optimization, Simon Josefsson, 2004/09/12