develooper Front page | perl.perl5.porters | Postings from September 2017

[perl #132178] Perl 5.24.0: AIX compile error

Thread Previous
From:
Tremel Christian
Date:
September 28, 2017 18:03
Subject:
[perl #132178] Perl 5.24.0: AIX compile error
Message ID:
rt-4.0.24-2832-1506602673-1778.132178-75-0@perl.org
# New Ticket Created by  Tremel Christian 
# Please include the string:  [perl #132178]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132178 >


i am in the process of doing a gcc build of Perl 5.24.0, 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.

[download]<http://www.perlmonks.org/?node_id=1200254;displaytype=displaycode;part=1;abspart=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'


________________________________­­­
Christian Tremel
IT-Services der Sozialversicherung GmbH

Rechenzentrum
AIX Systemadministrator
Gruberstraße 77
A - 4021 Linz
T: +43 (0)50124 844 1266
M: +43 (0)664 88661266
christian.tremel@itsv.at<mailto:christian.tremel@itsv.at>
www.itsv.at<http://www.itsv.at>

[https://plattform.sozvers.at/Lists/Schlagzeilen/Attachments/493/CIS-Logo-Signatur.png]



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About