Skip Menu |

This queue is for tickets about the Net-NIS CPAN distribution.

Report information
The Basics
Id: 6162
Status: open
Worked: 5 min
Priority: 0/
Queue: Net-NIS

People
Owner: cpanrt [...] edsantiago.com
Requestors: manfred.metz [...] rsd.rohde-schwarz.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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'
From: Lupe Christoph
[guest - Thu Apr 29 03:14:32 2004]: Show quoted text
> 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.
Show quoted text
> "NIS.xs", line 246: too many struct/union initializers > "NIS.xs", line 247: too many struct/union initializers
This is a backwards incompatibilty, the struct has grown since 5.005_03. Since struct initializers fill all unmentioned elements with zeroes anyway, removing the trailing NULLs makes NIS.xs backwards compatible. --- NIS.xs.orig Wed Mar 19 14:55:20 2003 +++ NIS.xs Mon Dec 20 11:26:42 2004 @@ -243,7 +243,7 @@ } MGVTBL yp_status_accessors = { - yp_status_get, yp_status_set, NULL, NULL, NULL, NULL, NULL + yp_status_get, yp_status_set, }; HTH, Lupe Christoph
Thanks, that helps. Patch applied and mildly tested. Need to wrap up a few more things, and will hope to release before end of year.