Commit | Line | Data |
---|---|---|
9a997319 JH |
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 | ||
5 | =head1 NAME | |
6 | ||
7 | README.vos - Perl for Stratus VOS | |
8 | ||
9 | =head1 SYNOPSIS | |
24e8e380 | 10 | |
050dfae0 PG |
11 | This file contains notes for building perl on the Stratus VOS |
12 | operating system. Perl is a scripting or macro language that is | |
13 | popular on many systems. See L<perlbook> for a number of good | |
14 | books on Perl. | |
4f3de37c | 15 | |
3fd80bd6 PG |
16 | These are instructions for building Perl from source. Most |
17 | people can simply download a pre-compiled distribution from the | |
18 | VOS anonymous FTP site. This version of Perl is not supported | |
19 | on VOS Release 14.2.0 or earlier releases. If you are running | |
20 | VOS Release 14.3.0 or later, download Perl from | |
21 | ftp://ftp.stratus.com/pub/vos/posix/ga/ga.html. Instructions | |
22 | for unbundling the Perl distribution file are at | |
23 | ftp://ftp.stratus.com/pub/vos/utility/utility.html. | |
495c5fdc | 24 | |
050dfae0 PG |
25 | If you are running VOS Release 14.4.1 or later, you can obtain a |
26 | pre-compiled, supported copy of perl by purchasing Release 2.0.1 | |
3722f0dc PG |
27 | (or later) of the VOS GNU C/C++ and GNU Tools product from |
28 | Stratus Technologies. | |
050dfae0 | 29 | |
3fd80bd6 | 30 | =head1 BUILDING PERL FOR VOS |
050dfae0 | 31 | |
3722f0dc PG |
32 | To build perl from its source code on the Stratus Continuum |
33 | platform, you must be have VOS Release 14.5.0 or later, the STCP | |
34 | product, and the GNU C/C++ and GNU Tools, Release 2.0.1 or | |
35 | later. On the V Series platform you must have VOS Release | |
36 | 15.0.0 or later, and any version of the GNU C/C++ and GNU Tools | |
37 | product. | |
24e8e380 | 38 | |
c71882ca PG |
39 | To build full perl using the supplied Configure script and |
40 | makefiles, change to the "vos" subdirectory and type the command | |
41 | "compile_full_perl" or "start_process compile_full_perl". This | |
8f8d40ab | 42 | will configure, build, and test perl. |
9a997319 | 43 | |
3fd80bd6 | 44 | =head1 INSTALLING PERL IN VOS |
9a997319 | 45 | |
050dfae0 | 46 | =over 4 |
24e8e380 | 47 | |
050dfae0 | 48 | =item 1 |
24e8e380 | 49 | |
050dfae0 | 50 | If you have built perl using the Configure script, ensure that |
3722f0dc PG |
51 | you have modify and default write permission to C<< |
52 | >system>ported >> and all subdirectories. Then type | |
9a997319 | 53 | |
050dfae0 | 54 | gmake install |
24e8e380 | 55 | |
050dfae0 | 56 | =item 2 |
24e8e380 | 57 | |
9a997319 JH |
58 | While there are currently no architecture-specific |
59 | extensions or modules distributed with perl, the following | |
60 | directories can be used to hold such files: | |
24e8e380 | 61 | |
3fd80bd6 PG |
62 | >system>ported>lib>perl5>5.9.0>7100 |
63 | >system>ported>lib>perl5>5.9.0>8000 | |
3722f0dc | 64 | >system>ported>lib>perl5>5.9.0>i786 |
24e8e380 | 65 | |
3fd80bd6 | 66 | =item 3 |
9a997319 JH |
67 | |
68 | Site-specific perl extensions and modules can be installed in one of | |
69 | two places. Put architecture-independent files into: | |
24e8e380 | 70 | |
3fd80bd6 | 71 | >system>ported>lib>perl5>site_perl>5.9.0 |
24e8e380 | 72 | |
050dfae0 PG |
73 | Put site-specific architecture-dependent files into one of the |
74 | following directories: | |
24e8e380 | 75 | |
3fd80bd6 PG |
76 | >system>ported>lib>perl5>site_perl>5.9.0>7100 |
77 | >system>ported>lib>perl5>site_perl>5.9.0>8000 | |
3722f0dc | 78 | >system>ported>lib>perl5>site_perl>5.9.0>i786 |
24e8e380 | 79 | |
3fd80bd6 | 80 | =item 4 |
9a997319 JH |
81 | |
82 | You can examine the @INC variable from within a perl program | |
83 | to see the order in which Perl searches these directories. | |
495c5fdc | 84 | |
9a997319 JH |
85 | =back |
86 | ||
87 | =head1 USING PERL IN VOS | |
88 | ||
a83b6f46 | 89 | =head2 Restrictions of Perl on VOS |
495c5fdc | 90 | |
24e8e380 GS |
91 | This port of Perl version 5 to VOS prefers Unix-style, |
92 | slash-separated pathnames over VOS-style greater-than-separated | |
93 | pathnames. VOS-style pathnames should work in most contexts, but | |
94 | if you have trouble, replace all greater-than characters by slash | |
95 | characters. Because the slash character is used as a pathname | |
96 | delimiter, Perl cannot process VOS pathnames containing a slash | |
97 | character in a directory or file name; these must be renamed. | |
495c5fdc | 98 | |
24e8e380 GS |
99 | This port of Perl also uses Unix-epoch date values internally. |
100 | As long as you are dealing with ASCII character string | |
101 | representations of dates, this should not be an issue. The | |
102 | supported epoch is January 1, 1980 to January 17, 2038. | |
495c5fdc | 103 | |
24e8e380 GS |
104 | See the file pod/perlport.pod for more information about the VOS |
105 | port of Perl. | |
495c5fdc | 106 | |
11d33b1d PG |
107 | =head2 Handling of underflow and overflow |
108 | ||
46ff39aa PG |
109 | Prior to VOS Release 14.7.0, VOS does not support automatically |
110 | mapping overflowed floating-point values to +infinity, nor | |
111 | automatically mapping underflowed floating-point values to zero, | |
112 | unlike many other platforms. The Perl pack function has been | |
113 | modified to perform such mapping in software on VOS. Performing | |
114 | other floating-point computations that underflow or overflow | |
115 | will probably result in SIGFPE. Don't push your luck. | |
116 | ||
117 | As of VOS Release 14.7.0, the VOS POSIX runtime sets up the | |
3722f0dc PG |
118 | PA-RISC and IA-32 hardware floating-point status register so |
119 | that the overflow and underflow exceptions do not trap, but | |
120 | instead automatically convert the result to infinity or zero, as | |
46ff39aa PG |
121 | appropriate. As of this writing, there are still floating-point |
122 | operations that can trap, for example, subtracting two infinite | |
3722f0dc PG |
123 | values. This is recorded as suggestion posix-1022, which has |
124 | been fixed in VOS Release 15.2 and higher. | |
11d33b1d PG |
125 | |
126 | =head1 TEST STATUS | |
127 | ||
8f8d40ab PG |
128 | When Perl 5.9.0 is built using the native build process on VOS |
129 | Release 14.7.0 and GNU C++/GNU Tools 2.0.2a, all but nine | |
46ff39aa PG |
130 | attempted tests either pass or result in TODO (ignored) |
131 | failures. The tests that fail are: | |
132 | ||
8f8d40ab PG |
133 | t/io/dup, test 2 |
134 | t/io/tell, test 28 | |
135 | t/op/pack, test 0 | |
136 | ext/B/t/bytecode, test 1 | |
137 | ext/Devel/Peek/t/Peek, test 1 | |
138 | ext/Encode/t/enc_module, test 1 | |
139 | ext/IO/t/io_dup, test 2 | |
140 | lib/ExtUtils/t/MM_Unix, test 94 | |
141 | lib/Net/ing/t/450_service, test 8 | |
11d33b1d | 142 | |
9a997319 | 143 | =head1 SUPPORT STATUS |
495c5fdc | 144 | |
495c5fdc | 145 | I'm offering this port "as is". You can ask me questions, but I |
5b8c1387 | 146 | can't guarantee I'll be able to answer them. There are some |
24e8e380 GS |
147 | excellent books available on the Perl language; consult a book |
148 | seller. | |
495c5fdc | 149 | |
8f8d40ab | 150 | If you want a supported version of perl for VOS, purchase the |
3722f0dc | 151 | VOS GNU C/C++ and GNU Tools Release 2.0.1 (or later) product from |
8f8d40ab PG |
152 | Stratus Technologies, along with a support contract (or from |
153 | anyone else who will sell you support). | |
050dfae0 | 154 | |
9a997319 JH |
155 | =head1 AUTHOR |
156 | ||
4f3de37c | 157 | Paul Green (Paul.Green@stratus.com) |
9a997319 JH |
158 | |
159 | =head1 LAST UPDATE | |
160 | ||
3722f0dc | 161 | February 7, 2008 |
9a997319 JH |
162 | |
163 | =cut |