bug-gnu-utils
[Top][All Lists]
Advanced

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

patch for GNU tar 1.13.25 failing to compile on AIX 5.1 ML3 and AIX 4.3.


From: Bernhard Erdmann
Subject: patch for GNU tar 1.13.25 failing to compile on AIX 5.1 ML3 and AIX 4.3.3 ML9
Date: Thu, 10 Apr 2003 23:58:03 +0200
User-agent: Mozilla/5.0 (X11; U; IRIX64 IP28; en-US; rv:1.4b) Gecko/20030408

Hi,

tar 1.13.25 fails to compile on AIX 5.1 ML3 and AIX 4.3.3 ML9:

./configure
[...]
gmake
[...]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl    -g -O2 -c `test -f
xstrdup.c || echo './'`xstrdup.c
source='xstrtoimax.c' object='xstrtoimax.o' libtool=no \
depfile='.deps/xstrtoimax.Po' tmpdepfile='.deps/xstrtoimax.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl    -g -O2 -c `test -f
xstrtoimax.c || echo './'`xstrtoimax.c
In file included from xstrtoimax.c:31:
xstrtol.c:90: conflicting types for `strtoimax'
/usr/include/inttypes.h:673: previous declaration of `strtoimax'
gmake[2]: *** [xstrtoimax.o] Error 1
gmake[2]: Leaving directory `/tmp/openpkg-1.2.0/tar-1.13.25/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/openpkg-1.2.0/tar-1.13.25'
gmake: *** [all] Error 2

compiler used on AIX 5.1:       gcc 3.2.2
compiler used on AIX 4.3.3:     gcc 2.95.3


The patch tar-aix-strtoimax.diff attached from http://aixpdslib.seas.ucla.edu/ corrects this problem. Use it with GNU patch -p1.


diff -ru tar-1.13.25/configure tar-1.13.25-aixpdslib/configure
--- tar-1.13.25/configure       Wed Sep 26 22:32:51 2001
+++ tar-1.13.25-aixpdslib/configure     Thu Feb  7 18:02:55 2002
@@ -6031,6 +6031,11 @@

 fi

+
+cat >>confdefs.h <<EOF
+#define HAVE_DECL_STRTOIMAX 1
+EOF
+
 for ac_header in limits.h stdlib.h inttypes.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
diff -ru tar-1.13.25/lib/xstrtol.c tar-1.13.25-aixpdslib/lib/xstrtol.c
--- tar-1.13.25/lib/xstrtol.c   Thu Sep 20 20:01:31 2001
+++ tar-1.13.25-aixpdslib/lib/xstrtol.c Thu Feb  7 18:08:53 2002
@@ -87,7 +87,8 @@
 #endif

 #if !HAVE_DECL_STRTOIMAX
-intmax_t strtoimax ();
+/* intmax_t strtoimax (); */
+/* Commented out by Aixpdslib */
 #endif

 #if !HAVE_DECL_STRTOUMAX


Nevertheless, gmake check fails on one test (Unreadable directories yielded error despite --ignore-failed-read):

===============================================
Regression testing for GNU tar, version 1.13.25
===============================================
PASS: version.sh
PASS: append.sh
PASS: delete01.sh
PASS: delete02.sh
PASS: delete03.sh
PASS: extrac01.sh
PASS: extrac02.sh
PASS: extrac03.sh
PASS: extrac04.sh
PASS: gzip.sh
PASS: incremen.sh
FAIL: ignfail.sh
PASS: old.sh
PASS: volume.sh
====================
1 of 14 tests failed
====================

diff -ru tar-1.13.25/configure tar-1.13.25-aixpdslib/configure
--- tar-1.13.25/configure       Wed Sep 26 22:32:51 2001
+++ tar-1.13.25-aixpdslib/configure     Thu Feb  7 18:02:55 2002
@@ -6031,6 +6031,11 @@
 
 fi
 
+
+cat >>confdefs.h <<EOF
+#define HAVE_DECL_STRTOIMAX 1
+EOF
+
 for ac_header in limits.h stdlib.h inttypes.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
diff -ru tar-1.13.25/lib/xstrtol.c tar-1.13.25-aixpdslib/lib/xstrtol.c
--- tar-1.13.25/lib/xstrtol.c   Thu Sep 20 20:01:31 2001
+++ tar-1.13.25-aixpdslib/lib/xstrtol.c Thu Feb  7 18:08:53 2002
@@ -87,7 +87,8 @@
 #endif
 
 #if !HAVE_DECL_STRTOIMAX
-intmax_t strtoimax ();
+/* intmax_t strtoimax (); */
+/* Commented out by Aixpdslib */
 #endif
 
 #if !HAVE_DECL_STRTOUMAX

reply via email to

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