Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Mark Turpin <mturpin@mail1.i1.net>
Subject: Help with perl5.00401, C backend
Date: 1998/04/06	[thread overview]
Message-ID: <Pine.BSI.3.95.980406014146.4317A-100000@mail1.i1.net> (raw)


While trying to build the C backend for perl5, I run into the following
errors after using "perl Makefile.PL" in the compiler-a3 distribution.
The box is dunix 4.0d sx164, with gcc 2.7-97r1 and cc is version 2.6-96q1
(alpha-dec-osf4.0), using BFD version 2.6-96q1.

At any rate, here is my paste of the errors.. can anyone help shed some
light.  I believe its being caused by the u32 being called instead of u64.
=============================================
[mark@alpha ~mark/Compiler-a3]# make
gcc -c  -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__ -O4
-DVERSION=\"a2\"  -DXS_VERSION=\"a2\"
-I/usr/local/lib/perl5/alpha-dec_osf/5.00401/CORE  B.c
In file included from
/usr/local/lib/perl5/alpha-dec_osf/5.00401/CORE/perl.h:1010,
                 from B.xs:11:
/usr/local/lib/perl5/alpha-dec_osf/5.00401/CORE/scope.h:91: syntax error
before `sigjmp_buf'
B.xs: In function `XS_B__IV_packiv':
B.xs:663: warning: right shift count >= width of type
*** Exit 1
Stop.
==============================================
here is the following snipit of the code:
==============================================
        if (sizeof(IV) == 8) {
            U32 wp[2];
            IV iv = SvIVX(sv);
            /*
             * The following way of spelling 32 is to stop compilers on
             * 32-bit architectures from moaning about the shift count
             * being >= the width of the type. Such architectures don't
             * reach this code anyway (unless sizeof(IV) > 8 but then
             * everything else breaks too so I'm not fussed at the
	     * moment).
             */
->(663)     wp[0] = htonl(((U32)iv) >> (sizeof(IV)*4));
            wp[1] = htonl(iv & 0xffffffff);
            ST(0) = sv_2mortal(newSVpv((char *)wp, 8));
        } else {
            U32 w = htonl((U32)SvIVX(sv));
            ST(0) = sv_2mortal(newSVpv((char *)&w, 4));
        }

===============================================
So I'm guessing that I have a bad config, or I'm not doing _something_
right... 

Can anyone shed some light on this?

Thanks,
-Mark




                 reply	other threads:[~1998-04-06  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox