Hello!
Ok folks, as suggested by Pavel, I modified the configure script (mainly it
consisted to add cp conftest.out save.out; exit).
Well this is the content of this file (the dashes are not part of the
file):
-----
In file included from configure:2285:
/usr/include/curses.h:360:9: warning: "GCC_PRINTF" is not defined
/usr/include/curses.h:366:9: warning: "GCC_SCANF" is not defined
-----
Definitely, the content is not null and I wanted to understand what
happened there, so I read the next line in the configure script. The line
is:
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
With regards to the first regexp (the first one remove - with the -v - any
line, which begins with with zero or more spaces - the * -, this expression
repeated one or more times - the + -), the second regexp is trivial, so
Pavel was right when he said:
>My understanding is that his "gcc -E" outputs some error to the stderr
>that is not (and should not be) filtered out. egrep would filter out
>everything (since '+' matches one or more symbols) but it is not the right
>solution.
Furthermore, he was (again!) totally right (I hate to say that):
>Mathieu, the original author of the report, must have had a different
>problem but he got confused by this regular expression.
I have tried the same code with egcs-2.91.66 and the errors (GCC_* and
families missing) are not reported. So the problem come from gcc. gcc -v
reports: 2.96 20000724 (experimental). Oops, I didn't see the experimental
thing... The difference is in the -Wundef flag given to the preprocessor
(gcc -E). Without it, the results are the same between the two gcc. The
strange thing, is that the gcc info page tells:
`-Wundef'
Warn if an undefined identifier is evaluated in an `#if' directive.
In the curses.h, the test is:
#if GCC_PRINTF
and GCC_PRINTF is not defined before. So gnu guru folks, did this option do
anything under gcc 2.91??
And by the way why if instead of ifdef?
I think this bug report is over, sorry for the inconvenience.
Regards, Mathieu.
--
Mathieu CHOUQUET-STRINGER E-Mail : [EMAIL PROTECTED]
"Entities must not be multiplied beyond necessity"
-- William of Occam --