1 If you read this file _as_is_, just ignore the funny characters you
2 see. It is written in the POD format (see perlpod manpage) which is
3 specially designed to be readable as is.
7 README.mpeix - Perl/iX for HP e3000 MPE
11 http://www.bixby.org/mark/perlix.html
13 Last updated January 12, 2006 @ 2100 UTC
18 This is a podified version of what used to be on the above-mentioned web page,
19 podified by Jarkko Hietaniemi 2001-Jan-01.
21 =head1 What's New in Perl for MPE/iX
29 Updated for perl-5.8.8 and perl-5.9.3 by Ken Hirsch.
31 Simplified the build process by using the MPEAUTOCONF
32 functionality in Mark Klein's ld.
34 If you build this from scratch, make sure you have a version
35 of ld which supports it. In the shell, type
38 and look for AUTOCONF or MPEAUTOCONF near the bottom
41 ld --help 2>&1 | grep AUTOCONF
43 If you see don't see AUTOCONF or MPEAUTOCONF, make sure you get a new
46 You also do not have to use mpeix/relink after building, so the
47 recommend sequence is:
51 # or ./Configure -de -Dusedevel
52 # if you're building a development version
56 # if you run this in a job, do "make test_notty"
60 Be prepared for a wait. These take much longer on MPE/iX than on a Unix
61 system, because of a slow forking, mostly. On a lightly-loaded HP3000
62 Series 979 running MPE/iX 7.5:
65 make: 1 hour 15 minutes
66 make test 1 hour 45 minutes
68 Various socket problems were fixed in mpeix.c.
70 Mark Klein provided a fixed sigsetjmp (that works with dynamic
71 libraries) in mpeix_setjmp.c
81 Rebuilt to be compatible with mod_perl. If you plan on using
82 mod_perl, you MUST download and install this version of Perl/iX!
86 uselargefiles="undef": not available in MPE for POSIX files yet.
90 Now bundled with various add-on packages:
96 libnet (as seen on CPAN)
100 libwww-perl (LWP) which lets Perl programs behave like web browsers:
104 mod_perl (just the perl portion; the actual DSO will be released
105 soon with Apache/iX 1.3.12 from bixby.org). This module allows you to
106 write high performance persistent Perl CGI scripts and all sorts of
107 cool things. (http://perl.apache.org/)
109 and much much more hiding under /PERL/PUB/.cpan/
113 The CPAN module now works for automatic downloading and
114 installing of add-on packages:
116 1. export FTP_PASSIVE=1
117 2. perl -MCPAN -e shell
118 3. Ignore any terminal I/O related complaints!
120 (http://search.cpan.org/dist/CPAN/)
132 Updated to version 5.6.0. Builds straight out of the box on MPE/iX.
136 Perl's getpwnam() function which had regressed to being
137 unimplemented on MPE is now implemented once again.
147 Migrated from cccd.edu to bixby.org.
151 =head1 Welcome to Perl/iX
153 This is the official home page for the HP e3000 MPE/iX
154 ( http://www.hp.com/go/e3000 ) port of the Perl scripting
155 language ( http://www.perl.com/ ) which gives you all of the power of C,
156 awk, sed, and sh in a single language. Check here for the latest news,
157 implemented functionality, known bugs, to-do list, etc. Status reports
158 about major milestones will also be posted to the HP3000-L mailing list
159 ( http://www.lsoft.com/scripts/wl.exe?SL1=HP3000-L&H=RAVEN.UTC.EDU ) and
160 its associated gatewayed newsgroup comp.sys.hp.mpe.
162 I'm doing this port because I can't live without Perl on the Unix
163 machines that I administer, and I want to have the same power
164 available to me on MPE.
166 Please send your comments, questions, and bug reports directly to me,
167 Mark Bixby ( http://www.bixby.org/mark/ ). Or just post them to HP3000-L.
169 The platform I'm using to do this port is an HP 3000 957RX running
170 MPE/iX 6.0 and using the GNU gcc C compiler
171 ( http://jazz.external.hp.com/src/gnu/gnuframe.html ).
173 The combined porting wisdom from all of my ports can be found in my
174 MPE/iX Porting Guide (http://www.bixby.org/mark/porting.html).
176 IMPORTANT NOTICE: Yes, I do work for the HP CSY R&D lab, but ALL of
177 the software you download from bixby.org is my personal freeware that
178 is NOT supported by HP.
180 =head1 System Requirements for Perl/iX
186 MPE/iX 5.5 or later. This version of Perl/iX does NOT run on
187 MPE/iX 5.0 or earlier, nor does it run on "classic" MPE/V machines.
191 If you wish to recompile Perl, you must install both GNUCORE and
192 GNUGCC from jazz (http://jazz.external.hp.com/src/gnu/gnuframe.html).
196 Perl/iX will be happier on MPE/iX 5.5 if you install the MPEKX40B
197 extended POSIX filename characters patch, but this is optional.
201 Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to
202 prevent Perl/iX from dying with an unresolved external reference
207 If you will be compiling Perl/iX yourself, you will also need
208 Syslog/iX ( http://www.bixby.org/mark/syslogix.html ) and the
209 /BIND/PUB/include and /BIND/PUB/lib portions of BIND/iX
210 ( http://www.bixby.org/mark/bindix.html ).
214 =head1 How to Obtain Perl/iX
220 Download Perl using either FTP.ARPA.SYS or some other client
224 Extract the installation script
228 Edit the installation script
232 Run the installation script
236 Convert your *.a system archive libraries to *.sl shared libraries
240 Download Perl using FTP.ARPA.SYS from your HP 3000 (the preferred
250 get perl-5.6.0-mpe.tar.Z /tmp/perl.tar.Z;disc=2147483647
253 .....Or download using some other generic web or ftp client (the alternate
256 Download the following files (make sure that you use "binary mode" or
257 whatever client feature that is 8-bit clean):
265 http://www.bixby.org/ftp/pub/mpe/perl-5.6.0-mpe.tar.Z
269 ftp://ftp.bixby.org/pub/mpe/perl-5.6.0-mpe.tar.Z
273 Upload those files to your HP 3000 in an 8-bit clean bytestream manner to:
279 Then extract the installation script (after both download methods)
282 :XEQ TAR.HPBIN.SYS 'xvfopz /tmp/perl.tar.Z INSTALL'
286 Edit the installation script
288 Examine the accounting structure creation commands and modify if
289 necessary (adding additional capabilities, choosing a non-system
292 :XEQ VI.HPBIN.SYS /tmp/INSTALL
296 Run the installation script.
298 The accounting structure will be created and then all files will be
299 extracted from the archive.
301 :XEQ SH.HPBIN.SYS /tmp/INSTALL
305 Convert your *.a system archive libraries to *.sl shared libraries
307 You only have to do this ONCE on your MPE/iX 5.5 machine in order to
308 convert /lib/lib*.a and /usr/lib/lib*.a libraries to their *.sl
309 equivalents. This step should not be necessary on MPE/iX 6.0 or later
310 machines because the 6.0 or later update process does it for you.
312 :XEQ SH.HPBIN.SYS /PERL/PUB/LIBSHP3K
316 =head1 Perl/iX Distribution Contents Highlights
322 The file you're reading now.
326 Perl/iX Installation script.
330 Script to convert *.a system archive libraries to *.sl shared libraries.
334 Perl NMPRG executable. A version-numbered backup copy also
335 exists. You might wish to "ln -s /PERL/PUB/PERL /usr/local/bin/perl".
339 Much add-on source code downloaded with the CPAN module.
343 Perl libraries, both core and add-on.
347 Perl man page documentation.
349 =item public_html/feedback.cgi
351 Sample feedback CGI form written in Perl.
353 =item src/perl-5.6.0-mpe
359 =head1 How to Compile Perl/iX
365 cd src/perl-5.6.0-mpe
369 Read the INSTALL file for the official instructions
385 make test (expect approximately 15 out of 11306 subtests to fail,
386 mostly due to MPE not supporting hard links, UDP socket problems,
387 and handling exit() return codes improperly)
395 Optionally create symbolic links that point to the Perl
396 executable, i.e. ln -s /PERL/PUB/PERL /usr/local/bin/perl
400 The summary test results from "cd t; ./perl -I../lib harness":
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.
414 =head1 Getting Started with Perl/iX
416 Create your Perl script files with "#!/PERL/PUB/perl" (or an
417 equivalent symbolic link) as the first line. Use the chmod command to
418 make sure that your script has execute permission. Run your script!
420 Be sure to take a look at the CPAN module list
421 ( http://www.cpan.org/CPAN.html ). A wide variety of free Perl software
422 is available. You can automatically download these packages by using
423 the CPAN module ( http://search.cpan.org/dist/CPAN/ ).
425 =head1 MPE/iX Implementation Considerations
427 There some minor functionality issues to be aware of when comparing
428 Perl for Unix (Perl/UX) to Perl/iX:
434 MPE gcc/ld doesn't properly support linking NMPRG executables against
435 NMXL dynamic libraries, so you must manually run mpeix/relink after
436 each re-build of Perl.
440 Perl/iX File::Copy will use MPE's /bin/cp command to copy files by
441 name in order to preserve file attributes like file code.
445 MPE (and thus Perl/iX) lacks support for setgrent(), endgrent(),
446 setpwent(), endpwent().
450 MPE (and thus Perl/iX) lacks support for hard links.
454 MPE requires GETPRIVMODE() in order to bind() to ports less than 1024.
455 Perl/iX will call GETPRIVMODE() automatically on your behalf if you
456 attempt to bind() to these low-numbered ports. Note that the Perl/iX
457 executable and the PERL account do not normally have CAP=PM, so if you
458 will be bind()-ing to these privileged ports, you will manually need
459 to add PM capability as appropriate.
463 MPE requires that you bind() to an IP address of zero. Perl/iX
464 automatically replaces the IP address that you pass to bind() with
469 MPE requires GETPRIVMODE() in order to setuid(). There are too many
470 calls to setuid() within Perl/iX, so I have not attempted an automatic
471 GETPRIVMODE() solution similar to bind().
475 =head1 Known Perl/iX Bugs Under Investigation
479 =head1 Perl/iX To-Do List
485 Make setuid()/setgid() support work.
489 Make sure that fcntl() against a socket descriptor is redirected to sfcntl().
493 Add support for Berkeley DB once I've finished porting Berkeley DB.
497 Write an MPE XS extension library containing miscellaneous important
498 MPE functions like GETPRIVMODE(), GETUSERMODE(), and sfcntl().
502 =head1 Perl/iX Change History
510 Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to prevent
511 Perl/iX from dying with an unresolved external reference to _getenv_libc.
521 Updated to version 5.005_03.
525 The official source distribution once again compiles "straight out
530 The current incarnation of the 5.5 POSIX filename extended
531 characters patch is now MPEKX40B.
535 The LIBSHP3K *.a -> *.sl library conversion script is now included
536 as /PERL/PUB/LIBSHP3K.
546 Updated to version 5.005_02.
550 Fixed a DynaLoader bug that was unable to load symbols from relative
555 Fixed a .xs compilation bug where the mpeixish.sh include file wasn't
556 being installed into the proper directory.
560 All bugfixes will be submitted back to the official Perl developers.
564 The current incarnation of the POSIX filename extended characters
565 patch is now MPEKXJ3A.
575 The previous POSIX filename extended characters patch MPEKX44C has
576 been superseded by MPEKXB5A.
586 The previous POSIX filename extended characters patch MPEKX76A has
587 been superseded by MPEKX44C.
597 Updated to version 5.005_01.
607 Updated to version 5.005 (production release). The public
608 freeware sources are now 100% MPE-ready "straight out of the box".
618 Updated to version 5.005b1 (public beta release). The public
619 freeware sources are now 99.9% MPE-ready. By installing and
620 testing this beta on your own HP3000, you will be helping to
621 insure that the final release of 5.005 will be 100% MPE-ready and
626 My MPE binary release is now extracted using my standard INSTALL script.
636 Changed startperl to #!/PERL/PUB/perl so that Perl will recognize
637 scripts more easily and efficiently.
647 Updated to version 5.004_70 (internal developer release) which is now
648 MPE-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
650 was 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
652 you wish to compile Perl/iX.
662 Updated to version 5.004_04. No changes in MPE-specific functionality.
672 Added Demos section to the Perl/iX home page so you can see some
673 sample Perl applications running on my 3000.
683 Added System Requirements section to the Perl/iX home page just so the
684 prerequisites stand out more. Various other home page tweaks.
694 Initial public release.
710 Mark Bixby, http://www.bixby.org/mark/