* Re: perl for alpha
1994-05-02 15:22 perl for alpha G. Bongers
@ 1994-05-02 19:22 ` Robert Williams
1994-05-04 7:24 ` Peter Crawshaw
1 sibling, 0 replies; 5+ messages in thread
From: Robert Williams @ 1994-05-02 19:22 UTC (permalink / raw)
G. Bongers writes:
>Does anyone out there have Perl for the alpha, know where I can get the
>source, and are there any FAQs on it.
Perl Revision: 4.0.1.8 , Patch level: 36 is on the DEC Alpha
freeware disk. This version passes all of the perl tests,
but fails to work correctly when making several useful packages
such as latex2html and wafe, at least under osf1/V1.2.
The source for perl can be found at the usual gnu sites
such as prep.ai.mit.edu. I've included some recent postings
about perl on the Alpha below.
Bob Williams
Article 2926 of comp.unix.osf.osf1:
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!agate!ihnp4.ucsd.edu!news.service.uci.edu!draco.acs.uci.edu!iglesias
From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Newsgroups: comp.lang.perl,comp.unix.osf.osf1
Subject: Re: Perl gives SegFault on DEC Alpha.
Date: 16 Apr 1994 04:32:47 GMT
Organization: University of California, Irvine
Lines: 50
Distribution: na
Message-ID: <2onppf$fve@news.service.uci.edu>
References: <CoB50M.ICD@acsu.buffalo.edu>
NNTP-Posting-Host: draco.acs.uci.edu
Xref: net.usuhs.mil comp.lang.perl:25008 comp.unix.osf.osf1:2926
Make sure the enclosed patch is in your copy of the sources. There are
a couple more patches floating around that probably should be in there
as well, but I can't find my copies of them. Maybe we should get the
patches together and put them on one of the Alpha archives?
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 856-6926
Office of Academic Computing FAX: (714) 725-2069
Distributed Computing Support
*** toke.c.pl36 Wed Mar 3 16:00:50 1993
--- toke.c Wed Mar 3 18:25:44 1993
***************
*** 1749,1765 ****
arg->arg_type = O_ITEM;
arg[1].arg_type = A_DOUBLE;
arg[1].arg_ptr.arg_str = str_smake(str);
! d = scanident(d,bufend,buf);
(void)stabent(buf,TRUE); /* make sure it's created */
for (; d < e; d++) {
if (*d == '\\')
d++;
else if (*d == '$' && d[1] && d[1] != '|' && d[1] != ')') {
! d = scanident(d,bufend,buf);
(void)stabent(buf,TRUE);
}
else if (*d == '@') {
! d = scanident(d,bufend,buf);
if (strEQ(buf,"ARGV") || strEQ(buf,"ENV") ||
strEQ(buf,"SIG") || strEQ(buf,"INC"))
(void)stabent(buf,TRUE);
--- 1749,1765 ----
arg->arg_type = O_ITEM;
arg[1].arg_type = A_DOUBLE;
arg[1].arg_ptr.arg_str = str_smake(str);
! d = scanident(d,e,buf);
(void)stabent(buf,TRUE); /* make sure it's created */
for (; d < e; d++) {
if (*d == '\\')
d++;
else if (*d == '$' && d[1] && d[1] != '|' && d[1] != ')') {
! d = scanident(d,e,buf);
(void)stabent(buf,TRUE);
}
else if (*d == '@') {
! d = scanident(d,e,buf);
if (strEQ(buf,"ARGV") || strEQ(buf,"ENV") ||
strEQ(buf,"SIG") || strEQ(buf,"INC"))
(void)stabent(buf,TRUE);
*********** cut *************
Article 24819 of comp.lang.perl:
Newsgroups: comp.lang.perl
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!agate!howland.reston.ans.net!EU.net!julienas!ubu!soft208!ram
From: ram@acri.acri.fr. (Raphael Manfredi)
Subject: Re: perl5a[7,8] on DEC Alpha OSF/1 2.0
Message-ID: <1994Apr13.074951.20098@acri.fr>
Originator: ram@soft208
Sender: news@acri.fr (News Admin)
Organization: A.C.R.I.
References: <JOHN.94Apr5160122@sable.wpi.edu>
Date: Wed, 13 Apr 1994 07:49:51 GMT
Lines: 67
Quoting john@sable.WPI.EDU (John Stoffel) from comp.lang.perl:
:Has anyone been able to get a working version of perl on DEC's OSF/1
:2.0? I've gotten it most of the way, even got the POSIX.c stuff to
:compile eventually. Unfortunately, I get tons of "Unaligned Access"
:errors whenever I try running miniperl or perl. The problem is in
:sv.c, more_xiv(), which Larry seems to have flagged already as a
:potential problem with the Alphas.
Well, try with this patch. It's not perfect, but at least it's a
start. A meta-configured copy has been sent to Larry Wall.
*** sv.c.orig Wed Apr 13 09:09:15 1994
--- sv.c Wed Apr 13 09:26:34 1994
***************
*** 160,166 ****
--- 160,173 ----
I32* xiv;
if (xiv_root) {
xiv = xiv_root;
+ /*
+ * See comment in more_xiv() -- RAM.
+ */
+ #ifndef __alpha
xiv_root = *(I32**)xiv;
+ #else
+ xiv_root = (I32*) *(long**) xiv;
+ #endif
return (XPVIV*)((char*)xiv - sizeof(XPV));
}
return more_xiv();
***************
*** 186,193 ****
xiv += (sizeof(XPV) - 1) / sizeof(I32) + 1; /* fudge by size of XPV */
xiv_root = xiv;
while (xiv < xivend) {
! *(I32**)xiv = (I32*)(xiv + 1); /* XXX busted on Alpha? */
xiv++;
}
*(I32**)xiv = 0;
return new_xiv();
--- 193,212 ----
xiv += (sizeof(XPV) - 1) / sizeof(I32) + 1; /* fudge by size of XPV */
xiv_root = xiv;
while (xiv < xivend) {
! #ifndef __alpha
! *(I32**)xiv = (I32*)(xiv + 1);
xiv++;
+ #else
+ /*
+ * For Alpha machine, make sure xiv is correctly aligned on a
+ * long boundary before attempting dereferencing it.
+ * Otherwise, we'll get an "Unaligned access" message from the
+ * DEC OSF/1 kernel, or OPDEC PAL code exceptions with other
+ * kernels not prepared to deal with that ;-) -- RAM
+ */
+ *(long**) xiv = (long *) xiv + 1;
+ xiv = (I32*) ((long *) xiv + 1);
+ #endif
}
*(I32**)xiv = 0;
return new_xiv();
--
Raphael Manfredi <ram@acri.fr>
Advanced Computer Research Institute
1, boulevard Marius Vivier-Merle / Tel +33 72-35-80-55 \
69443 Lyon Cedex 03, FRANCE \ Fax +33 72-35-84-10 /
\f
Article 24836 of comp.lang.perl:
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!hookup!news.kei.com!MathWorks.Com!bigboote.WPI.EDU!nntp!john
From: john@sekrit.WPI.EDU (John Stoffel)
Newsgroups: comp.lang.perl
Subject: Re: perl5a[7,8] on DEC Alpha OSF/1 2.0
Date: 13 Apr 1994 15:00:40 GMT
Organization: Worcester Polytechnic Institute
Lines: 59
Message-ID: <JOHN.94Apr13110040@sekrit.WPI.EDU>
References: <JOHN.94Apr5160122@sable.wpi.edu> <1994Apr13.074951.20098@acri.fr>
NNTP-Posting-Host: sekrit.wpi.edu
In-reply-to: ram@acri.acri.fr.'s message of Wed, 13 Apr 1994 07:49:51 GMT
Raphael,
I've also managed to make a hack to perl5a8 to get it running on DEC
OSF 2.0, but I didn't bother to make it as portable as you did with
all the #ifdefs. I've now got it passing all but the following tests:
comp/package
cmd/switch
op/ref
lib/english
lib/sdbm
The first and last two all just Seg fault. cmd/switch fails on the
first set of tests. Surprisingly enough, it doesn't seem to be
evaluating the routine:
sub foo1 {
$_ = shift(@_);
$a = 0;
until ($a++) {
next if $_ eq 1;
next if $_ eq 2;
next if $_ eq 3;
next if $_ eq 4;
return 20;
}
continue {
return $_;
}
}
print do foo1(0) == 20 ? "ok 1\n" : "not ok 1\n";
print do foo1(1) == 1 ? "ok 2\n" : "not ok 2\n";
print do foo1(2) == 2 ? "ok 3\n" : "not ok 3\n";
print do foo1(3) == 3 ? "ok 4\n" : "not ok 4\n";
print do foo1(4) == 4 ? "ok 5\n" : "not ok 5\n";
print do foo1(5) == 20 ? "ok 6\n" : "not ok 6\n";
The problem looks to be in the 'until($a++)' parsing. If you replace
$a++ with 0, it works. I suspect that the routines accessing the
structure setup by new_xiv() are broken, but I haven't found them yet.
And when I do, I'll give them a stern talking to! :]
op/ref.t passes all but the last two tests, then seg faults, which I
think makes it related to the other three tests, which seems to be a
problem with package declarations or somesuch.
If anyone else cares to chip in, I'm sure Raphael and I (and Larry!)
would be happy.
John
--
John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
I am having FUN... I wonder if it's NET FUN or GROSS FUN?
\f
Article 24925 of comp.lang.perl:
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!sgiblab!uhog.mit.edu!news.kei.com!MathWorks.Com!bigboote.WPI.EDU!nntp!john
From: john@sekrit.WPI.EDU (John Stoffel)
Newsgroups: comp.lang.perl
Subject: Perl5a8 bug on Alpha Fixed
Date: 14 Apr 1994 19:13:40 GMT
Organization: Worcester Polytechnic Institute
Lines: 45
Message-ID: <JOHN.94Apr14151340@sekrit.WPI.EDU>
NNTP-Posting-Host: sekrit.wpi.edu
If you apply the following patch to perl5a8, this will fix a bug where
the lexical scope of packages wasn't being done properly. I _think_
this will work without problems on other machines, someone care to try
this out?
It now passes 95.04% of tests on DEC OSF/1 v2.0, haven't tested it on
any other versions yet, will do so when I get a chance. The two tests
it is dying on are
t/op/ref.t - core dump after test 38
t/cmd/switch.t - doesn't evaluate the following properly:
$a = 0;
until ($a++) { ... }
Here's the patch:
scooter:/local/src/perl5alpha8> diff -c scope.c.orig scope.c
*** scope.c.orig Thu Apr 14 15:01:31 1994
--- scope.c Thu Apr 14 15:02:05 1994
***************
*** 233,239 ****
HV **hptr;
{
SSCHECK(3);
! SSPUSHINT(*hptr);
SSPUSHPTR(hptr);
SSPUSHINT(SAVEt_HPTR);
}
--- 233,239 ----
HV **hptr;
{
SSCHECK(3);
! SSPUSHPTR(*hptr);
SSPUSHPTR(hptr);
SSPUSHINT(SAVEt_HPTR);
}
John
--
John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
I am having FUN... I wonder if it's NET FUN or GROSS FUN?
*********** cut **************
Article 24909 of comp.lang.perl:
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!hookup!usc!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!pasteur.fr!pasteur.fr!not-for-mail
From: fmc@pasteur.fr (Frederic Chauveau)
Newsgroups: comp.lang.perl
Subject: SxPerl A bit of X in Perl5
Date: 14 Apr 1994 17:49:59 +0200
Organization: Institut Pasteur, Paris, France
Lines: 94
Message-ID: <2ojon7INNhla@mendel.sis.pasteur.fr>
NNTP-Posting-Host: mendel.sis.pasteur.fr
Keywords: X, Xaw, perl5, GUI
Well... Here is the first release of sxperl. It looks like it works
ok on both Sparc with SunOs and DecStation running Ultrix. There's
still a couple of things buggy or un-implemented but it's already nice
enough.
I've dedicated the source to Randal, as it looks like it's the only
real contribution I can bring from where I am...
I've sent the sources to comp.sources.unix, but for those of you in
a hurry, you can already pick up the shar file on ftp.pasteur.fr
in pub/Perl/sxperl.shar
You'll find perl5alpha8 in the same place.
libsx is in pub/X11contrib/libsx.tar.Z
As usual, bugs/comments/flame/etc... to me (fmc@pasteur.fr)
--------------------------------------------------------------------------------
sxperl V1.0
by
Frederic Chauveau
fmc@pasteur.fr
Dedicated to Randal L. Schwartz
-------------------------------
- Brief overview
Sxperl is perl5 with libsx on top.
It provides simple bindings for common Athena Widgets as perl functions.
It's certainly full of bugs...
A simple sxperl program would be :
------------------------------------------------------------------------------
package Sx;
bootstrap Sx;
sub byebye {
local($w,$args) = @_;
print "Bye bye (called from widget $w, arg $args)\n";
exit;
}
&OpenDisplay('Sample sxperl');
$widget = &MakeButton('Quit', 'byebye', @ARGV[0]);
&ShowDisplay;
&MainLoop;
------------------------------------------------------------------------------
All but 3 of the functions in libsx have been 'translated' to perl,
missing functions are AddReadCallback, AddWriteCallback and AddTimeOut.
- Installation
You'll need perl5alpha8 and libsx1.0
Edit the Makefile and change the various values there.
- perlsrc should be the directory containing perl.o from the perl5 distribution
- the 'libs' assume that you've installed both libperl.a and libsx.a in some
standard place.
type make :)
you'll find 2 small sample programms quitb.pl and demo.pl you can try
sxperl with. demo.pl is a 'translation' to perl of the demo program
found in the libsx distribution.
Many thanks to Larry wall,
Tom Christiansen,
Dominic Giamapolo
Malcom Beattie,
Randall Schwartz,
and all the others :)
[fmc]
-------------------------------------------------------------------------------
Frederic Chauveau Institut Pasteur
fmc@pasteur.fr
-------------------------------------------------------------------------------
Paradise is exactly like where you are right now, only much, much better.
William S. Burroughs
-------------------------------------------------------------------------------
\f
Article 24956 of comp.lang.perl:
Path: net.usuhs.mil!hq.hq.af.mil!newsfeed.gsfc.nasa.gov!ames!agate!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!gumby!yale!yale.edu!nigel.msen.com!zib-berlin.de!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!pasteur.fr!pasteur.fr!not-for-mail
From: fmc@pasteur.fr (Frederic Chauveau)
Newsgroups: comp.lang.perl
Subject: sxperl 1.1
Date: 15 Apr 1994 13:51:39 +0200
Organization: Institut Pasteur, Paris, France
Lines: 19
Message-ID: <2olv4bINNn1e@mendel.sis.pasteur.fr>
NNTP-Posting-Host: mendel.sis.pasteur.fr
As usual, the first version was a bad one. Sorry for that. You'll
find the new version on ftp.pasteur.fr:pub/Perl/sxperl-1.1.shar
It has been improved with lots of bugs removed and the 3 missing
functions from libsx (AddReadCallback, AddWriteCallback and
AddtimeOut) have been added.
Sorry for the troubles...
[fmc]
-------------------------------------------------------------------------------
Frederic Chauveau Institut Pasteur
fmc@pasteur.fr
-------------------------------------------------------------------------------
Paradise is exactly like where you are right now, only much, much better.
William S. Burroughs
-------------------------------------------------------------------------------
*********** cut ***********
Article 2344 of comp.unix.osf.osf1:
Newsgroups: comp.unix.osf.osf1
Path: net.usuhs.mil!cs.umd.edu!eff!news.kei.com!sol.ctr.columbia.edu!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!uw-beaver!netnews.nwnet.net!raven.alaska.edu!icefog.uacn.alaska.edu!HaymanR
From: HaymanR@icefog.uacn.alaska.edu (Randy M. Hayman)
Subject: SUMMARY: perl-4.036 on OSF/1 V1.3 112
Message-ID: <CLr7Gz.HDo@raven.alaska.edu>
Keywords: perl axp osf/1
Lines: 86
Sender: news@raven.alaska.edu (USENET News System)
Reply-To: HaymanR@icefog.uacn.alaska.edu
Organization: University of Alaska Computer Network
X-Newsreader: mxrn 6.18-6
References: <CLqwKz.CtA@raven.alaska.edu>
Date: Fri, 25 Feb 1994 00:17:22 GMT
I said:
|>
|>As a preparatory step to the installation of perl-4.036 on:
|>
|>% uname -a
|>OSF1 icefog.uacn.alaska.edu V1.3 112 alpha
|>
|>has anyone else succeeded? I ask because I'm about 2 minutes away from
|>attempting same.
|>
|>Any pointers?
|>
|>If none, I'll summarize my findings in a post sometime later.
|>
So, now that I've compiled it, here's the summary:
I did as the README stated.
I took all the defaults *except* those listed below:
.
First time through, eh? I have some defaults handy for the following systems:
3b1 dnix isc_3_2_2 sco_2_3_2 sunos_4_0_2
3b2 dynix isc_3_2_3 sco_2_3_3 svr4
aix_rs fps mc6000 sco_2_3_4 ti1500
aix_rt genix mips sco_3 titan
altos486 greenhills mpc sgi ultrix_1
apollo_C6_7 hp9000_300 ncr_tower solaris_2_0 ultrix_3
apollo_C6_8 hp9000_400 next solaris_2_1 ultrix_4
aux hp9000_700 opus stellar unisysdynix
cray hp9000_800 osf1 sunos_3_4 utekv
dec_osf1 hpux sco_2_3_0 sunos_3_5 uts
dgux i386 sco_2_3_1 sunos_4_0_1 vax
(You may give one or more space-separated answers, or "none" if appropriate.
If your OS version has no hints, do not give a wrong version--say "none".)
Which of these apply, if any? [osf1] dec_osf1
perl has manual pages available in source form.
If you don't want the manual sources installed, answer 'none'.
Where do the manual pages (source) go (~name ok)? [/usr/man/mann] /usr/local/man/mann
Directory /usr/local/man/mann doesn't exist. Use that name anyway? [n] y
.
Now you need to generate make dependencies by running "make depend".
You might prefer to run it in background: "make depend > makedepend.out &"
It can take a while, so you might not want to run it right now.
Run make depend now? [n] y
.
Then, the make itself had a problem (warning):
.
`sh cflags eval.o` eval.c
CCCMD = cc -c -std1 -D_BSD -DLANGUAGE_C -O2 -Olimit 2900
/usr/lib/cmplrs/cc/cfe: Warning: ./handy.h: 28: Undefined the ANSI standard library defined macro NULL (4.1.2.1(9))
/usr/lib/cmplrs/cc/cfe: Warning: eval.c, line 1674: Incompatible pointer type assignment (3.3.16.1, 3.5.4.1(21))
value = (double) time(((long*)0 ) );
-----------------------^
so, I decided to control-c outta this and fix it...(I hate these messages about
incompatible pointer types anyways)
icefog> diff eval.c eval.c.old
1674,1675c1674
< /* value = (double) time(Null(long*)); */
< value = (double) time(Null(int *));
---
> value = (double) time(Null(long*));
(of course this fix should probably have been ifdef'd for osf, but I didn't)
then on with the show...
the rest was ok.
then make test (all was ok).
then su root and make install (all went well).
--
Randy M. Hayman HaymanR@icefog.uacn.alaska.edu
"Ethernet works in practice but not in theory" -- Bob Metcalfe
\f
Article 2347 of comp.unix.osf.osf1:
Path: net.usuhs.mil!cbda8.apgea.army.mil.!admii!zombie.ncsc.mil!paladin.american.edu!howland.reston.ans.net!usenet.ins.cwru.edu!news.ysu.edu!malgudi.oar.net!mercury.wright.edu!desire.wright.edu!sdawalt
From: sdawalt@desire.wright.edu (Shane A. Dawalt, Network Engineer)
Newsgroups: comp.unix.osf.osf1
Subject: Re: SUMMARY: perl-4.036 on OSF/1 V1.3 112
Message-ID: <1994Feb24.220204.19378@desire.wright.edu>
Date: 24 Feb 94 22:02:04 EST
References: <CLqwKz.CtA@raven.alaska.edu> <CLr7Gz.HDo@raven.alaska.edu>
Organization: Wright State University
Lines: 38
In article <CLr7Gz.HDo@raven.alaska.edu>, HaymanR@icefog.uacn.alaska.edu (Randy M. Hayman) writes:
>
> Then, the make itself had a problem (warning):
> ..
> `sh cflags eval.o` eval.c
> CCCMD = cc -c -std1 -D_BSD -DLANGUAGE_C -O2 -Olimit 2900
> /usr/lib/cmplrs/cc/cfe: Warning: ./handy.h: 28: Undefined the ANSI standard library defined macro NULL (4.1.2.1(9))
> /usr/lib/cmplrs/cc/cfe: Warning: eval.c, line 1674: Incompatible pointer type assignment (3.3.16.1, 3.5.4.1(21))
> value = (double) time(((long*)0 ) );
> -----------------------^
>
> so, I decided to control-c outta this and fix it...(I hate these messages about
> incompatible pointer types anyways)
>
>
> icefog> diff eval.c eval.c.old
> 1674,1675c1674
> < /* value = (double) time(Null(long*)); */
> < value = (double) time(Null(int *));
> ---
>> value = (double) time(Null(long*));
>
I believe I inserted 'std' as a CFLAG entry. Keeps the compiler happy.
Until I found this switch in cc, I was having all sorts of trouble
compiling gopher 2.10 client. If I can compile something on my Ultrix
4.2 box, I can normally get it to compile on the OSF/1 1.3 box by
using the std flag.
Shane();
+------------------------------------+------------------------------------+
| Shane A. Dawalt, Network Engineer : I cannot be held responsible for |
| Wright State University : anything I write. While it is |
| Dayton, OH 45435 : known my fingers can type |
| sdawalt@desire.wright.edu : anything, what exactly controls |
| 513.873.4089 : them is a medical mystery. |
+------------------------------------+------------------------------------+
^ permalink raw reply [flat|nested] 5+ messages in thread