Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Remy CARD
Mon, 07 Sep 1992 14:16
Bug in autoconf 1.1 ?
Author: Remy CARD
Date: Mon, 07 Sep 1992 14:16
Date: Mon, 07 Sep 1992 14:16
41 lines
1750 bytes
1750 bytes
Hi, I have found a bug in the configure script that comes with the shellutils version 1.7. This script seems to have been generated by autoconf so I have looked at this program and patched it. Description of the bug: On a Linux machine using gcc 2.2.2, the shellutils' configure incorrectly assumes that tzname does not exist. I have taken a look at configure and it seems that it detects if tzname is present by trying to compile a program containing 'extern char **tzname;'. In Linux, tzname is declared in time.h as 'extern char *tzname[2];' and gcc says that the two declarations are not compatible. The fix is to change the declaration of tzname in acspecific.m4 contained in the autoconf distribution. The patch is enclosed at the end of this mail. -- Remy Card card@masi.ibp.fr *** acspecific.m4.old Mon Sep 7 15:07:08 1992 --- acspecific.m4 Mon Sep 7 15:07:21 1992 *************** *** 484,490 **** if test -n "$no_tm_zone"; then AC_COMPILE_CHECK(tzname, [#include <time.h> #ifndef tzname /* For SGI. */ ! extern char **tzname; #endif], [atoi(*tzname);], AC_DEFINE(HAVE_TZNAME)) fi ])dnl --- 484,490 ---- if test -n "$no_tm_zone"; then AC_COMPILE_CHECK(tzname, [#include <time.h> #ifndef tzname /* For SGI. */ ! extern char *tzname[]; #endif], [atoi(*tzname);], AC_DEFINE(HAVE_TZNAME)) fi ])dnl
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads