From perlaix: If you choose gcc to compile 64-bit Perl then you need to add the following option. See also, article at IBM.

-Dcc='gcc -maix64'

Update: Ah, it looks like you're wanting to build a 32-bit Perl. Have you tried the following configure option?

-Dcc='gcc -maix32'

There is AIX Toolbox for Linux Applications. The AIX Toolbox for Linux Applications contains a wide variety of software, including but not limited to:

- Application Development - gcc, g++, gdb, rpm, cvs, automake, autoconf, libtool, git, subversion, gettext - GNU base utilities - gawk, m4, indent, sed, tar, diffutils, findutils, grep, coreutils - Programming Languages - perl, python, ruby, php - System Utilities - emacs, vim, bzip2, gzip, rsync, wget, lsof, less, samba, zip, unzip - Libraries - ncurses, readline, libxml2, libyaml, libpng, libjpeg, slang, db, glib2, zlib, gtk+ - System Shells - bash, tcsh, zsh - Software Managment - YUM - Developing graphical user interface - gtk2+ - Cloud environment - cloud-init, python-swift

With the perl binary, included with the toolbox, one can then extract the configure options used.

/path/to/toolbox/bin/perl -V | grep config_args

Am not sure how gcc was installed. If taken from AIXTOOLS, notice the extra step after the installation.

/opt/libexec/gcc/powerpc-ibm-aix5.3.7.0/4.7.4/install-tools/mkheaders

Regards, Mario


In reply to Re: Perl: AIX compile error by marioroy
in thread Perl: AIX compile error by flynn7312

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.