[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: implicit declaration of function 'utime' in trailing slashes test

From: Bruno Haible
Subject: Re: implicit declaration of function 'utime' in trailing slashes test
Date: Sat, 23 Jan 2021 22:22:22 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

> >>> conftest.c:491:23: error: implicit declaration of function 'utime' is 
> >>> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> >>>                   if (!utime ("conftest.tmp/", NULL))
> >>>                        ^
> >>> 1 error generated.

Thanks for the report. Fixed through the patch below.

> ARM processors have different calling conventions for variadic and
> non-variadic functions, so the compiler must know before you call a
> function what type of function it is, and the way it knows that is
> by the function declaration.

This is well-known for 'float' parameters (for a long time, on most

Do you happen to know other cases for which this is the case? I'm asking
in order to check GNU libffcall and libffi w.r.t. this situation.


2021-01-23  Bruno Haible  <bruno@clisp.org>

        utime: Fix configure test (regression 2020-12-04).
        Reported by Ryan Schmidt <wget@ryandesign.com> via Tim Rühsen in
        * m4/utime.m4 (gl_FUNC_UTIME): In the test program, include <utime.h>,
        not <time.h>.

diff --git a/m4/utime.m4 b/m4/utime.m4
index 03df7b7..4ed4158 100644
--- a/m4/utime.m4
+++ b/m4/utime.m4
@@ -1,4 +1,4 @@
-# utime.m4 serial 3
+# utime.m4 serial 4
 dnl Copyright (C) 2017-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -34,7 +34,7 @@ AC_DEFUN([gl_FUNC_UTIME],
                [[#include <stddef.h>
-                 #include <time.h>
+                 #include <utime.h>
                [[int result = 0;
                  if (!utime ("conftest.tmp/", NULL))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]