Mods to make perl under AIX 3.01 - and possible compiler bug

Marc Pawliger marc at ibmpa.awdpa.ibm.com
Wed Feb 6 08:33:13 AEST 1991


In article <406 at ariel.ucs.unimelb.edu.au>, rab at tauon.ph.unimelb.edu.au (Richard Alan Brown) writes:
|> The following modifications needed to be made to the perl (Release 3
|> patchlevel 28) source to compile on an IBM RS/6000 running AIX 3.01:

[fixes deleted]

Perl release 3 is currently at patchlevel 44.  The patches are available from
uunet.uu.net, prep.ai.mit.edu and jpl-devvax.jpl.nasa.gov via anonymous ftp. 
_Many_ fixes have been made since pl28.

Anyway, perl3 at 44 compiles quite nicely on the '6000 with just one fix in
malloc.c.  If you answered 'no' the the question 'Do you wish to use the
malloc that comes with perl?', then perl compiles clean right out of the box
and passes all the tests.  If you answered 'yes', then all you need do is
change the declaration of free in malloc.c to be 'void free(cp) void * cp;'
instead of the supplied 'free(cp) char * cp;'  This is because the stdlib.h
supplied with the '6000 uses the POSIX/ANSI definition of free and would not
allow it to be redeclared with a different signature.

+--Marc Pawliger----IBM Advanced Workstations Division----Palo Alto, CA---+
|   Internet: marc at ibminet.awdpa.ibm.com        VNET:    MARCP at AUSVM6  |
|    UUCP:     uunet!ibminet.awdpa.ibm.com!marc  Phone:   (415) 855-3493  |
+-----IBMinet:  marc at ibmpa.awdpa.ibm.com----------IBM T/L:  465-3493------+

As always, these are my opinions and not IBM's etc etc etc



More information about the Comp.unix.aix mailing list