[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: solaris 10 autoconf check 54 failure
From: |
Ralf Wildenhues |
Subject: |
Re: solaris 10 autoconf check 54 failure |
Date: |
Wed, 8 Mar 2006 13:33:31 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi D'Arcy,
* D'Arcy A MacIsaac wrote on Wed, Mar 08, 2006 at 09:36:28AM CET:
> during the make check on step 54 I get this:
>
> 54: AC_PROG_CPP without warnings FAILED (c.at:166)
>
> Attached is the testsuite.log.
Thanks for reporting this. I can confirm this on Solaris 10, even with
CVS Autoconf. The issue is that /lib/cpp is found as preprocessor, it
does not understand the `#error' directive, but `#error' is used in
system headers:
$ echo '#include <stdio.h>' | /lib/cpp - >/dev/null; echo $?
"/usr/include/sys/isa_defs.h", line 500: undefined control
2
$ sed -n 500p /usr/include/sys/isa_defs.h
#error "ISA not supported"
I think it's only the test that needs adjusted though, not the Autoconf
macros: they correctly choose `cc -E' as preprocessor, which does
understand `#error':
$ echo '#include <stdio.h>' | cc -E - >/dev/null; echo $?
0
Cheers,
Ralf
> ## ------------------------ ##
> ## Summary of the failures. ##
> ## ------------------------ ##
> Failed tests:
> GNU Autoconf 2.59 test suite test groups:
>
> NUM: FILENAME:LINE TEST-GROUP-NAME
> KEYWORDS
>
> 54: c.at:142 AC_PROG_CPP without warnings
> ## ---------------------- ##
> ## Detailed failed tests. ##
> ## ---------------------- ##
>
> 54. c.at:142: testing ...
> c.at:145: /lib/cpp </dev/null || exit 77
*snip*
> checking how to run the C preprocessor... ./mycpp
> checking for egrep... egrep
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking stdio.h usability... yes
> checking stdio.h presence... no
> checking for stdio.h... no
> checking autoconf_io.h usability... no
> checking autoconf_io.h presence... no
> checking for autoconf_io.h... no
> configure: creating ./config.status
> config.status: creating config.h
> c.at:161: cat state-ls.after
> No differences encountered
> No differences encountered
> c.at:166: sed '/#/!d
> /INTTYPES/d
> /MEMORY/d
> /PACKAGE_/d
> /STDC_HEADERS/d
> /STDINT/d
> /STDLIB/d
> /STRING/d
> /SYS_STAT/d
> /SYS_TYPES/d
> /UNISTD/d' config.h
> No differences encountered
> --- - Tue Mar 7 06:09:02 2006
> +++ /usr/tmp/local/autoconf/016/autoconf-2.59/tests/testsuite.dir/at-stdout
> Tue Mar 7 06:09:02 2006
> @@ -1,3 +1,3 @@
> /* #undef HAVE_AUTOCONF_IO_H */
> -#define HAVE_STDIO_H 1
> +/* #undef HAVE_STDIO_H */
>
> 54. c.at:142: 54. AC_PROG_CPP without warnings (c.at:142): FAILED (c.at:166)