bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] ../../tar-1.19/lib/strerror.c:32: error: 'CHAR_BIT' undeclared


From: Gary E. Barnes
Subject: [Bug-tar] ../../tar-1.19/lib/strerror.c:32: error: 'CHAR_BIT' undeclared (first use in this function)
Date: Tue, 13 Nov 2007 12:01:55 -0800

On both

checking build system type... hppa2.0w-hp-hpux11.00
checking host system type... hppa2.0w-hp-hpux11.00

and on

checking build system type... sparc-sun-solaris2.6
checking host system type... sparc-sun-solaris2.6

The build stops with,

../../tar-1.19/lib/strerror.c: In function 'rpl_strerror':
../../tar-1.19/lib/strerror.c:32: error: 'CHAR_BIT' undeclared (first use in 
this function)
../../tar-1.19/lib/strerror.c:32: error: (Each undeclared identifier is 
reported only once
../../tar-1.19/lib/strerror.c:32: error: for each function it appears in.)
make[3]: *** [strerror.o] Error 1
make[3]: Leaving directory `/accts/hydroc.a/gnu/footar/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/accts/hydroc.a/gnu/footar/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/accts/hydroc.a/gnu/footar'
make: *** [all] Error 2

The workaround is to add -DCHAR_BIT=8 to the CPPFLAGS in lib/Makefile.





reply via email to

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