From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,58679733729a0afd,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,58679733729a0afd,start X-Google-Attributes: gidfee84,public From: Mark Turpin Subject: Help with perl5.00401, C backend Date: 1998/04/06 Message-ID: #1/1 X-Deja-AN: 341302845 Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Internet 1st, Inc Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 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