Subject: | AIX compiler aborts with "Clone.xs", line 139.3: 1506-275 (S) Unexpected text 'int' encountered. |
I upgraded from Clone 0.34 to 0.35 and now our AIX builds (with perl-5.18) fails with:
>>> cd Clone && /tmp/perl/bin/perl Makefile.PL INSTALLDIRS=perl Checking if your kit is complete... Looks good Writing Makefile for Clone Writing MYMETA.yml and MYMETA.json >>> cd Clone && make POD2HTML='$(NOOP)' cp Clone.pm blib/lib/Clone.pm AutoSplitting blib/lib/Clone.pm (blib/lib/auto/Clone) /tmp/perl/bin/perl -e 'use ExtUtils::Mksymlists; \ Mksymlists("NAME" => "Clone", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);' /tmp/perl/bin/perl /tmp/perl/lib/ExtUtils/xsubpp -typemap /tmp/perl/lib/ExtUtils/typemap Clone.xs > Clone.xsc && mv Clone.xsc Clone.c cc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O3 -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" "-I/tmp/perl/lib/CORE" Clone.c 1506-173 (W) Option langlvl=extc99 is not valid. Enter xlc for list of valid options. "Clone.xs", line 139.3: 1506-275 (S) Unexpected text 'int' encountered. "Clone.xs", line 139.7: 1506-045 (S) Undeclared identifier magic_ref. make: *** [Clone.o] Error 1 Command exits with 2: cd Clone && make POD2HTML='$(NOOP)' stopped at /home/gecko/lib/ActivePerl/Build/Build.pm line 912 I think this compiler isn't happy with variable declarations after regular statements has been encountered.