bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] GNU tar 1.19 on HP-UX


From: H.Merijn Brand
Subject: Re: [Bug-tar] GNU tar 1.19 on HP-UX
Date: Sat, 13 Oct 2007 10:20:56 +0200

On Fri, 12 Oct 2007 17:35:14 -0700, Paul Eggert <address@hidden> wrote:

> Re <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>:
> 
> Thanks for reporting those problems.  The CHAR_BIT bug should have
> been fixed by the patch in
> <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00138.html>.
> 
> The HP-UX 10.20 PA-RISC-2.0 bug I'm not familiar with.  What is the
> value of LONG_MAX on that host?  Can you please verify that
> HAVE_LONG_LONG_INT is defined to be 1 in config.h?

d3:/pro/3gl/GNU/tar-1.19 124 > grep HAVE_LONG config.h
#define HAVE_LONG_FILE_NAMES 1
#define HAVE_LONG_LONG 1
#define HAVE_LONG_LONG_INT 1
d3:/pro/3gl/GNU/tar-1.19 125 >

> Can you please verify that the following program does not compile,
> but if you omit the first 3 lines it compiles and links correctly?
> Thanks.
> 
>    #if 9223372036854775807LL == 0
>    /* The #if tests for a bug in HP-UX 10.20 C compiler.  */
>    #endif
> 
>    long long int ll = 9223372036854775807ll;
>    long long int nll = -9223372036854775807LL;
>    typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
>                   ? 1 : -1)];
>    int i = 63;
> 
>    int main (void)
>    {
>      long long int llmax = 9223372036854775807ll;
>      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
>              | (llmax / ll) | (llmax % ll));
>    }

d3:/tmp 103 > cc -Ae -O xx.c
cpp: "xx.c", line 1: warning 2012: Unrepresentable preprocessor number
9223372036854775807LL. cpp: "xx.c", line 1: error 4038: Bad syntax for #if
condition. Exit 1
d3:/tmp 104 >

With the first three lines removed

d3:/tmp 106 > cc -Ae -O xx.c
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (xx.o) was
detected. The linked output may not run on a PA 1.x system. d3:/tmp 107 >

That can be pushed under the carpet

d3:/tmp 112 > cc -Ae -O -Wl,+vnocompatwarnings xx.c
d3:/tmp 113 >

HTH

-- 
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/




reply via email to

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