This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH] [5.12] Allow build on aix 4.2 (sigaction and IPv6)
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 16 Apr 2010 15:47:15 +0000 (17:47 +0200)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 16 Apr 2010 15:47:15 +0000 (17:47 +0200)
commit4f1623e5e854b85ee815e79fd4cf7f5c0c8cccb5
treea2e9a3607ca319d479c9067e1357308c4791f6d3
parent657e06c98954af67a44f5f656146e090199a9e30
[PATCH] [5.12] Allow build on aix 4.2 (sigaction and IPv6)

Based on a patch by AUGUSTE-ETIENNE José <jose.auguste-etienne@cgss-guyane.fr>

The attached patches are necessary to work around aix 4.2 lack of support for IPv6,
and limited support for POSIX sigaction()

The hints/aix_4.sh patch solves the following build failure:

"Socket.xs", line 468.16: 1506-007 (S) "struct in6_addr" is undefined.

The ext/POSIX/t/sigaction.t patch solves the failing test reported a looong time ago:

http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-01/msg01124.html

After testing a simple C program using POSIX sigaction() with SA_SIGINFO,
I found that it worked on aix 4.3 but failed on aix 4.2.

I think it's safe to skip the SA_SIGINFO test on the aix 4.2 platform.

perl 5.12.0 builds fine on the following platforms / C compiler :

aix 4.2.1 / vac 5.0.2.7 (with attached patches)
aix 4.3.2 / gcc 2.95.3
aix 4.3.3 / vac 4.4.0.3
aix 4.3.3 / vac 5.0.28
aix 5.2 / GNUpro gcc 2.9.aix51.020209

The atatched patches should be applied to blead and maint.
ext/POSIX/t/sigaction.t
hints/aix_4.sh