bug-gnulib
[Top][All Lists]
Advanced

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

Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11


From: Paul Eggert
Subject: Re: Error compiling strtoimax.c on hppa2.0w-hp-hpux11.11
Date: Thu, 10 Oct 2013 09:18:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 10/10/13 08:52, Tom G. Christensen wrote:
> This test checks HAVE_STRTOUMAX which is not declared anywhere. 

It should be declared by  the AC_CHECK_FUNCS_ONCE([strtoumax])
in m4/strtoumax.m4.  But I think I see the problem; I forgot to copy
some of the stuff in modules/strtoimax into modules/strtoumax.
Thanks for reporting it.

I installed the following; does it fix things for you?
(I no longer have access to a Solaris 8 box; my oldest
Solaris antique is running Solaris 9.)

---
 ChangeLog         | 9 +++++++++
 modules/strtoumax | 6 +++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b176e1d..3f6bf07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-10-10  Paul Eggert  <address@hidden>
+
+    strtoumax: port to Solaris 8
+    This problem was introduced in the recent HP-UX patch.
+    Reported by Tom G. Christensen in
+    <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
+    * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
+    and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
+
 2013-10-09  Paul Eggert  <address@hidden>
 
     strtoimax, strtoumax: port to HP-UX 11.11
diff --git a/modules/strtoumax b/modules/strtoumax
index 1d2a15a..ba6ec11 100644
--- a/modules/strtoumax
+++ b/modules/strtoumax
@@ -9,9 +9,9 @@ m4/strtoumax.m4
 
 Depends-on:
 inttypes-incomplete
-verify          [test $ac_cv_func_strtoumax = no]
-stdint          [test $ac_cv_func_strtoumax = no]
-strtoull        [test $ac_cv_func_strtoumax = no && test 
$ac_cv_type_unsigned_long_long_int = yes]
+verify          [test $HAVE_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1]
+stdint          [test $HAVE_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1]
+strtoull        [{ test $HAVE_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; } 
&& test $ac_cv_type_unsigned_long_long_int = yes]
 
 configure.ac:
 gl_FUNC_STRTOUMAX
-- 
1.8.3.1





reply via email to

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