Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

675 lines
15 KiB

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