9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] re: kenji arisawa's perl question
@ 2000-11-05 17:41 Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2000-11-05 17:41 UTC (permalink / raw)
  To: 9fans

  > amazingly it had a README.plan9 and a plan9 directory in it.. it looks like
  > someone did a p9 port of perl back in 1996 ...

  tragically, this is true.

g% perl -v

This is perl, version 5.005_02 built for plan9_386

...
g%

I don't remember how hard it was to get this compiled,
but I did get it to compile and subsequently lost the changes.
(I've still got the binary.)  I looked at redoing the changes
in the new Perl (5.6.0?) and just didn't feel like going through
it since my need for Perl has gone away.  I think the README
you point out dates from Perl 4.  I've never been able to contact
the guy who did the Perl 4 port.

It wouldn't be that hard, I don't think.

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] re: kenji arisawa's perl question
@ 2000-11-05 17:42 Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2000-11-05 17:42 UTC (permalink / raw)
  To: 9fans

Hmm.  That'll teach me to read my mail in a stack fashion.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] re: kenji arisawa's perl question
  2000-11-05  7:34 andrey mirtchovski
@ 2000-11-05 14:39 ` Boyd Roberts
  0 siblings, 0 replies; 4+ messages in thread
From: Boyd Roberts @ 2000-11-05 14:39 UTC (permalink / raw)
  To: 9fans

From: andrey mirtchovski <aam396@mail.usask.ca>
> I have been meaning to give perl a go on p9 for quite sometime, but never
> got around to it.. instead uf studying tonight I went to ww.perl.com and got
> the latest perl source code.
> 
> amazingly it had a README.plan9 and a plan9 directory in it.. it looks like
> someone did a p9 port of perl back in 1996 ...

tragically, this is true.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] re: kenji arisawa's perl question
@ 2000-11-05  7:34 andrey mirtchovski
  2000-11-05 14:39 ` Boyd Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: andrey mirtchovski @ 2000-11-05  7:34 UTC (permalink / raw)
  To: 9fans

I have been meaning to give perl a go on p9 for quite sometime, but never
got around to it.. instead uf studying tonight I went to ww.perl.com and got
the latest perl source code.

amazingly it had a README.plan9 and a plan9 directory in it.. it looks like
someone did a p9 port of perl back in 1996 (5.003_01 i think was the
latest). I downloaded it and gave it a try, but due to many errors gave up
and tried an older port -- 5.004_05, which is available from:

http://www.perl.com/CPAN/src/perl5.004_05.tar.gz

I had to wrestle with this one too unfortunately -- many files 
complained about redefinitions of 'FLT_MAX' apparently from float.h... i
solved this problem by just not caring (restarting mk after it exited with
error seemed to go pass it OK, or simply commenting out the include line
worked fine).. Then upon the creation of the miniroot environment tha perl
installation uses, it complained about redefinitions of getsockopt and
setsockopt, which happened to be dummy functions from plan9/plan9.c...

apart from that, the compilation went ok:

cpu% perl -v

This is perl, version 5.004_05 built for plan9_386

Copyright 1987-1998, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
cpu% perl -e '{print "Hello World\n";}'
Hello World
cpu% 


so, in brief to compile perl one must perform (at least?) the following:

untar perl somewhere, read README.plan9; run plan9/setup.rc; 
cd /sys/src/cmd/perl/5.004_05/;
edit plan9/plan9.c -- comment out the dummy getsockopt and setsockopt in the
beggining of the file;

mk install (repeat after it exits with FLT_MAX complaints)...

hope this helped :)

andrey



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-11-05 17:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-05 17:41 [9fans] re: kenji arisawa's perl question Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2000-11-05 17:42 Russ Cox
2000-11-05  7:34 andrey mirtchovski
2000-11-05 14:39 ` Boyd Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).