This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Doc nit by Andy Dougherty
[perl5.git] / README.aix
index 9044bae..dacba50 100644 (file)
@@ -31,7 +31,7 @@ you will find xlC.C for AIX-5.0 as package
 
     xlC.aix50.rte   5.0.2.0 or 6.0.0.3
 
-subversions are not the same `latest' on all OS versions. For example,
+subversions are not the same "latest" on all OS versions. For example,
 the latest xlC-5 on aix41 is 5.0.2.9, while on aix43, it is 5.0.2.7.
 
 Perl can be compiled with either IBM's ANSI C compiler or with gcc.
@@ -46,7 +46,7 @@ levels, optimization is turned off for the said source code files.
 Upgrading to at least 5.0.2.0 is recommended.
 
 If you decide to use gcc, make sure your installation is recent and
-complete, and be sure to read the Perl README file for more gcc-specific
+complete, and be sure to read the Perl INSTALL file for more gcc-specific
 details. Please report any hoops you had to jump through to the development
 team.
 
@@ -106,7 +106,7 @@ level.  Of course this is subject to changes.  You can only upgrade
 versions from ftp-available updates if the first three digit groups
 are the same (in where you can skip intermediate unlike the patches
 in the developer snapshots of perl), or to one version up where the
-`base' is available.  In other words, the AIX compiler patches are
+"base" is available.  In other words, the AIX compiler patches are
 cumulative.
 
  vac.C.4.4.0.1 => vac.C.4.4.0.3  is OK     (vac.C.4.4.0.2 not needed)
@@ -183,6 +183,35 @@ If you like a more web-like approach, a good start point can be
 http://www14.software.ibm.com/webapp/download/downloadaz.jsp and click
 "C for AIX", and follow the instructions.
 
+=head2 The usenm option
+
+If linking miniperl
+
+ cc -o miniperl ... miniperlmain.o opmini.o perl.o ... -lm -lc ...
+
+causes error like this
+
+ ld: 0711-317 ERROR: Undefined symbol: .aintl
+ ld: 0711-317 ERROR: Undefined symbol: .copysignl
+ ld: 0711-317 ERROR: Undefined symbol: .syscall
+ ld: 0711-317 ERROR: Undefined symbol: .eaccess
+ ld: 0711-317 ERROR: Undefined symbol: .setresuid
+ ld: 0711-317 ERROR: Undefined symbol: .setresgid
+ ld: 0711-317 ERROR: Undefined symbol: .setproctitle
+ ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
+
+you could retry with
+
+ make realclean
+ rm config.sh
+ ./Configure -Dusenm ...
+
+which makes Configure to use the C<nm> tool when scanning for library
+symbols, which usually is not done in AIX.
+
+Related to this, you probably should not use the C<-r> option of
+Configure in AIX, because that affects of how the C<nm> tool is used.
+
 =head2 Using GNU's gcc for building perl
 
 Using gcc-3.x (tested with 3.0.4, 3.1, and 3.2) now works out of the box,
@@ -198,11 +227,25 @@ Should yield no problems.
 =head2 Threaded Perl
 
 Threads seem to work OK, though at the moment not all tests pass when
-threads are used in combination with 64bit configurations.
+threads are used in combination with 64-bit configurations.
+
+You may get a warning when doing a threaded build:
+
+  "pp_sys.c", line 4640.39: 1506-280 (W) Function argument assignment between types "unsigned char*" and "const void*" is not allowed.
+
+The exact line number may vary, but if the warning (W) comes from a line
+line this
+
+  hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype);
+
+in the "pp_ghostent" function, you may ignore it safely.  The warning
+is caused by the reentrant variant of gethostbyaddr() having a slightly
+different prototype than its non-reentrant variant, but the difference
+is not really significant here.
 
 =head2 64-bit Perl
 
-If your AIX is installed with 64-bit support, you can expect 64bit
+If your AIX is installed with 64-bit support, you can expect 64-bit
 configurations to work. In combination with threads some tests might
 still fail.
 
@@ -218,7 +261,7 @@ therefore in AIX 4.2 Perl is not linked against the libC_r.
 
 =head1 AUTHOR
 
-H.Merijn Brand <h.m.brand@hccnet.nl>
+H.Merijn Brand <h.m.brand@xs4all.nl>
 
 =head1 DATE