Debian Codegraph @

upstream/mageia-cauldron/man1/perlaix.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERLAIX 1"
61 .TH PERLAIX 1 2023-12-22 "perl v5.42.0" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perlaix \- Perl version 5 on IBM AIX (UNIX) systems
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 This document describes various features of IBM\*(Aqs UNIX operating
71 system AIX that will affect how Perl version 5 (hereafter just Perl)
72 is compiled and/or runs.
73 .SS "Compiling Perl 5 on AIX"
74 .IX Subsection "Compiling Perl 5 on AIX"
75 For information on compilers on older versions of AIX, see "Compiling
76 Perl 5 on older AIX versions up to 4.3.3".
77 .PP
78 When compiling Perl, you must use an ANSI C compiler. AIX does not ship
79 an ANSI compliant C compiler with AIX by default, but binary builds of
80 gcc for AIX are widely available. A version of gcc is also included in
81 the AIX Toolbox which is shipped with AIX.
82 .SS "Supported Compilers"
83 .IX Subsection "Supported Compilers"
84 Currently all versions of IBM\*(Aqs "xlc", "xlc_r", "cc", "cc_r" or
85 "vac" ANSI/C compiler will work for building Perl if that compiler
86 works on your system.
87 .PP
88 If you plan to link Perl to any module that requires thread\-support,
89 like DBD::Oracle, it is better to use the _r version of the compiler.
90 This will not build a threaded Perl, but a thread\-enabled Perl. See
91 also "Threaded Perl" later on.
92 .PP
93 As of writing (2010\-09) only the \fIIBM XL C for AIX\fR or \fIIBM XL C/C++
94 for AIX\fR compiler is supported by IBM on AIX 5L/6.1/7.1.
95 .PP
96 The following compiler versions are currently supported by IBM:
97 .PP
98 .Vb 1
99 \& IBM XL C and IBM XL C/C++ V8, V9, V10, V11
100 .Ve
101 .PP
102 The XL C for AIX is integrated in the XL C/C++ for AIX compiler and
103 therefore also supported.
104 .PP
105 If you choose XL C/C++ V9 you need APAR IZ35785 installed
106 otherwise the integrated SDBM_File do not compile correctly due
107 to an optimization bug. You can circumvent this problem by
108 adding \-qipa to the optimization flags (\-Doptimize=\*(Aq\-O \-qipa\*(Aq).
109 The PTF for APAR IZ35785 which solves this problem is available
110 from IBM (April 2009 PTF for XL C/C++ Enterprise Edition for AIX, V9.0).
111 .PP
112 If you choose XL C/C++ V11 you need the April 2010 PTF (or newer)
113 installed otherwise you will not get a working Perl version.
114 .PP
115 Perl can be compiled with either IBM\*(Aqs ANSI C compiler or with gcc.
116 The former is recommended, as not only it can compile Perl with no
117 difficulty, but also can take advantage of features listed later
118 that require the use of IBM compiler\-specific command\-line flags.
119 .PP
120 If you decide to use gcc, make sure your installation is recent and
121 complete, and be sure to read the Perl INSTALL file for more gcc\-specific
122 details. Please report any hoops you had to jump through to the
123 development team.
124 .SS "Incompatibility with AIX Toolbox lib gdbm"
125 .IX Subsection "Incompatibility with AIX Toolbox lib gdbm"
126 If the AIX Toolbox version of lib gdbm < 1.8.3\-5 is installed on your
127 system then Perl will not work. This library contains the header files
128 /opt/freeware/include/gdbm/dbm.h|ndbm.h which conflict with the AIX
129 system versions. The lib gdbm will be automatically removed from the
130 wanted libraries if the presence of one of these two header files is
131 detected. If you want to build Perl with GDBM support then please install
132 at least gdbm\-devel\-1.8.3\-5 (or higher).
133 .SS "Perl 5 was successfully compiled and tested on:"
134 .IX Subsection "Perl 5 was successfully compiled and tested on:"
135 .Vb 10
136 \& Perl | AIX Level | Compiler Level | w th | w/o th
137 \& \-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-+\-\-\-\-\-\-\-
138 \& 5.12.2 |5.1 TL9 32 bit | XL C/C++ V7 | OK | OK
139 \& 5.12.2 |5.1 TL9 64 bit | XL C/C++ V7 | OK | OK
140 \& 5.12.2 |5.2 TL10 SP8 32 bit | XL C/C++ V8 | OK | OK
141 \& 5.12.2 |5.2 TL10 SP8 32 bit | gcc 3.2.2 | OK | OK
142 \& 5.12.2 |5.2 TL10 SP8 64 bit | XL C/C++ V8 | OK | OK
143 \& 5.12.2 |5.3 TL8 SP8 32 bit | XL C/C++ V9 + IZ35785 | OK | OK
144 \& 5.12.2 |5.3 TL8 SP8 32 bit | gcc 4.2.4 | OK | OK
145 \& 5.12.2 |5.3 TL8 SP8 64 bit | XL C/C++ V9 + IZ35785 | OK | OK
146 \& 5.12.2 |5.3 TL10 SP3 32 bit | XL C/C++ V11 + Apr 2010 | OK | OK
147 \& 5.12.2 |5.3 TL10 SP3 64 bit | XL C/C++ V11 + Apr 2010 | OK | OK
148 \& 5.12.2 |6.1 TL1 SP7 32 bit | XL C/C++ V10 | OK | OK
149 \& 5.12.2 |6.1 TL1 SP7 64 bit | XL C/C++ V10 | OK | OK
150 \& 5.13 |7.1 TL0 SP1 32 bit | XL C/C++ V11 + Jul 2010 | OK | OK
151 \& 5.13 |7.1 TL0 SP1 64 bit | XL C/C++ V11 + Jul 2010 | OK | OK
152 \&
153 \& w th = with thread support
154 \& w/o th = without thread support
155 \& OK = tested
156 .Ve
157 .PP
158 Successfully tested means that all "make test" runs finish with a
159 result of 100% OK. All tests were conducted with \-Duseshrplib set.
160 .PP
161 All tests were conducted on the oldest supported AIX technology level
162 with the latest support package applied. If the tested AIX version is
163 out of support (AIX 4.3.3, 5.1, 5.2) then the last available support
164 level was used.
165 .SS "Building Dynamic Extensions on AIX"
166 .IX Subsection "Building Dynamic Extensions on AIX"
167 Starting from Perl 5.7.2 (and consequently 5.8.x / 5.10.x / 5.12.x)
168 and AIX 4.3 or newer Perl uses the AIX native dynamic loading interface
169 in the so called runtime linking mode instead of the emulated interface
170 that was used in Perl releases 5.6.1 and earlier or, for AIX releases
171 4.2 and earlier. This change does break backward compatibility with
172 compiled modules from earlier Perl releases. The change was made to make
173 Perl more compliant with other applications like Apache/mod_perl which are
174 using the AIX native interface. This change also enables the use of
175 C++ code with static constructors and destructors in Perl extensions,
176 which was not possible using the emulated interface.
177 .PP
178 It is highly recommended to use the new interface.
179 .SS "Using Large Files with Perl"
180 .IX Subsection "Using Large Files with Perl"
181 Should yield no problems.
182 .SS "Threaded Perl"
183 .IX Subsection "Threaded Perl"
184 Should yield no problems with AIX 5.1 / 5.2 / 5.3 / 6.1 / 7.1.
185 .PP
186 IBM uses the AIX system Perl (V5.6.0 on AIX 5.1 and V5.8.2 on
187 AIX 5.2 / 5.3 and 6.1; V5.8.8 on AIX 5.3 TL11 and AIX 6.1 TL4; V5.10.1
188 on AIX 7.1) for some AIX system scripts. If you switch the links in
189 /usr/bin from the AIX system Perl (/usr/opt/perl5) to the newly build
190 Perl then you get the same features as with the IBM AIX system Perl if
191 the threaded options are used.
192 .PP
193 The threaded Perl build works also on AIX 5.1 but the IBM Perl
194 build (Perl v5.6.0) is not threaded on AIX 5.1.
195 .PP
196 Perl 5.12 an newer is not compatible with the IBM fileset perl.libext.
197 .SS "64\-bit Perl"
198 .IX Subsection "64-bit Perl"
199 If your AIX system is installed with 64\-bit support, you can expect 64\-bit
200 configurations to work. If you want to use 64\-bit Perl on AIX 6.1
201 you need an APAR for a libc.a bug which affects (n)dbm_XXX functions.
202 The APAR number for this problem is IZ39077.
203 .PP
204 If you need more memory (larger data segment) for your Perl programs you
205 can set:
206 .PP
207 .Vb 3
208 \& /etc/security/limits
209 \& default: (or your user)
210 \& data = \-1 (default is 262144 * 512 byte)
211 .Ve
212 .PP
213 With the default setting the size is limited to 128MB.
214 The \-1 removes this limit. If the "make test" fails please change
215 your /etc/security/limits as stated above.
216 .SS "Long doubles"
217 .IX Subsection "Long doubles"
218 IBM calls its implementation of long doubles 128\-bit, but it is not
219 the IEEE 128\-bit ("quadruple precision") which would give 116 bit of
220 mantissa (nor it is implemented in hardware), instead it\*(Aqs a special
221 software implementation called "double\-double", which gives 106 bits
222 of mantissa.
223 .PP
224 There seem to be various problems in this long double implementation.
225 If Configure detects this brokenness, it will disable the long double support.
226 This can be overridden with explicit \f(CW\*(C`\-Duselongdouble\*(C'\fR (or \f(CW\*(C`\-Dusemorebits\*(C'\fR,
227 which enables both long doubles and 64 bit integers). If you decide to
228 enable long doubles, for most of the broken things Perl has implemented
229 workarounds, but the handling of the special values infinity and NaN
230 remains badly broken: for example infinity plus zero results in NaN.
231 .SS "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/32\-bit)"
232 .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/32-bit)"
233 With the following options you get a threaded Perl version which
234 passes all make tests in threaded 32\-bit mode, which is the default
235 configuration for the Perl builds that AIX ships with.
236 .PP
237 .Vb 7
238 \& rm config.sh
239 \& ./Configure \e
240 \& \-d \e
241 \& \-Dcc=cc_r \e
242 \& \-Duseshrplib \e
243 \& \-Dusethreads \e
244 \& \-Dprefix=/usr/opt/perl5_32
245 .Ve
246 .PP
247 The \-Dprefix option will install Perl in a directory parallel to the
248 IBM AIX system Perl installation.
249 .SS "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (32\-bit)"
250 .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (32-bit)"
251 With the following options you get a Perl version which passes
252 all make tests in 32\-bit mode.
253 .PP
254 .Vb 6
255 \& rm config.sh
256 \& ./Configure \e
257 \& \-d \e
258 \& \-Dcc=cc_r \e
259 \& \-Duseshrplib \e
260 \& \-Dprefix=/usr/opt/perl5_32
261 .Ve
262 .PP
263 The \-Dprefix option will install Perl in a directory parallel to the
264 IBM AIX system Perl installation.
265 .SS "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/64\-bit)"
266 .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/64-bit)"
267 With the following options you get a threaded Perl version which
268 passes all make tests in 64\-bit mode.
269 .PP
270 .Vb 1
271 \& export OBJECT_MODE=64 / setenv OBJECT_MODE 64 (depending on your shell)
272 \&
273 \& rm config.sh
274 \& ./Configure \e
275 \& \-d \e
276 \& \-Dcc=cc_r \e
277 \& \-Duseshrplib \e
278 \& \-Dusethreads \e
279 \& \-Duse64bitall \e
280 \& \-Dprefix=/usr/opt/perl5_64
281 .Ve
282 .SS "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (64\-bit)"
283 .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (64-bit)"
284 With the following options you get a Perl version which passes all
285 make tests in 64\-bit mode.
286 .PP
287 .Vb 1
288 \& export OBJECT_MODE=64 / setenv OBJECT_MODE 64 (depending on your shell)
289 \&
290 \& rm config.sh
291 \& ./Configure \e
292 \& \-d \e
293 \& \-Dcc=cc_r \e
294 \& \-Duseshrplib \e
295 \& \-Duse64bitall \e
296 \& \-Dprefix=/usr/opt/perl5_64
297 .Ve
298 .PP
299 The \-Dprefix option will install Perl in a directory parallel to the
300 IBM AIX system Perl installation.
301 .PP
302 If you choose gcc to compile 64\-bit Perl then you need to add the
303 following option:
304 .PP
305 .Vb 1
306 \& \-Dcc=\*(Aqgcc \-maix64\*(Aq
307 .Ve
308 .SS "Compiling Perl 5 on AIX 7.1.0"
309 .IX Subsection "Compiling Perl 5 on AIX 7.1.0"
310 A regression in AIX 7 causes a failure in make test in Time::Piece during
311 daylight savings time. APAR IV16514 provides the fix for this. A quick
312 test to see if it\*(Aqs required, assuming it is currently daylight savings
313 in Eastern Time, would be to run \f(CW\*(C` TZ=EST5 date +%Z \*(C'\fR. This will come
314 back with \f(CW\*(C`EST\*(C'\fR normally, but nothing if you have the problem.
315 .SS "Compiling Perl 5 on older AIX versions up to 4.3.3"
316 .IX Subsection "Compiling Perl 5 on older AIX versions up to 4.3.3"
317 Due to the fact that AIX 4.3.3 reached end\-of\-service in December 31,
318 2003 this information is provided as is. The Perl versions prior to
319 Perl 5.8.9 could be compiled on AIX up to 4.3.3 with the following
320 settings (your mileage may vary):
321 .PP
322 When compiling Perl, you must use an ANSI C compiler. AIX does not ship
323 an ANSI compliant C\-compiler with AIX by default, but binary builds of
324 gcc for AIX are widely available.
325 .PP
326 At the moment of writing, AIX supports two different native C compilers,
327 for which you have to pay: \fBxlC\fR and \fBvac\fR. If you decide to use either
328 of these two (which is quite a lot easier than using gcc), be sure to
329 upgrade to the latest available patch level. Currently:
330 .PP
331 .Vb 2
332 \& xlC.C 3.1.4.10 or 3.6.6.0 or 4.0.2.2 or 5.0.2.9 or 6.0.0.3
333 \& vac.C 4.4.0.3 or 5.0.2.6 or 6.0.0.1
334 .Ve
335 .PP
336 note that xlC has the OS version in the name as of version 4.0.2.0, so
337 you will find xlC.C for AIX\-5.0 as package
338 .PP
339 .Vb 1
340 \& xlC.aix50.rte 5.0.2.0 or 6.0.0.3
341 .Ve
342 .PP
343 subversions are not the same "latest" on all OS versions. For example,
344 the latest xlC\-5 on aix41 is 5.0.2.9, while on aix43, it is 5.0.2.7.
345 .PP
346 Perl can be compiled with either IBM\*(Aqs ANSI C compiler or with gcc.
347 The former is recommended, as not only can it compile Perl with no
348 difficulty, but also can take advantage of features listed later that
349 require the use of IBM compiler\-specific command\-line flags.
350 .PP
351 The IBM\*(Aqs compiler patch levels 5.0.0.0 and 5.0.1.0 have compiler
352 optimization bugs that affect compiling perl.c and regcomp.c,
353 respectively. If Perl\*(Aqs configuration detects those compiler patch
354 levels, optimization is turned off for the said source code files.
355 Upgrading to at least 5.0.2.0 is recommended.
356 .PP
357 If you decide to use gcc, make sure your installation is recent and
358 complete, and be sure to read the Perl INSTALL file for more gcc\-specific
359 details. Please report any hoops you had to jump through to the development
360 team.
361 .SS "OS level"
362 .IX Subsection "OS level"
363 Before installing the patches to the IBM C\-compiler you need to know the
364 level of patching for the Operating System. IBM\*(Aqs command \*(Aqoslevel\*(Aq will
365 show the base, but is not always complete (in this example oslevel shows
366 4.3.NULL, whereas the system might run most of 4.3.THREE):
367 .PP
368 .Vb 6
369 \& # oslevel
370 \& 4.3.0.0
371 \& # lslpp \-l | grep \*(Aqbos.rte \*(Aq
372 \& bos.rte 4.3.3.75 COMMITTED Base Operating System Runtime
373 \& bos.rte 4.3.2.0 COMMITTED Base Operating System Runtime
374 \& #
375 .Ve
376 .PP
377 The same might happen to AIX 5.1 or other OS levels. As a side note, Perl
378 cannot be built without bos.adt.syscalls and bos.adt.libm installed
379 .PP
380 .Vb 4
381 \& # lslpp \-l | egrep "syscalls|libm"
382 \& bos.adt.libm 5.1.0.25 COMMITTED Base Application Development
383 \& bos.adt.syscalls 5.1.0.36 COMMITTED System Calls Application
384 \& #
385 .Ve
386 .SS "Building Dynamic Extensions on AIX < 5L"
387 .IX Subsection "Building Dynamic Extensions on AIX < 5L"
388 AIX supports dynamically loadable objects as well as shared libraries.
389 Shared libraries by convention end with the suffix .a, which is a bit
390 misleading, as an archive can contain static as well as dynamic members.
391 For Perl dynamically loaded objects we use the .so suffix also used on
392 many other platforms.
393 .PP
394 Note that starting from Perl 5.7.2 (and consequently 5.8.0) and AIX 4.3
395 or newer Perl uses the AIX native dynamic loading interface in the so
396 called runtime linking mode instead of the emulated interface that was
397 used in Perl releases 5.6.1 and earlier or, for AIX releases 4.2 and
398 earlier. This change does break backward compatibility with compiled
399 modules from earlier Perl releases. The change was made to make Perl
400 more compliant with other applications like Apache/mod_perl which are
401 using the AIX native interface. This change also enables the use of C++
402 code with static constructors and destructors in Perl extensions, which
403 was not possible using the emulated interface.
404 .SS "The IBM ANSI C Compiler"
405 .IX Subsection "The IBM ANSI C Compiler"
406 All defaults for Configure can be used.
407 .PP
408 If you\*(Aqve chosen to use vac 4, be sure to run 4.4.0.3. Older versions
409 will turn up nasty later on. For vac 5 be sure to run at least 5.0.1.0,
410 but vac 5.0.2.6 or up is highly recommended. Note that since IBM has
411 removed vac 5.0.2.1 through 5.0.2.5 from the software depot, these
412 versions should be considered obsolete.
413 .PP
414 Here\*(Aqs a brief lead of how to upgrade the compiler to the latest
415 level. Of course this is subject to changes. You can only upgrade
416 versions from ftp\-available updates if the first three digit groups
417 are the same (in where you can skip intermediate unlike the patches
418 in the developer snapshots of Perl), or to one version up where the
419 "base" is available. In other words, the AIX compiler patches are
420 cumulative.
421 .PP
422 .Vb 3
423 \& vac.C.4.4.0.1 => vac.C.4.4.0.3 is OK (vac.C.4.4.0.2 not needed)
424 \& xlC.C.3.1.3.3 => xlC.C.3.1.4.10 is NOT OK (xlC.C.3.1.4.0 is not
425 \& available)
426 \&
427 \& # ftp ftp.software.ibm.com
428 \& Connected to service.boulder.ibm.com.
429 \& : welcome message ...
430 \& Name (ftp.software.ibm.com:merijn): anonymous
431 \& 331 Guest login ok, send your complete e\-mail address as password.
432 \& Password:
433 \& ... accepted login stuff
434 \& ftp> cd /aix/fixes/v4/
435 \& ftp> dir other other.ll
436 \& output to local\-file: other.ll? y
437 \& 200 PORT command successful.
438 \& 150 Opening ASCII mode data connection for /bin/ls.
439 \& 226 Transfer complete.
440 \& ftp> dir xlc xlc.ll
441 \& output to local\-file: xlc.ll? y
442 \& 200 PORT command successful.
443 \& 150 Opening ASCII mode data connection for /bin/ls.
444 \& 226 Transfer complete.
445 \& ftp> bye
446 \& ... goodbye messages
447 \& # ls \-l *.ll
448 \& \-rw\-rw\-rw\- 1 merijn system 1169432 Nov 2 17:29 other.ll
449 \& \-rw\-rw\-rw\- 1 merijn system 29170 Nov 2 17:29 xlc.ll
450 .Ve
451 .PP
452 On AIX 4.2 using xlC, we continue:
453 .PP
454 .Vb 10
455 \& # lslpp \-l | fgrep \*(AqxlC.C \*(Aq
456 \& xlC.C 3.1.4.9 COMMITTED C for AIX Compiler
457 \& xlC.C 3.1.4.0 COMMITTED C for AIX Compiler
458 \& # grep \*(AqxlC.C.3.1.4.*.bff\*(Aq xlc.ll
459 \& \-rw\-r\-\-r\-\- 1 45776101 1 6286336 Jul 22 1996 xlC.C.3.1.4.1.bff
460 \& \-rw\-rw\-r\-\- 1 45776101 1 6173696 Aug 24 1998 xlC.C.3.1.4.10.bff
461 \& \-rw\-r\-\-r\-\- 1 45776101 1 6319104 Aug 14 1996 xlC.C.3.1.4.2.bff
462 \& \-rw\-r\-\-r\-\- 1 45776101 1 6316032 Oct 21 1996 xlC.C.3.1.4.3.bff
463 \& \-rw\-r\-\-r\-\- 1 45776101 1 6315008 Dec 20 1996 xlC.C.3.1.4.4.bff
464 \& \-rw\-rw\-r\-\- 1 45776101 1 6178816 Mar 28 1997 xlC.C.3.1.4.5.bff
465 \& \-rw\-rw\-r\-\- 1 45776101 1 6188032 May 22 1997 xlC.C.3.1.4.6.bff
466 \& \-rw\-rw\-r\-\- 1 45776101 1 6191104 Sep 5 1997 xlC.C.3.1.4.7.bff
467 \& \-rw\-rw\-r\-\- 1 45776101 1 6185984 Jan 13 1998 xlC.C.3.1.4.8.bff
468 \& \-rw\-rw\-r\-\- 1 45776101 1 6169600 May 27 1998 xlC.C.3.1.4.9.bff
469 \& # wget ftp://ftp.software.ibm.com/aix/fixes/v4/xlc/xlC.C.3.1.4.10.bff
470 \& #
471 .Ve
472 .PP
473 On AIX 4.3 using vac, we continue:
474 .PP
475 .Vb 10
476 \& # lslpp \-l | grep \*(Aqvac.C \*(Aq
477 \& vac.C 5.0.2.2 COMMITTED C for AIX Compiler
478 \& vac.C 5.0.2.0 COMMITTED C for AIX Compiler
479 \& # grep \*(Aqvac.C.5.0.2.*.bff\*(Aq other.ll
480 \& \-rw\-rw\-r\-\- 1 45776101 1 13592576 Apr 16 2001 vac.C.5.0.2.0.bff
481 \& \-rw\-rw\-r\-\- 1 45776101 1 14133248 Apr 9 2002 vac.C.5.0.2.3.bff
482 \& \-rw\-rw\-r\-\- 1 45776101 1 14173184 May 20 2002 vac.C.5.0.2.4.bff
483 \& \-rw\-rw\-r\-\- 1 45776101 1 14192640 Nov 22 2002 vac.C.5.0.2.6.bff
484 \& # wget ftp://ftp.software.ibm.com/aix/fixes/v4/other/vac.C.5.0.2.6.bff
485 \& #
486 .Ve
487 .PP
488 Likewise on all other OS levels. Then execute the following command, and
489 fill in its choices
490 .PP
491 .Vb 5
492 \& # smit install_update
493 \& \-> Install and Update from LATEST Available Software
494 \& * INPUT device / directory for software [ vac.C.5.0.2.6.bff ]
495 \& [ OK ]
496 \& [ OK ]
497 .Ve
498 .PP
499 Follow the messages ... and you\*(Aqre done.
500 .PP
501 If you like a more web\-like approach, a good start point can be
502 <http://www14.software.ibm.com/webapp/download/downloadaz.jsp> and click
503 "C for AIX", and follow the instructions.
504 .SS "The usenm option"
505 .IX Subsection "The usenm option"
506 If linking miniperl
507 .PP
508 .Vb 1
509 \& cc \-o miniperl ... miniperlmain.o opmini.o perl.o ... \-lm \-lc ...
510 .Ve
511 .PP
512 causes error like this
513 .PP
514 .Vb 9
515 \& ld: 0711\-317 ERROR: Undefined symbol: .aintl
516 \& ld: 0711\-317 ERROR: Undefined symbol: .copysignl
517 \& ld: 0711\-317 ERROR: Undefined symbol: .syscall
518 \& ld: 0711\-317 ERROR: Undefined symbol: .eaccess
519 \& ld: 0711\-317 ERROR: Undefined symbol: .setresuid
520 \& ld: 0711\-317 ERROR: Undefined symbol: .setresgid
521 \& ld: 0711\-317 ERROR: Undefined symbol: .setproctitle
522 \& ld: 0711\-345 Use the \-bloadmap or \-bnoquiet option to obtain more
523 \& information.
524 .Ve
525 .PP
526 you could retry with
527 .PP
528 .Vb 3
529 \& make realclean
530 \& rm config.sh
531 \& ./Configure \-Dusenm ...
532 .Ve
533 .PP
534 which makes Configure to use the \f(CW\*(C`nm\*(C'\fR tool when scanning for library
535 symbols, which usually is not done in AIX.
536 .PP
537 Related to this, you probably should not use the \f(CW\*(C`\-r\*(C'\fR option of
538 Configure in AIX, because that affects of how the \f(CW\*(C`nm\*(C'\fR tool is used.
539 .SS "Using GNU\*(Aqs gcc for building Perl"
540 .IX Subsection "Using GNU's gcc for building Perl"
541 Using gcc\-3.x (tested with 3.0.4, 3.1, and 3.2) now works out of the box,
542 as do recent gcc\-2.9 builds available directly from IBM as part of their
543 Linux compatibility packages, available here:
544 .PP
545 .Vb 1
546 \& http://www.ibm.com/servers/aix/products/aixos/linux/
547 .Ve
548 .SS "Using Large Files with Perl < 5L"
549 .IX Subsection "Using Large Files with Perl < 5L"
550 Should yield no problems.
551 .SS "Threaded Perl < 5L"
552 .IX Subsection "Threaded Perl < 5L"
553 Threads seem to work OK, though at the moment not all tests pass when
554 threads are used in combination with 64\-bit configurations.
555 .PP
556 You may get a warning when doing a threaded build:
557 .PP
558 .Vb 2
559 \& "pp_sys.c", line 4640.39: 1506\-280 (W) Function argument assignment
560 \& between types "unsigned char*" and "const void*" is not allowed.
561 .Ve
562 .PP
563 The exact line number may vary, but if the warning (W) comes from a line
564 line this
565 .PP
566 .Vb 1
567 \& hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype);
568 .Ve
569 .PP
570 in the "pp_ghostent" function, you may ignore it safely. The warning
571 is caused by the reentrant variant of \fBgethostbyaddr()\fR having a slightly
572 different prototype than its non\-reentrant variant, but the difference
573 is not really significant here.
574 .SS "64\-bit Perl < 5L"
575 .IX Subsection "64-bit Perl < 5L"
576 If your AIX is installed with 64\-bit support, you can expect 64\-bit
577 configurations to work. In combination with threads some tests might
578 still fail.
579 .SS "AIX 4.2 and extensions using C++ with statics"
580 .IX Subsection "AIX 4.2 and extensions using C++ with statics"
581 In AIX 4.2 Perl extensions that use C++ functions that use statics
582 may have problems in that the statics are not getting initialized.
583 In newer AIX releases this has been solved by linking Perl with
584 the libC_r library, but unfortunately in AIX 4.2 the said library
585 has an obscure bug where the various functions related to time
586 (such as \fBtime()\fR and \fBgettimeofday()\fR) return broken values, and
587 therefore in AIX 4.2 Perl is not linked against the libC_r.
588 .SH AUTHORS
589 .IX Header "AUTHORS"
590 Rainer Tammer <[email protected]>