bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] tar 1.19 compile error under Solaris 2.8


From: Takakzu Satoh
Subject: [Bug-tar] tar 1.19 compile error under Solaris 2.8
Date: Sat, 12 Jan 2008 13:14:39 +0900 (JST)
User-agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijou) APEL/10.2 Emacs/20.7 (sparc-sun-solaris2.8) MULE/4.0 (HANANOEN)

Dear Tar maintenace team,

I'm writing this about a compile error of tar 1.19 under the platform
Solaris 2.8.  I'm not sure such an old operating system is still
supported but I report the problem in any way.

When I ran "./configure ; make", I obtained the following message.

if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT strerror.o -MD 
-MP -MF "$depbase.Tpo" -c -o strerror.o strerror.c; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
strerror.c: In function 'rpl_strerror':
strerror.c:32: error: 'CHAR_BIT' undeclared (first use in this function)
strerror.c:32: error: (Each undeclared identifier is reported only once
strerror.c:32: error: for each function it appears in.)

I moved "#include <limits.h>" in lib/strerror.c as follows (output of
diff -u) and "make" successfully completed in Solaris 8 (However, I
have NOT tested it under any other platform).

=======================================================================
diff -u lib/strerror.c~ lib/strerror.c
--- lib/strerror.c~     2007-09-28 22:11:37.000000000 +0900
+++ lib/strerror.c      2008-01-12 12:52:26.339457000 +0900
@@ -18,6 +18,7 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #include <config.h>
+#include <limits.h>
 
 #if REPLACE_STRERROR
 
@@ -43,7 +44,6 @@
 
 #elif !HAVE_STRERROR
 
-#include <limits.h>
 
 /* Don't include <stdio.h>, since it may or may not declare
    sys_errlist and its declarations may collide with ours.  Just
========================================================================

For your information, some information on my platform are:

% uname -a
SunOS mathpc-satoh 5.8 Generic_117350-51 sun4u sparc SUNW,Sun-Blade-100
% gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: /usr/local/src/gcc-4.1.1/configure --with-gnu-as --with-gnu-ld 
--with-cpu=v8 --disable-nls --enable-languages=c,c++
Thread model: posix
gcc version 4.1.1
% 

Output of ./configure and config.h are attached in the gzipped format.

I hope this e-mail is of some use to you.

Yours faithfully,
Takakazu Satoh.

Attachment: configout.txt.gz
Description: Binary data

Attachment: config.h.gz
Description: Binary data


reply via email to

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