gcc for AIX are widely available.
At the moment of writing, AIX supports two different native C compilers,
-for which you have to pay: B<xlc> and B<VAC>. If you decide to use eiter
+for which you have to pay: B<xlC> and B<vac>. If you decide to use either
of these two (which is quite a lot easier than using gcc), be sure to
upgrade to the latest available patch level. Currently:
- xlC.C 3.1.4.0
- vac.C 4.4.0.3 or 5.0.2.0
+ xlC.C 3.1.4.8 or 3.6.6.0
+ vac.C 4.4.0.3 or 5.0.2.3
Perl can be compiled with either IBM's ANSI C compiler or with gcc.
The former is recommended, as not only can it compile Perl with no
# oslevel
4.3.0.0
# lslpp -l | grep 'bos.rte '
- bos.rte 4.3.2.1 COMMITTED Base Operating System Runtime
- bos.rte 4.3.2.0 COMMITTED Base Operating System Runtime
+ bos.rte 4.3.3.75 COMMITTED Base Operating System Runtime
+ bos.rte 4.3.2.0 COMMITTED Base Operating System Runtime
#
-=head2 Building Dynamic Extensions on AIX
+As a side note, perl cannot be built without bos.adt.syscalls installed
-AIX supports dynamically loadable libraries (shared libraries).
-Shared libraries end with the suffix .a, which is a bit misleading,
-because *all* libraries are shared ;-).
+ # lslpp -l | grep syscalls
+ bos.adt.syscalls 4.3.3.51 COMMITTED System Calls Application
+ #
-Note that starting from Perl 5.7.2 (and consequently 5.8.0) and AIX
-4.3 or newer Perl uses the AIX native dynamic loading interface
-instead of the emulated interface that was used in Perl releases 5.6.1
-and earlier or, for AIX releases 4.2 and earlier. This change will
-probably break backward compatibility with compiled modules.
-The change was made to make Perl more compliant with other applications
-like modperl which are using the AIX native interface.
+=head2 Building Dynamic Extensions on AIX
+
+AIX supports dynamically loadable objects as well as shared libraries.
+Shared libraries by convention end with the suffix .a, which is a bit
+misleading, as an archive can contain static as well as dynamic members.
+For perl dynamically loaded objects we use the .so suffix also used on
+many other platforms.
+
+Note that starting from Perl 5.7.2 (and consequently 5.8.0) and AIX 4.3
+or newer Perl uses the AIX native dynamic loading interface in the so
+called runtime linking mode instead of the emulated interface that was
+used in Perl releases 5.6.1 and earlier or, for AIX releases 4.2 and
+earlier. This change does break backward compatibility with compiled
+modules from earlier perl releases. The change was made to make Perl
+more compliant with other applications like Apache/modperl which are
+using the AIX native interface. This change also enables the use of C++
+code with static constructors and destructors in perl extensions, which
+was not possible using the emulated interface.
=head2 The IBM ANSI C Compiler
All defaults for Configure can be used.
If you've chosen to use vac 4, be sure to run 4.4.0.3. Older versions
-will turn up nasty later on. For vac 5 be sure to run at least 5.0.1.0.
+will turn up nasty later on. For vac 5 be sure to run at least 5.0.1.0,
+but vac 5.0.2.1 or up is highly recommended.
Here's a brief lead of how to upgrade the compiler to the latest
level. Of course this is subject to changes. You can only upgrade
=head2 Using GNU's gcc for building perl
-We're woking on this using gcc-3.0 ... (any input highly appreciated)
+Using gcc-3.0 (tested with 3.0.4) now works out of the box.
=head2 Using Large Files with Perl
H.Merijn Brand <h.m.brand@hccnet.nl>
-Structure copied from README.hpux
-
=head1 DATE
-Version 0.0.3: 12 Jul 2001
+Version 0.0.4: 13 May 2002
=cut