Bug 2913

Summary: AC_C_CONST check doesn't work with -Wall -Werror flags enabled
Product: Sisyphus Reporter: Alexey Voinov <voins>
Component: autoconf_2.5Assignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
патч для AC_C_CONST
none
патч для AC_CHECK_DECLS
none
патч для AC_HEADER_STDC none

Description Alexey Voinov 2003-08-31 22:55:43 MSD
$ CFLAGS="-O2 -g -Werror" ./configure
...
checking for an ANSI C-conforming const... no
...
$ cat config.log
...
It was created by wdm configure 1.25, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure
...
configure:3434: checking for an ANSI C-conforming const
configure:3502: gcc -c -O2 -g -Wall -Werror  conftest.c >&5
cc1: warnings being treated as errors
configure: In function `main':
configure:3492: warning: unused variable `s'
configure:3512: warning: unused variable `foo'
configure:3473: warning: unused variable `x'
configure:3479: warning: unused variable `zero'
configure:3505: $? = 1
configure: failed program was:
...
Comment 1 Alexey Voinov 2003-08-31 23:11:17 MSD
на самом деле в autoconf всё совсем запущено :(
большинство тестов с -Wall -Werror не работают.
Я по мере своих сил попробую поисправлять,
но моих сил может и не хватить.
Comment 2 Alexey Voinov 2003-08-31 23:47:56 MSD
Created attachment 270 [details]
патч для AC_C_CONST

этот патч исправляет один тест. у меня аналогичная проблема
обнаружилась ещё на двух тестах: AC_HEADER_STDC и AC_CHECK_DECLS.
Наверняка есть и ещё, но я пока не вижу.
Comment 3 Alexey Voinov 2003-09-01 00:24:21 MSD
Created attachment 271 [details]
патч для AC_CHECK_DECLS
Comment 4 Alexey Voinov 2003-09-01 00:26:30 MSD
Created attachment 272 [details]
патч для AC_HEADER_STDC
Comment 5 Dmitry V. Levin 2003-10-17 16:12:49 MSD
Applied in 2.57-alt2