dear monks, i am in the process of doing a gcc build of Perl, but it wont let me through. A build with IBM's native xlc compiler is going well, but in this case gcc is necessary to not break the AIX freeware tree.

here ist the error in his full glory.

+ make echo @`sh cflags "optimize='-O2 -g '" opmini.o` -DPERL_IS_MI +NIPERL -DPERL_EXTERNAL_GLOB opmini.c @/usr/bin/gcc -maix32 -maix32 -c -DPERL_CORE -D_THREAD_SAFE -D_ALL_SOU +RCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHRE +AD_INIT -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LA +RGE_FILES -O2 -g -Wall -DPERL_IS_MINIPERL -DPERL_EXTERNAL_GLOB opmini +.c In file included from op.h:636:0, from perl.h:3903, from op.c:103: reentr.h:719:14: error: field '_spent_struct' has incomplete type struct spwd _spent_struct; ^~~~~~~~~~~~~ make: The error code from the last command is 1.

the configure options

export OBJECT_MODE=32 export CC='/usr/bin/gcc -maix32' export LDFLAGS="-s -Wl,-bmaxdata:0x80000000 -L/opt/freeware/lib -L/usr +/lib" ./Configure -desr -Doptimize="$RPM_OPT_FLAGS" \ -d \ -Dcc="$CC" -Dldflags="$LDFLAGS" \ -Dinstallprefix=$RPM_BUILD_ROOT%{_prefix} \ -Dprefix=%{_prefix} \ -Duselargefiles \ -Duseshrplib \ -Dusethreads \ -Darchname=%{_arch}-%{_os} \ -A define:ld='/usr/bin/gcc -maix32' \ -A define:ccdlflags='-brtl -bdynamic' \ -A define:lddlflags='-bexpall -G -L/opt/freeware/lib' make #make test ( make -k check || true ) # build 64bit mode export OBJECT_MODE=64 cd 64bit export CC='/usr/bin/gcc -maix64' export LDFLAGS="-s -Wl,-bmaxdata:0x80000000 -L/opt/freeware/lib64 -L/u +sr/lib64 -L/opt/freeware/lib" ./Configure -desr -Doptimize="$RPM_OPT_FLAGS" \ -d \ -Dcc="$CC" -Dldflags="$LDFLAGS" \ -Dinstallprefix=$RPM_BUILD_ROOT%{_prefix} \ -Dprefix=%{_prefix} \ -Duselargefiles \ -Duseshrplib \ -Dusethreads \ -Duse64bitall \ -Darchname=%{_arch}-%{_os} \ -A define:ld='/usr/bin/gcc -maix64' \ -A define:ccdlflags='-brtl -bdynamic' \ -A define:lddlflags='-bexpall -G -L/opt/freeware/lib64 -L/usr +/lib64 -L/opt/freeware/lib' make
Is there any perl bugtracker where one can report this kind of errors? I dont know how to report compilation errors with perlbug.

In reply to 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.