1PERLMPEIX(1) Perl Programmers Reference Guide PERLMPEIX(1)
2
3
4
6 README.mpeix - Perl/iX for HP e3000 MPE
7
9 http://www.bixby.org/mark/perlix.html
10 http://jazz.external.hp.com/src/hp_freeware/perl/
11 Perl language for MPE
12 Last updated January 12, 2006 @ 2100 UTC
13
15 This is a podified version of the above-mentioned web page, podified by
16 Jarkko Hietaniemi 2001-Jan-01.
17
19 The simplest way to obtain Perl for the MPE/iX is to go either of these
20 URLs and follow the instructions within.
21
22 http://jazz.external.hp.com/src/hp_freeware/perl/
23 http://www.bixby.org/mark/perlix.html
24
25 Use which ever one is more recent.
26
28 January 12, 2006
29
30 · Updated for perl-5.8.8 and perl-5.9.3 by Ken Hirsch.
31
32 Simplified the build process by using the MPEAUTOCONF functionality
33 in Mark Klein's ld.
34
35 If you build this from scratch, make sure you have a version of ld
36 which supports it. In the shell, type
37
38 ld --help
39 and look for AUTOCONF or MPEAUTOCONF near the bottom
40
41 or do this:
42 ld --help 2>&1 ⎪ grep AUTOCONF
43
44 If you see don't see AUTOCONF or MPEAUTOCONF, make sure you get a
45 new version.
46
47 You also do not have to use mpeix/relink after building, so the
48 recommend sequence is:
49
50 ./Configure -de
51
52 # or ./Configure -de -Dusedevel
53 # if you're building a development version
54
55 make
56 make test
57 # if you run this in a job, do "make test_notty"
58
59 make install
60
61 Be prepared for a wait. These take much longer on MPE/iX than on a
62 Unix system, because of a slow forking, mostly. On a lightly-
63 loaded HP3000 Series 979 running MPE/iX 7.5:
64
65 Configure: 1 hour
66 make: 1 hour 15 minutes
67 make test 1 hour 45 minutes
68
69 Various socket problems were fixed in mpeix.c.
70
71 Mark Klein provided a fixed sigsetjmp (that works with dynamic
72 libraries) in mpeix_setjmp.c
73
74 · June 1, 2000
75
76 · Rebuilt to be compatible with mod_perl. If you plan on using
77 mod_perl, you MUST download and install this version of
78 Perl/iX!
79
80 · uselargefiles="undef": not available in MPE for POSIX files
81 yet.
82
83 · Now bundled with various add-on packages:
84
85 · libnet (as seen on CPAN)
86
87 · libwww-perl (LWP) which lets Perl programs behave like
88 web browsers:
89
90 1. #!/PERL/PUB/perl
91 2. use LWP::Simple;
92 3. $doc = get('http://www.bixby.org/mark/perlix.html'); # reads the
93 web page into variable $doc
94
95 (http://www.bixby.org/mark/perlix.html)
96
97 · mod_perl (just the perl portion; the actual DSO will be
98 released soon with Apache/iX 1.3.12 from bixby.org).
99 This module allows you to write high performance per‐
100 sistent Perl CGI scripts and all sorts of cool things.
101 (http://perl.apache.org/)
102
103 and much much more hiding under /PERL/PUB/.cpan/
104
105 · The CPAN module now works for automatic downloading and
106 installing of add-on packages:
107
108 1. export FTP_PASSIVE=1
109 2. perl -MCPAN -e shell
110 3. Ignore any terminal I/O related complaints!
111
112 (http://theoryx5.uwinnipeg.ca/CPAN/data/perl/CPAN.html)
113
114 May 20, 2000
115
116 · Updated to version 5.6.0. Builds straight out of the box on
117 MPE/iX.
118
119 · Perl's getpwnam() function which had regressed to being unim‐
120 plemented on MPE is now implemented once again.
121
122 September 17, 1999
123
124 · Migrated from cccd.edu to bixby.org.
125
127 This is the official home page for the HP e3000 MPE/iX (
128 http://www.hp.com/go/e3000 ) port of the Perl scripting language (
129 http://www.perl.com/ ) which gives you all of the power of C, awk, sed,
130 and sh in a single language. Check here for the latest news, imple‐
131 mented functionality, known bugs, to-do list, etc. Status reports about
132 major milestones will also be posted to the HP3000-L mailing list (
133 http://www.lsoft.com/scripts/wl.exe?SL1=HP3000-L&H=RAVEN.UTC.EDU ) and
134 its associated gatewayed newsgroup comp.sys.hp.mpe.
135
136 I'm doing this port because I can't live without Perl on the Unix
137 machines that I administer, and I want to have the same power available
138 to me on MPE.
139
140 Please send your comments, questions, and bug reports directly to me,
141 Mark Bixby ( http://www.bixby.org/mark/ ). Or just post them to
142 HP3000-L.
143
144 The platform I'm using to do this port is an HP 3000 957RX running
145 MPE/iX 6.0 and using the GNU gcc C compiler ( http://jazz.exter‐
146 nal.hp.com/src/gnu/gnuframe.html ).
147
148 The combined porting wisdom from all of my ports can be found in my
149 MPE/iX Porting Guide (http://www.bixby.org/mark/porting.html).
150
151 IMPORTANT NOTICE: Yes, I do work for the HP CSY R&D lab, but ALL of the
152 software you download from bixby.org is my personal freeware that is
153 NOT supported by HP.
154
156 · MPE/iX 5.5 or later. This version of Perl/iX does NOT run on MPE/iX
157 5.0 or earlier, nor does it run on "classic" MPE/V machines.
158
159 · If you wish to recompile Perl, you must install both GNUCORE and
160 GNUGCC from jazz (http://jazz.exter‐
161 nal.hp.com/src/gnu/gnuframe.html).
162
163 · Perl/iX will be happier on MPE/iX 5.5 if you install the MPEKX40B
164 extended POSIX filename characters patch, but this is optional.
165
166 · Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to pre‐
167 vent Perl/iX from dying with an unresolved external reference to
168 _getenv_libc.
169
170 · If you will be compiling Perl/iX yourself, you will also need Sys‐
171 log/iX ( http://www.bixby.org/mark/syslogix.html ) and the
172 /BIND/PUB/include and /BIND/PUB/lib portions of BIND/iX (
173 http://www.bixby.org/mark/bindix.html ).
174
176 1. Download Perl using either FTP.ARPA.SYS or some other client
177
178 2. Extract the installation script
179
180 3. Edit the installation script
181
182 4. Run the installation script
183
184 5. Convert your *.a system archive libraries to *.sl shared libraries
185
186 Download Perl using FTP.ARPA.SYS from your HP 3000 (the preferred
187 method).....
188
189 :HELLO MANAGER.SYS
190 :XEQ FTP.ARPA.SYS
191 open ftp.bixby.org
192 anonymous
193 your@email.address
194 bytestream
195 cd /pub/mpe
196 get perl-5.6.0-mpe.tar.Z /tmp/perl.tar.Z;disc=2147483647
197 exit
198
199 .....Or download using some other generic web or ftp client (the
200 alternate method)
201
202 Download the following files (make sure that you use "binary mode"
203 or whatever client feature that is 8-bit clean):
204
205 · Perl from
206
207 http://www.bixby.org/ftp/pub/mpe/perl-5.6.0-mpe.tar.Z
208
209 or
210
211 ftp://ftp.bixby.org/pub/mpe/perl-5.6.0-mpe.tar.Z
212
213 · Upload those files to your HP 3000 in an 8-bit clean bytestream
214 manner to:
215
216 /tmp/perl.tar.Z
217
218 · Then extract the installation script (after both download meth‐
219 ods)
220
221 :CHDIR /tmp
222 :XEQ TAR.HPBIN.SYS 'xvfopz /tmp/perl.tar.Z INSTALL'
223
224 · Edit the installation script
225
226 Examine the accounting structure creation commands and modify
227 if necessary (adding additional capabilities, choosing a non-
228 system volume set, etc).
229
230 :XEQ VI.HPBIN.SYS /tmp/INSTALL
231
232 · Run the installation script.
233
234 The accounting structure will be created and then all files
235 will be extracted from the archive.
236
237 :XEQ SH.HPBIN.SYS /tmp/INSTALL
238
239 · Convert your *.a system archive libraries to *.sl shared
240 libraries
241
242 You only have to do this ONCE on your MPE/iX 5.5 machine in
243 order to convert /lib/lib*.a and /usr/lib/lib*.a libraries to
244 their *.sl equivalents. This step should not be necessary on
245 MPE/iX 6.0 or later machines because the 6.0 or later update
246 process does it for you.
247
248 :XEQ SH.HPBIN.SYS /PERL/PUB/LIBSHP3K
249
251 README
252 The file you're reading now.
253
254 INSTALL
255 Perl/iX Installation script.
256
257 LIBSHP3K
258 Script to convert *.a system archive libraries to *.sl shared
259 libraries.
260
261 PERL
262 Perl NMPRG executable. A version-numbered backup copy also exists.
263 You might wish to "ln -s /PERL/PUB/PERL /usr/local/bin/perl".
264
265 .cpan/
266 Much add-on source code downloaded with the CPAN module.
267
268 lib/
269 Perl libraries, both core and add-on.
270
271 man/
272 Perl man page documentation.
273
274 public_html/feedback.cgi
275 Sample feedback CGI form written in Perl.
276
277 src/perl-5.6.0-mpe
278 Source code.
279
281 1. cd src/perl-5.6.0-mpe
282
283 2. Read the INSTALL file for the official instructions
284
285 3. ./Configure -d
286
287 4. make
288
289 5. ./mpeix/relink
290
291 6. make test (expect approximately 15 out of 11306 subtests to fail,
292 mostly due to MPE not supporting hard links, UDP socket problems,
293 and handling exit() return codes improperly)
294
295 7. make install
296
297 8. Optionally create symbolic links that point to the Perl executable,
298 i.e. ln -s /PERL/PUB/PERL /usr/local/bin/perl
299
300 The summary test results from "cd t; ./perl -I../lib harness":
301
302 Failed Test Status Wstat Total Fail Failed List of failed
303 ---------------------------------------------------------------------------
304 io/fs.t 29 8 27.59% 2-5, 7-9, 11
305 io/openpid.t 10 1 10.00% 7
306 lib/io_sock.t 14 1 7.14% 13
307 lib/io_udp.t 7 2 28.57% 3, 5
308 lib/posix.t 27 1 3.70% 12
309 op/lex_assign.t 187 1 0.53% 13
310 op/stat.t 58 1 1.72% 3
311 15 tests and 94 subtests skipped.
312 Failed 7/236 test scripts, 97.03% okay. 15/11306 subtests failed, 99.87% okay.
313
315 Create your Perl script files with "#!/PERL/PUB/perl" (or an equivalent
316 symbolic link) as the first line. Use the chmod command to make sure
317 that your script has execute permission. Run your script!
318
319 Be sure to take a look at the CPAN module list (
320 http://www.cpan.org/CPAN.html ). A wide variety of free Perl software
321 is available. You can automatically download these packages by using
322 the CPAN module ( http://theoryx5.uwinnipeg.ca/CPAN/data/perl/CPAN.html
323 ).
324
326 There some minor functionality issues to be aware of when comparing
327 Perl for Unix (Perl/UX) to Perl/iX:
328
329 · MPE gcc/ld doesn't properly support linking NMPRG executables
330 against NMXL dynamic libraries, so you must manually run
331 mpeix/relink after each re-build of Perl.
332
333 · Perl/iX File::Copy will use MPE's /bin/cp command to copy files by
334 name in order to preserve file attributes like file code.
335
336 · MPE (and thus Perl/iX) lacks support for setgrent(), endgrent(),
337 setpwent(), endpwent().
338
339 · MPE (and thus Perl/iX) lacks support for hard links.
340
341 · MPE requires GETPRIVMODE() in order to bind() to ports less than
342 1024. Perl/iX will call GETPRIVMODE() automatically on your behalf
343 if you attempt to bind() to these low-numbered ports. Note that
344 the Perl/iX executable and the PERL account do not normally have
345 CAP=PM, so if you will be bind()-ing to these privileged ports, you
346 will manually need to add PM capability as appropriate.
347
348 · MPE requires that you bind() to an IP address of zero. Perl/iX
349 automatically replaces the IP address that you pass to bind() with
350 a zero.
351
352 · MPE requires GETPRIVMODE() in order to setuid(). There are too
353 many calls to setuid() within Perl/iX, so I have not attempted an
354 automatic GETPRIVMODE() solution similar to bind().
355
357 None.
358
360 · Make setuid()/setgid() support work.
361
362 · Make sure that fcntl() against a socket descriptor is redirected to
363 sfcntl().
364
365 · Add support for Berkeley DB once I've finished porting Berkeley DB.
366
367 · Write an MPE XS extension library containing miscellaneous impor‐
368 tant MPE functions like GETPRIVMODE(), GETUSERMODE(), and sfcntl().
369
371 May 6, 1999
372
373 · Patch LBCJXT6A is required on MPE/iX 5.5 machines in order to pre‐
374 vent Perl/iX from dying with an unresolved external reference to
375 _getenv_libc.
376
377 April 7, 1999
378
379 · Updated to version 5.005_03.
380
381 · The official source distribution once again compiles "straight
382 out of the box" for MPE.
383
384 · The current incarnation of the 5.5 POSIX filename extended
385 characters patch is now MPEKX40B.
386
387 · The LIBSHP3K *.a -> *.sl library conversion script is now
388 included as /PERL/PUB/LIBSHP3K.
389
390 November 20, 1998
391
392 · Updated to version 5.005_02.
393
394 · Fixed a DynaLoader bug that was unable to load symbols from
395 relative path name libraries.
396
397 · Fixed a .xs compilation bug where the mpeixish.sh include file
398 wasn't being installed into the proper directory.
399
400 · All bugfixes will be submitted back to the official Perl devel‐
401 opers.
402
403 · The current incarnation of the POSIX filename extended charac‐
404 ters patch is now MPEKXJ3A.
405
406 August 14, 1998
407
408 · The previous POSIX filename extended characters patch MPEKX44C
409 has been superseded by MPEKXB5A.
410
411 August 7, 1998
412
413 · The previous POSIX filename extended characters patch MPEKX76A
414 has been superseded by MPEKX44C.
415
416 July 28, 1998
417
418 · Updated to version 5.005_01.
419
420 July 23, 1998
421
422 · Updated to version 5.005 (production release). The public
423 freeware sources are now 100% MPE-ready "straight out of the
424 box".
425
426 July 17, 1998
427
428 · Updated to version 5.005b1 (public beta release). The public
429 freeware sources are now 99.9% MPE-ready. By installing and
430 testing this beta on your own HP3000, you will be helping to
431 insure that the final release of 5.005 will be 100% MPE-ready
432 and 100% bug free.
433
434 · My MPE binary release is now extracted using my standard
435 INSTALL script.
436
437 July 15, 1998
438
439 · Changed startperl to #!/PERL/PUB/perl so that Perl will recog‐
440 nize scripts more easily and efficiently.
441
442 July 8, 1998
443
444 · Updated to version 5.004_70 (internal developer release) which
445 is now MPE-ready. The next public freeware release of Perl
446 should compile "straight out of the box" on MPE. Note that
447 this version of Perl/iX was strictly internal to me and never
448 publicly released. Note that [21]BIND/iX is now required
449 (well, the include files and libbind.a) if you wish to compile
450 Perl/iX.
451
452 November 6, 1997
453
454 · Updated to version 5.004_04. No changes in MPE-specific func‐
455 tionality.
456
457 October 16, 1997
458
459 · Added Demos section to the Perl/iX home page so you can see
460 some sample Perl applications running on my 3000.
461
462 October 3, 1997
463
464 · Added System Requirements section to the Perl/iX home page just
465 so the prerequisites stand out more. Various other home page
466 tweaks.
467
468 October 2, 1997
469
470 · Initial public release.
471
472 September 1997
473
474 · Porting begins.
475
477 Mark Bixby, http://www.bixby.org/mark/
478
479
480
481perl v5.8.8 2006-01-07 PERLMPEIX(1)