Machine Type: i486-pc-linux-gnu
Bash Version: 3.2
Patch Level: 5
Release Status: release
Description:
I see the following in config.log:
configure:26967: checking for sys_siglist in system C library
configure:27004: gcc -o conftest -g -O2 conftest.c -ldl >&5
conftest.c:306: error: conflicting types for 'sys_siglist'
/usr/include/signal.h:305: error: previous declaration of 'sys_siglist' was here
conftest.c: In function 'main':
conftest.c:311: warning: incompatible implicit declaration of built-in function
'exit'
configure:27007: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
<snip>
| #define HAVE_DECL_SYS_SIGLIST 1
<snip>
| /* end confdefs.h. */
|
| #include <sys/types.h>
| #include <signal.h>
| #ifdef HAVE_UNISTD_H
| #include <unistd.h>
| #endif
| #ifndef SYS_SIGLIST_DECLARED
| extern char *sys_siglist[];
| #endif
| main()
| {
| char *msg = sys_siglist[2];
| exit(msg == 0);
| }
configure:27033: result: no
so this is caused by mismatch of HAVE_DECL_SYS_SIGLIST vs
SYS_SIGLIST_DECLARED (which is used exactly once in the
./configure script, in this ifndef line, and thus is never
defined)
Repeat-By:
./configure (on linux with glibc)
Fix:
Replace SYS_SIGLIST_DECLARED with HAVE_DECL_SYS_SIGLIST
in aclocal.m4, rerun autoconf
I understand that _sys_siglist is found and that on glibc systems,
it is the same thing, so this bug is not very harmful.
--
Alexander E. Patrakov
[Prev in Thread]
Current Thread
[Next in Thread]
[REPOST] bad test for sys_siglist,
Alexander E. Patrakov<=