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.

89 lines
3.3 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 pod/perlpod.pod) which is
  3. specially designed to be readable as is.
  4. =head1 NAME
  5. README.machten - Perl version 5 on Power MachTen systems
  6. =head1 DESCRIPTION
  7. This document describes how to build Perl 5 on Power MachTen systems,
  8. and discusses a few wrinkles in the implementation.
  9. =head2 Compiling Perl 5 on MachTen
  10. To compile perl under MachTen 4.1.4 (and probably earlier versions):
  11. ./Configure -de
  12. make
  13. make test
  14. make install
  15. This builds and installs a statically-linked perl; MachTen's dynamic
  16. linking facilities are not adequate to support Perl's use of
  17. dynamically linked libraries. (See F<hints/machten.sh> for more
  18. information.)
  19. You should have at least 32 megabytes of free memory on your
  20. system before running the C<make> command.
  21. For much more information on building perl -- for example, on how to
  22. change the default installation directory -- see F<INSTALL>.
  23. =head2 Failures during C<make test>
  24. =over 4
  25. =item op/lexassign.t
  26. This test may fail when first run after building perl. It does not
  27. fail subsequently. The cause is unknown.
  28. =item pragma/warnings.t
  29. Test 257 fails due to a failure to warn about attempts to read from a
  30. filehandle which is a duplicate of stdout when stdout is attached to a
  31. pipe. The output of the test contains a block comment which discusses
  32. a different failure, not applicable to MachTen.
  33. The root of the problem is that Machten does not assign a file type to
  34. either end of a pipe (see L<stat>), resulting, among other things
  35. in Perl's C<-p> test failing on file descriptors belonging to pipes.
  36. As a result, perl becomes confused, and the test for reading from a
  37. write-only file fails. I am reluctant to patch perl to get around
  38. this, as it's clearly an OS bug (about which Tenon has been informed),
  39. and limited in its effect on practical Perl programs.
  40. =back
  41. =head2 Building external modules
  42. To add an external module to perl, build in the normal way, which
  43. is documented in L<ExtUtils::MakeMaker>, or which can be driven
  44. automatically by the CPAN module (see L<CPAN>), which is part of the
  45. standard distribution. If you want to install a module which
  46. contains XS code (C or C++ source which compiles to object code
  47. for linking with perl), you will have to replace your perl binary with
  48. a new version containing the new statically-linked object module. The
  49. build process tells you how to do this.
  50. There is a gotcha, however, which users usually encounter immediately
  51. they respond to CPAN's invitation to C<install Bundle::CPAN>. When
  52. installing a I<bundle> -- a group of modules which together achieve
  53. some particular purpose, the installation process for later modules in
  54. the bundle tends to assume that earlier modules have been fully
  55. installed and are available for use. This is not true on a
  56. statically-linked system for earlier modules which contain XS code.
  57. As a result the installation of the bundle fails. The work-around is
  58. not to install the bundle as a one-shot operation, but instead to see
  59. what modules it contains, and install these one-at-a-time by hand in
  60. the order given.
  61. =head1 AUTHOR
  62. Dominic Dunlop <[email protected]>
  63. =head1 DATE
  64. Version 1.0.1 2000-03-27