This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix IPC::Open3’s fd.t to work on Windows
[perl5.git] / README.mpeix
CommitLineData
ab648d5e
JH
1If you read this file _as_is_, just ignore the funny characters you
2see. It is written in the POD format (see perlpod manpage) which is
3specially designed to be readable as is.
1d84e8df 4
ab648d5e 5=head1 NAME
1d84e8df 6
ab648d5e 7README.mpeix - Perl/iX for HP e3000 MPE
b5ab5069 8
ab648d5e 9=head1 SYNOPSIS
1d84e8df 10
ab648d5e
JH
11 http://www.bixby.org/mark/perlix.html
12 Perl language for MPE
f382e41b
KH
13 Last updated January 12, 2006 @ 2100 UTC
14
b5ab5069 15
ab648d5e 16=head1 NOTE
1d84e8df 17
e59066d8 18This is a podified version of what used to be on the above-mentioned web page,
ab648d5e 19podified by Jarkko Hietaniemi 2001-Jan-01.
1d84e8df 20
210b36aa 21=head1 What's New in Perl for MPE/iX
1d84e8df 22
f382e41b
KH
23January 12, 2006
24
25=over 4
26
27=item *
28
29Updated for perl-5.8.8 and perl-5.9.3 by Ken Hirsch.
30
31Simplified the build process by using the MPEAUTOCONF
32functionality in Mark Klein's ld.
33
34If you build this from scratch, make sure you have a version
35of ld which supports it. In the shell, type
36
37 ld --help
38 and look for AUTOCONF or MPEAUTOCONF near the bottom
39
40 or do this:
41 ld --help 2>&1 | grep AUTOCONF
42
43If you see don't see AUTOCONF or MPEAUTOCONF, make sure you get a new
44version.
45
46You also do not have to use mpeix/relink after building, so the
47recommend sequence is:
48
49 ./Configure -de
50
51 # or ./Configure -de -Dusedevel
52 # if you're building a development version
53
54 make
55 make test
56 # if you run this in a job, do "make test_notty"
57
58 make install
59
60Be prepared for a wait. These take much longer on MPE/iX than on a Unix
61system, because of a slow forking, mostly. On a lightly-loaded HP3000
62Series 979 running MPE/iX 7.5:
63
64 Configure: 1 hour
65 make: 1 hour 15 minutes
66 make test 1 hour 45 minutes
67
68Various socket problems were fixed in mpeix.c.
69
70Mark Klein provided a fixed sigsetjmp (that works with dynamic
71libraries) in mpeix_setjmp.c
72
75c442e4 73=back
f382e41b 74
ab648d5e 75June 1, 2000
b5ab5069 76
ab648d5e 77=over 4
1d84e8df 78
ab648d5e 79=item *
1d84e8df 80
ab648d5e
JH
81Rebuilt to be compatible with mod_perl. If you plan on using
82mod_perl, you MUST download and install this version of Perl/iX!
b5ab5069 83
ab648d5e 84=item *
1d84e8df 85
ab648d5e 86uselargefiles="undef": not available in MPE for POSIX files yet.
b5ab5069 87
ab648d5e 88=item *
1d84e8df 89
ab648d5e 90Now bundled with various add-on packages:
1d84e8df 91
ab648d5e 92=over 8
1d84e8df 93
ab648d5e 94=item *
1d84e8df 95
37a78d01 96libnet (as seen on CPAN)
1d84e8df 97
ab648d5e 98=item *
1d84e8df 99
ab648d5e 100libwww-perl (LWP) which lets Perl programs behave like web browsers:
b5ab5069 101
ab648d5e 102=item *
1d84e8df 103
ab648d5e
JH
104mod_perl (just the perl portion; the actual DSO will be released
105soon with Apache/iX 1.3.12 from bixby.org). This module allows you to
106write high performance persistent Perl CGI scripts and all sorts of
107cool things. (http://perl.apache.org/)
b5ab5069 108
ab648d5e 109and much much more hiding under /PERL/PUB/.cpan/
b5ab5069 110
ab648d5e 111=item *
1d84e8df 112
ab648d5e
JH
113The CPAN module now works for automatic downloading and
114installing of add-on packages:
1d84e8df 115
ab648d5e
JH
116 1. export FTP_PASSIVE=1
117 2. perl -MCPAN -e shell
118 3. Ignore any terminal I/O related complaints!
b5ab5069 119
e59066d8 120(http://search.cpan.org/dist/CPAN/)
1d84e8df 121
ab648d5e 122=back
1d84e8df 123
ab648d5e
JH
124=back
125
126May 20, 2000
127
128=over 4
129
130=item *
131
132Updated to version 5.6.0. Builds straight out of the box on MPE/iX.
133
134=item *
135
136Perl's getpwnam() function which had regressed to being
137unimplemented on MPE is now implemented once again.
b5ab5069 138
ab648d5e
JH
139=back
140
141September 17, 1999
142
143=over 4
144
145=item *
146
147Migrated from cccd.edu to bixby.org.
148
149=back
b5ab5069 150
a83b6f46 151=head1 Welcome to Perl/iX
ab648d5e
JH
152
153This is the official home page for the HP e3000 MPE/iX
f224927c
JH
154( http://www.hp.com/go/e3000 ) port of the Perl scripting
155language ( http://www.perl.com/ ) which gives you all of the power of C,
ab648d5e
JH
156awk, sed, and sh in a single language. Check here for the latest news,
157implemented functionality, known bugs, to-do list, etc. Status reports
158about major milestones will also be posted to the HP3000-L mailing list
f224927c 159( http://www.lsoft.com/scripts/wl.exe?SL1=HP3000-L&H=RAVEN.UTC.EDU ) and
ab648d5e 160its associated gatewayed newsgroup comp.sys.hp.mpe.
b5ab5069 161
ab648d5e
JH
162I'm doing this port because I can't live without Perl on the Unix
163machines that I administer, and I want to have the same power
164available to me on MPE.
b5ab5069 165
ab648d5e 166Please send your comments, questions, and bug reports directly to me,
03cf1158 167Mark Bixby ( http://www.bixby.org/mark/ ). Or just post them to HP3000-L.
b5ab5069 168
ab648d5e
JH
169The platform I'm using to do this port is an HP 3000 957RX running
170MPE/iX 6.0 and using the GNU gcc C compiler
f224927c 171( http://jazz.external.hp.com/src/gnu/gnuframe.html ).
b5ab5069 172
ab648d5e
JH
173The combined porting wisdom from all of my ports can be found in my
174MPE/iX Porting Guide (http://www.bixby.org/mark/porting.html).
b5ab5069 175
ab648d5e
JH
176IMPORTANT NOTICE: Yes, I do work for the HP CSY R&D lab, but ALL of
177the software you download from bixby.org is my personal freeware that
178is NOT supported by HP.
179
a83b6f46 180=head1 System Requirements for Perl/iX
ab648d5e
JH
181
182=over 4
183
184=item *
185
186MPE/iX 5.5 or later. This version of Perl/iX does NOT run on
187MPE/iX 5.0 or earlier, nor does it run on "classic" MPE/V machines.
188
189=item *
190
191If you wish to recompile Perl, you must install both GNUCORE and
192GNUGCC from jazz (http://jazz.external.hp.com/src/gnu/gnuframe.html).
193
194=item *
195
196Perl/iX will be happier on MPE/iX 5.5 if you install the MPEKX40B
197extended POSIX filename characters patch, but this is optional.
198
199=item *
200
201Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to
202prevent Perl/iX from dying with an unresolved external reference
203to _getenv_libc.
204
205=item *
206
207If you will be compiling Perl/iX yourself, you will also need
f224927c 208Syslog/iX ( http://www.bixby.org/mark/syslogix.html ) and the
ab648d5e 209/BIND/PUB/include and /BIND/PUB/lib portions of BIND/iX
f224927c 210( http://www.bixby.org/mark/bindix.html ).
ab648d5e
JH
211
212=back
213
214=head1 How to Obtain Perl/iX
215
216=over 4
217
218=item 1.
219
220Download Perl using either FTP.ARPA.SYS or some other client
221
222=item 2.
223
224Extract the installation script
225
226=item 3.
227
228Edit the installation script
229
230=item 4.
231
232Run the installation script
233
234=item 5.
235
236Convert your *.a system archive libraries to *.sl shared libraries
b5ab5069 237
ab648d5e 238=back
1d84e8df
JH
239
240Download Perl using FTP.ARPA.SYS from your HP 3000 (the preferred
241method).....
b5ab5069 242
ab648d5e
JH
243 :HELLO MANAGER.SYS
244 :XEQ FTP.ARPA.SYS
245 open ftp.bixby.org
246 anonymous
247 your@email.address
248 bytestream
249 cd /pub/mpe
250 get perl-5.6.0-mpe.tar.Z /tmp/perl.tar.Z;disc=2147483647
251 exit
1d84e8df
JH
252
253.....Or download using some other generic web or ftp client (the alternate
254method)
b5ab5069 255
1d84e8df
JH
256Download the following files (make sure that you use "binary mode" or
257whatever client feature that is 8-bit clean):
258
ab648d5e
JH
259=over 4
260
261=item *
262
263Perl from
264
265 http://www.bixby.org/ftp/pub/mpe/perl-5.6.0-mpe.tar.Z
266
267or
268
269 ftp://ftp.bixby.org/pub/mpe/perl-5.6.0-mpe.tar.Z
b5ab5069 270
ab648d5e 271=item *
1d84e8df
JH
272
273Upload those files to your HP 3000 in an 8-bit clean bytestream manner to:
274
ab648d5e 275 /tmp/perl.tar.Z
b5ab5069 276
ab648d5e 277=item *
1d84e8df
JH
278
279Then extract the installation script (after both download methods)
b5ab5069 280
ab648d5e
JH
281 :CHDIR /tmp
282 :XEQ TAR.HPBIN.SYS 'xvfopz /tmp/perl.tar.Z INSTALL'
1d84e8df 283
ab648d5e 284=item *
1d84e8df
JH
285
286Edit the installation script
b5ab5069 287
ab648d5e
JH
288Examine the accounting structure creation commands and modify if
289necessary (adding additional capabilities, choosing a non-system
290volume set, etc).
1d84e8df 291
ab648d5e 292 :XEQ VI.HPBIN.SYS /tmp/INSTALL
1d84e8df 293
ab648d5e 294=item *
1d84e8df 295
ab648d5e 296Run the installation script.
b5ab5069 297
1d84e8df
JH
298The accounting structure will be created and then all files will be
299extracted from the archive.
300
ab648d5e
JH
301 :XEQ SH.HPBIN.SYS /tmp/INSTALL
302
303=item *
304
305Convert your *.a system archive libraries to *.sl shared libraries
b5ab5069 306
ab648d5e
JH
307You only have to do this ONCE on your MPE/iX 5.5 machine in order to
308convert /lib/lib*.a and /usr/lib/lib*.a libraries to their *.sl
309equivalents. This step should not be necessary on MPE/iX 6.0 or later
310machines because the 6.0 or later update process does it for you.
311
312 :XEQ SH.HPBIN.SYS /PERL/PUB/LIBSHP3K
313
314=back
315
a83b6f46 316=head1 Perl/iX Distribution Contents Highlights
ab648d5e
JH
317
318=over 4
319
320=item README
321
322The file you're reading now.
b5ab5069 323
ab648d5e
JH
324=item INSTALL
325
326Perl/iX Installation script.
b5ab5069 327
ab648d5e
JH
328=item LIBSHP3K
329
330Script to convert *.a system archive libraries to *.sl shared libraries.
b5ab5069 331
ab648d5e
JH
332=item PERL
333
334Perl NMPRG executable. A version-numbered backup copy also
335exists. You might wish to "ln -s /PERL/PUB/PERL /usr/local/bin/perl".
b5ab5069 336
ab648d5e
JH
337=item .cpan/
338
339Much add-on source code downloaded with the CPAN module.
b5ab5069 340
ab648d5e
JH
341=item lib/
342
343Perl libraries, both core and add-on.
b5ab5069 344
ab648d5e
JH
345=item man/
346
347Perl man page documentation.
348
349=item public_html/feedback.cgi
350
351Sample feedback CGI form written in Perl.
b5ab5069 352
ab648d5e
JH
353=item src/perl-5.6.0-mpe
354
355Source code.
356
357=back
b5ab5069 358
ab648d5e
JH
359=head1 How to Compile Perl/iX
360
361=over 4
362
363=item 1.
364
365cd src/perl-5.6.0-mpe
366
367=item 2.
368
369Read the INSTALL file for the official instructions
370
371=item 3.
372
373./Configure -d
374
375=item 4.
376
377make
378
379=item 5.
380
381./mpeix/relink
382
383=item 6.
384
385make test (expect approximately 15 out of 11306 subtests to fail,
386mostly due to MPE not supporting hard links, UDP socket problems,
387and handling exit() return codes improperly)
388
389=item 7.
390
391make install
392
393=item 8.
394
395Optionally create symbolic links that point to the Perl
396executable, i.e. ln -s /PERL/PUB/PERL /usr/local/bin/perl
b5ab5069 397
ab648d5e 398=back
1d84e8df
JH
399
400The summary test results from "cd t; ./perl -I../lib harness":
401
ab648d5e
JH
402 Failed Test Status Wstat Total Fail Failed List of failed
403 ---------------------------------------------------------------------------
404 io/fs.t 29 8 27.59% 2-5, 7-9, 11
405 io/openpid.t 10 1 10.00% 7
406 lib/io_sock.t 14 1 7.14% 13
407 lib/io_udp.t 7 2 28.57% 3, 5
408 lib/posix.t 27 1 3.70% 12
409 op/lex_assign.t 187 1 0.53% 13
410 op/stat.t 58 1 1.72% 3
411 15 tests and 94 subtests skipped.
412 Failed 7/236 test scripts, 97.03% okay. 15/11306 subtests failed, 99.87% okay.
413
414=head1 Getting Started with Perl/iX
415
416Create your Perl script files with "#!/PERL/PUB/perl" (or an
417equivalent symbolic link) as the first line. Use the chmod command to
418make sure that your script has execute permission. Run your script!
b5ab5069 419
ab648d5e 420Be sure to take a look at the CPAN module list
f224927c 421( http://www.cpan.org/CPAN.html ). A wide variety of free Perl software
ab648d5e 422is available. You can automatically download these packages by using
e59066d8 423the CPAN module ( http://search.cpan.org/dist/CPAN/ ).
ab648d5e
JH
424
425=head1 MPE/iX Implementation Considerations
426
427There some minor functionality issues to be aware of when comparing
428Perl for Unix (Perl/UX) to Perl/iX:
429
430=over 4
431
432=item *
433
434MPE gcc/ld doesn't properly support linking NMPRG executables against
435NMXL dynamic libraries, so you must manually run mpeix/relink after
436each re-build of Perl.
437
438=item *
439
440Perl/iX File::Copy will use MPE's /bin/cp command to copy files by
441name in order to preserve file attributes like file code.
442
443=item *
444
445MPE (and thus Perl/iX) lacks support for setgrent(), endgrent(),
446setpwent(), endpwent().
447
448=item *
449
450MPE (and thus Perl/iX) lacks support for hard links.
451
452=item *
453
454MPE requires GETPRIVMODE() in order to bind() to ports less than 1024.
455Perl/iX will call GETPRIVMODE() automatically on your behalf if you
456attempt to bind() to these low-numbered ports. Note that the Perl/iX
457executable and the PERL account do not normally have CAP=PM, so if you
458will be bind()-ing to these privileged ports, you will manually need
459to add PM capability as appropriate.
460
461=item *
462
463MPE requires that you bind() to an IP address of zero. Perl/iX
464automatically replaces the IP address that you pass to bind() with
465a zero.
466
467=item *
468
ab648d5e
JH
469MPE requires GETPRIVMODE() in order to setuid(). There are too many
470calls to setuid() within Perl/iX, so I have not attempted an automatic
471GETPRIVMODE() solution similar to bind().
472
473=back
b5ab5069 474
a83b6f46 475=head1 Known Perl/iX Bugs Under Investigation
ab648d5e
JH
476
477None.
b5ab5069 478
a83b6f46 479=head1 Perl/iX To-Do List
ab648d5e
JH
480
481=over 4
482
483=item *
484
485Make setuid()/setgid() support work.
486
487=item *
488
489Make sure that fcntl() against a socket descriptor is redirected to sfcntl().
490
491=item *
492
493Add support for Berkeley DB once I've finished porting Berkeley DB.
494
495=item *
496
497Write an MPE XS extension library containing miscellaneous important
498MPE functions like GETPRIVMODE(), GETUSERMODE(), and sfcntl().
b5ab5069 499
ab648d5e
JH
500=back
501
a83b6f46 502=head1 Perl/iX Change History
ab648d5e
JH
503
504May 6, 1999
b5ab5069 505
ab648d5e
JH
506=over 4
507
508=item *
509
510Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to prevent
511Perl/iX from dying with an unresolved external reference to _getenv_libc.
b5ab5069 512
ab648d5e
JH
513=back
514
515April 7, 1999
516
517=over 4
518
519=item *
520
521Updated to version 5.005_03.
522
523=item *
524
525The official source distribution once again compiles "straight out
526of the box" for MPE.
527
528=item *
529
530The current incarnation of the 5.5 POSIX filename extended
531characters patch is now MPEKX40B.
532
533=item *
534
535The LIBSHP3K *.a -> *.sl library conversion script is now included
536as /PERL/PUB/LIBSHP3K.
b5ab5069 537
ab648d5e
JH
538=back
539
540November 20, 1998
541
542=over 4
543
544=item *
545
546Updated to version 5.005_02.
547
548=item *
549
550Fixed a DynaLoader bug that was unable to load symbols from relative
551path name libraries.
552
553=item *
554
555Fixed a .xs compilation bug where the mpeixish.sh include file wasn't
556being installed into the proper directory.
557
558=item *
559
560All bugfixes will be submitted back to the official Perl developers.
561
562=item *
563
564The current incarnation of the POSIX filename extended characters
565patch is now MPEKXJ3A.
b5ab5069 566
ab648d5e 567=back
b5ab5069 568
ab648d5e
JH
569August 14, 1998
570
571=over 4
572
573=item *
574
575The previous POSIX filename extended characters patch MPEKX44C has
576been superseded by MPEKXB5A.
b5ab5069 577
ab648d5e 578=back
b5ab5069 579
ab648d5e
JH
580August 7, 1998
581
582=over 4
583
584=item *
585
586The previous POSIX filename extended characters patch MPEKX76A has
587been superseded by MPEKX44C.
ab648d5e
JH
588
589=back
b5ab5069 590
ab648d5e
JH
591July 28, 1998
592
b5ab5069
JH
593=over 4
594
ab648d5e
JH
595=item *
596
597Updated to version 5.005_01.
b5ab5069 598
ab648d5e 599=back
b5ab5069 600
ab648d5e
JH
601July 23, 1998
602
603=over 4
604
605=item *
606
607Updated to version 5.005 (production release). The public
608freeware sources are now 100% MPE-ready "straight out of the box".
b5ab5069 609
ab648d5e 610=back
b5ab5069 611
ab648d5e
JH
612July 17, 1998
613
614=over 4
615
616=item *
617
618Updated to version 5.005b1 (public beta release). The public
619freeware sources are now 99.9% MPE-ready. By installing and
620testing this beta on your own HP3000, you will be helping to
621insure that the final release of 5.005 will be 100% MPE-ready and
622100% bug free.
623
624=item *
625
626My MPE binary release is now extracted using my standard INSTALL script.
b5ab5069 627
ab648d5e 628=back
b5ab5069 629
ab648d5e
JH
630July 15, 1998
631
632=over 4
633
634=item *
635
636Changed startperl to #!/PERL/PUB/perl so that Perl will recognize
637scripts more easily and efficiently.
b5ab5069 638
ab648d5e 639=back
b5ab5069 640
ab648d5e
JH
641July 8, 1998
642
643=over 4
644
645=item *
646
647Updated to version 5.004_70 (internal developer release) which is now
648MPE-ready. The next public freeware release of Perl should compile
649"straight out of the box" on MPE. Note that this version of Perl/iX
650was strictly internal to me and never publicly released. Note that
651[21]BIND/iX is now required (well, the include files and libbind.a) if
652you wish to compile Perl/iX.
b5ab5069 653
ab648d5e 654=back
b5ab5069 655
ab648d5e
JH
656November 6, 1997
657
658=over 4
659
660=item *
661
662Updated to version 5.004_04. No changes in MPE-specific functionality.
b5ab5069 663
ab648d5e 664=back
b5ab5069 665
ab648d5e
JH
666October 16, 1997
667
668=over 4
669
670=item *
671
672Added Demos section to the Perl/iX home page so you can see some
673sample Perl applications running on my 3000.
b5ab5069 674
ab648d5e 675=back
b5ab5069 676
ab648d5e
JH
677October 3, 1997
678
679=over 4
680
681=item *
682
683Added System Requirements section to the Perl/iX home page just so the
684prerequisites stand out more. Various other home page tweaks.
b5ab5069 685
ab648d5e 686=back
b5ab5069 687
ab648d5e
JH
688October 2, 1997
689
690=over 4
691
692=item *
693
694Initial public release.
b5ab5069 695
ab648d5e 696=back
b5ab5069 697
ab648d5e
JH
698September 1997
699
700=over 4
701
702=item *
703
704Porting begins.
705
706=back
b5ab5069 707
a83b6f46 708=head1 AUTHOR
b5ab5069 709
03cf1158 710Mark Bixby, http://www.bixby.org/mark/
ab648d5e 711