Subject: | Compile error with SUN Forte C compiler |
Compiling the Module on a SUN Sparc (Solaris 2.8) using the perl installation bundled with OS (This is perl, version 5.005_03 built for sun4-solaris) and SUN Forte 7 C/C++ (Forte Developer 7 C 5.4 2002/03/09) compiler results in following error.
bash-2.03# make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Net
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Net
mkdir blib/arch/auto/Net/NIS
mkdir blib/lib/auto
mkdir blib/lib/auto/Net
mkdir blib/lib/auto/Net/NIS
mkdir blib/man3
cp NIS.pod blib/lib/Net/NIS.pod
cp NISTable.pod blib/lib/Net/NISTable.pod
cp NIS/Table.pm blib/lib/Net/NIS/Table.pm
cp NIS.pm blib/lib/Net/NIS.pm
AutoSplitting blib/lib/Net/NIS.pm (blib/lib/auto/Net/NIS)
/usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 /usr/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/perl5/5.00503/ExtUtils/typemap NIS.xs >xstmp.c && mv xstmp.c NIS.c
Please specify prototyping behavior for NIS.xs (see perlxs manual)
cc -c -xO3 -xdepend -DVERSION=\"0.34\" -DXS_VERSION=\"0.34\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE NIS.c
"NIS.xs", line 246: too many struct/union initializers
"NIS.xs", line 247: too many struct/union initializers
cc: acomp failed for NIS.c
*** Error code 2
make: Fatal error: Command failed for target `NIS.o'