Silence a gcc warning, spotted by Tels
[p5sagit/p5-mst-13.2.git] / README.machten
CommitLineData
da369004 1If you read this file _as_is_, just ignore the funny characters you
2see. It is written in the POD format (see pod/perlpod.pod) which is
3specially designed to be readable as is.
4
5=head1 NAME
6
7README.machten - Perl version 5 on Power MachTen systems
8
9=head1 DESCRIPTION
10
11This document describes how to build Perl 5 on Power MachTen systems,
12and discusses a few wrinkles in the implementation.
13
d0c3e6d6 14=head2 Perl version 5.8.x and greater not supported
15
16B<Power MachTen is not supported by versions of Perl later than
175.6.x.>
18If you wish to build a version from the 5.6 track, please
19obtain a source distribution from the archive at
20L<http://cpan.org/src/5.0/> and follow the instructions in its
21README.machten file.
22
23MachTen is no longer supported by its developers, Tenon Intersystems.
24A UNIX environment hosted on Mac OS Classic, MachTen has been
25superseded by Mac OS X and by BSD and Linux implementations for Macintosh
26hardware.
27The final version of Power MachTen, 4.1.4, lacks many features found in
28modern implementations of UNIX, and has a number of bugs.
29These shortcomings prevent recent versions of Perl from being able to use
30extensions on MachTen, and cause numerous test suite failures in the
31perl core.
32
33In September 2003, a discussion on the MachTen mailing list determined
34that there was no interest in making a later version of Perl build
35successfully on MachTen.
36Consequently, support for building Perl under MachTen has been suppressed
37in Perl distributions published after February 2004.
38The hints file, F<hints/machten.sh>, remains a part of the
39distributions for reference purposes.
40
41=head2 Compiling Perl 5.6.x on MachTen
42
43To compile perl 5.6.x under MachTen 4.1.4 (and probably earlier versions):
da369004 44
45 ./Configure -de
46 make
47 make test
48 make install
49
50This builds and installs a statically-linked perl; MachTen's dynamic
51linking facilities are not adequate to support Perl's use of
52dynamically linked libraries. (See F<hints/machten.sh> for more
53information.)
54
55You should have at least 32 megabytes of free memory on your
56system before running the C<make> command.
57
58For much more information on building perl -- for example, on how to
59change the default installation directory -- see F<INSTALL>.
60
a83b6f46 61=head2 Failures during C<make test> on MachTen
da369004 62
63=over 4
64
65=item op/lexassign.t
66
67This test may fail when first run after building perl. It does not
68fail subsequently. The cause is unknown.
69
da369004 70=item pragma/warnings.t
71
72Test 257 fails due to a failure to warn about attempts to read from a
73filehandle which is a duplicate of stdout when stdout is attached to a
74pipe. The output of the test contains a block comment which discusses
75a different failure, not applicable to MachTen.
76
77The root of the problem is that Machten does not assign a file type to
78either end of a pipe (see L<stat>), resulting, among other things
79in Perl's C<-p> test failing on file descriptors belonging to pipes.
80As a result, perl becomes confused, and the test for reading from a
81write-only file fails. I am reluctant to patch perl to get around
82this, as it's clearly an OS bug (about which Tenon has been informed),
83and limited in its effect on practical Perl programs.
84
85=back
86
a83b6f46 87=head2 Building external modules on MachTen
da369004 88
89To add an external module to perl, build in the normal way, which
90is documented in L<ExtUtils::MakeMaker>, or which can be driven
91automatically by the CPAN module (see L<CPAN>), which is part of the
4375e838 92standard distribution. If you want to install a module which
93contains XS code (C or C++ source which compiles to object code
da369004 94for linking with perl), you will have to replace your perl binary with
95a new version containing the new statically-linked object module. The
96build process tells you how to do this.
97
98There is a gotcha, however, which users usually encounter immediately
99they respond to CPAN's invitation to C<install Bundle::CPAN>. When
100installing a I<bundle> -- a group of modules which together achieve
101some particular purpose, the installation process for later modules in
102the bundle tends to assume that earlier modules have been fully
103installed and are available for use. This is not true on a
104statically-linked system for earlier modules which contain XS code.
105As a result the installation of the bundle fails. The work-around is
106not to install the bundle as a one-shot operation, but instead to see
107what modules it contains, and install these one-at-a-time by hand in
108the order given.
109
110=head1 AUTHOR
111
112Dominic Dunlop <domo@computer.org>
113
114=head1 DATE
115
d0c3e6d6 116Version 1.1.0 2004-02-13