[ntp:questions] Re: "Can't set time of day: Interrupted system call" - who can help?

Just justestin at yahoo.com
Fri Aug 29 03:10:12 UTC 2003


Here is the problem with autoconf 2.57 and HPUX 10.20, 11.00, and 11i.
http://mail.gnu.org/archive/html/autoconf/2002-12/msg00089.html
http://mail.gnu.org/archive/html/autoconf/2002-12/msg00090.html

Here is the autoconf authors patch.
http://mail.gnu.org/archive/html/autoconf/2002-12/msg00102.html

Here is the text from the above links.

HP-UX 10.20 breakage in 2.57
-------------------------------------------
From:  Albert Chin 
Subject:  HP-UX 10.20 breakage in 2.57 
Date:  Sun, 22 Dec 2002 22:21:20 -0600 
User-agent:  Mutt/1.4i 
--------------------------------------------
2.57 introduced the following incompatible change:
  * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
  _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
  defined, to support freestanding compilers.  This should fix the
  bug reported by Momchil Velkov in
  <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.

Under, HP-UX 10.20, #include <limits.h> brings in <sys/time.h> which
defines a prototype for gettimeofday(). Therefore, the following code
fails on HP-UX 10.20:
  AC_CHECK_FUNCS(gettimeofday)

The error:
  cc: "configure", line 11666: warning 573: Parameter list is
  Inconsistent for "gettimeofday".

This error also occurs on HP-UX 11.00 and 11i.

albert chin (china at bogus.example.com)


Re: HP-UX 10.20 breakage in 2.57
------------------------------------------------
From:  Paul Eggert 
Subject:  Re: HP-UX 10.20 breakage in 2.57 
Date:  Mon, 23 Dec 2002 16:18:41 -0800 
-------------------------------------------------
> Date: Mon, 23 Dec 2002 08:48:46 -0600
> From: Albert Chin <autoconf at bogus.example.com>
> 
> > Does the following patch fix things?
> 
> Works now.

Thanks for testing it.  I installed this patch.

2002-12-23  Paul Eggert  <eggert at bogus.example.com>

 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
 innocuous variant befor including <limits.h> or <assert.h>.  This
 works around a bug reported by Albert Chin: HP-UX 11i
 (and earlier versions) have a <limits.h> that declares
 gettimeofday and many other functions.

Index: c.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v
retrieving revision 1.173
retrieving revision 1.174
diff -p -u -r1.173 -r1.174
--- c.m4        3 Dec 2002 07:00:37 -0000       1.173
+++ c.m4        24 Dec 2002 00:16:41 -0000      1.174
@@ -176,15 +176,23 @@ char $2 ();])], [$2 ();])])
 #
 m4_define([AC_LANG_FUNC_LINK_TRY(C)],
 [AC_LANG_PROGRAM(
-[/* System header to define __stub macros and hopefully few prototypes,
+[/* Define $1 to an innocuous variant, in case <limits.h> declares $1.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define $1 innocuous_$1
+
+/* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $1 (); below.
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     <limits.h> exists even on freestanding compilers.  */
+
 #ifdef __STDC__
 # include <limits.h>
 #else
 # include <assert.h>
 #endif
+
+#undef $1
+
 /* Override any gcc2 internal prototype to avoid an error.  */
 #ifdef __cplusplus
 extern "C"


Harlan Stenn <stenn at whimsy.udel.edu> wrote in message news:<o4y8xha1xf.fsf at whimsy.udel.edu>...
> It gets better.
> 
> On all of the HPUX boxes I see, configure properly auto-detects
> settimeofday().
> 
> Somebody who is actually having this problem will have to dig deeper.
> 
> H



More information about the questions mailing list