9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] re: kenji arisawa's perl question
@ 2000-11-05  7:34 andrey mirtchovski
  2000-11-05  9:31 ` [9fans] Re: Perl5 & " arisawa
  2000-11-05 14:39 ` [9fans] " Boyd Roberts
  0 siblings, 2 replies; 8+ 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] 8+ messages in thread

* [9fans] Re: Perl5 & kenji arisawa's perl question
  2000-11-05  7:34 [9fans] re: kenji arisawa's perl question andrey mirtchovski
@ 2000-11-05  9:31 ` arisawa
  2000-11-06  8:03   ` Jonathan Sergent
  2000-11-05 14:39 ` [9fans] " Boyd Roberts
  1 sibling, 1 reply; 8+ messages in thread
From: arisawa @ 2000-11-05  9:31 UTC (permalink / raw)
  To: 9fans

Hello 9fans,

Hi Andrey,
Your information is very helpful and I have installed perl5.004_05.
I will put perl5.004_05 on my ftp server (plan9.aichi-u.ac.jp) with
your comments. Thanks.

>redefinitions of 'FLT_MAX' apparently from float.h
FLT_MAX, FLT_MIN, DBL_MAX, DBL_MIN are defined in both ape/float.h
and ape/limit.h

I also thank Nigel. Please give me Python 1.6.

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


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

* Re: [9fans] re: kenji arisawa's perl question
  2000-11-05  7:34 [9fans] re: kenji arisawa's perl question andrey mirtchovski
  2000-11-05  9:31 ` [9fans] Re: Perl5 & " arisawa
@ 2000-11-05 14:39 ` Boyd Roberts
  1 sibling, 0 replies; 8+ 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] 8+ messages in thread

* Re: [9fans] Re: Perl5 & kenji arisawa's perl question
  2000-11-05  9:31 ` [9fans] Re: Perl5 & " arisawa
@ 2000-11-06  8:03   ` Jonathan Sergent
  2000-11-06 15:45     ` Scott Schwartz
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Sergent @ 2000-11-06  8:03 UTC (permalink / raw)
  To: 9fans

> 
> I also thank Nigel. Please give me Python 1.6.
> 

How's this:

$ ls -l python
--rwxr-xr-x M 3 sergent sergent 3193673 Nov  5 23:27 python
$ ./python
Python 2.0 (#3, Nov  5 2000, 23:27:32) [C] on plan91
Type "copyright", "credits" or "license" for more information.
>>> 

Check out that executable size...

Usually Python uses dynamic linking to load most of the modules.  If I get
up the courage, I will see if I can make GNU dld work (it does dynamic
module loading, supposedly portably, but I have not looked into it)
since Python already has support for it.

Out of the regression test suite, test_cmath, test_openpty, test_popen2,
and test_socket failed.  The first two caused python to suicide; the
second two generated error messages.  The test_socket error was a host
name resolution thing.  Does gethostbyname in APE work?  Does DNS work
with it?  Seems like someone mentioned this a while back.

Building Python was not that hard; I spent maybe two hours.

It's probably not that useful without the dynamic module loading, which
most Python programs I have seen use to load C code.  This would also
reduce the python executable size significantly...


--jss.


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

* Re: [9fans] Re: Perl5 & kenji arisawa's perl question
  2000-11-06  8:03   ` Jonathan Sergent
@ 2000-11-06 15:45     ` Scott Schwartz
  2000-11-06 15:51       ` Boyd Roberts
  0 siblings, 1 reply; 8+ messages in thread
From: Scott Schwartz @ 2000-11-06 15:45 UTC (permalink / raw)
  To: 9fans

perl, python... anyone done tcl or es yet?


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

* Re: [9fans] Re: Perl5 & kenji arisawa's perl question
  2000-11-06 15:45     ` Scott Schwartz
@ 2000-11-06 15:51       ` Boyd Roberts
  0 siblings, 0 replies; 8+ messages in thread
From: Boyd Roberts @ 2000-11-06 15:51 UTC (permalink / raw)
  To: 9fans

----- Original Message ----- 
From: Scott Schwartz <schwartz@bio.cse.psu.edu>

> perl, python... anyone done tcl or es yet?

or tso(6) for that matter...




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

* Re: [9fans] re: kenji arisawa's perl question
@ 2000-11-05 17:42 Russ Cox
  0 siblings, 0 replies; 8+ 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] 8+ messages in thread

* Re: [9fans] re: kenji arisawa's perl question
@ 2000-11-05 17:41 Russ Cox
  0 siblings, 0 replies; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2000-11-06 15:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-05  7:34 [9fans] re: kenji arisawa's perl question andrey mirtchovski
2000-11-05  9:31 ` [9fans] Re: Perl5 & " arisawa
2000-11-06  8:03   ` Jonathan Sergent
2000-11-06 15:45     ` Scott Schwartz
2000-11-06 15:51       ` Boyd Roberts
2000-11-05 14:39 ` [9fans] " Boyd Roberts
2000-11-05 17:41 Russ Cox
2000-11-05 17:42 Russ Cox

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).