On VMS the 6620 kit fails to build out of the box owing to a "missing"
return() from the brand new Perl_magic_regdatum_set() function in mg.c:
CC/DECC /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/Define=PERL
_CORE MG.C
int
^
%CC-W-MISSINGRETURN, Non-void function "Perl_magic_regdatum_set" does not contai
n a return statement.
at line number 382 in file DKB100:[PERL]MG.C;1
%MMS-F-ABORT, For target MG.OBJ, CLI returned abort status: %X10B91260.
And the VMS build stops dead there. Here by the way, is what is seen
on Tr64 Unix 4.0D:
`sh cflags libperl.so mg.o` mg.c
CCCMD = cc -DPERL_CORE -c -std -fprm d -ieee -D_INTRINSICS -I/usr/lo
cc: Warning: mg.c, line 382: Non-void function "Perl_magic_regdatum_set" does n.
int
^
But with that T64 compiler it is a warning that does not abort
the (GNU) make.
I see that Perl_magic_regdatum_set() was not in 6612, but that it is
now mentioned in proto.h (int prototype), embed.h, and perl.h in addition
to mg.c. If Perl_magic_regdatum_set() cannot be retyped to void then the
following bletcherous hack can enable the build to proceed with
DEC C V6.0-001 on OpenVMS Alpha V7.1:
--- mg.c.orig Mon Aug 14 07:36:27 2000
+++ mg.c Tue Aug 15 10:58:35 2000
@@ -384,6 +384,9 @@
{
dTHR;
Perl_croak(aTHX_ PL_no_modify);
+#ifdef VMS
+ return(0);
+#endif
}
U32
End of Hack.
Suggestions about a proper fix would be welcome.
With that patch `mms test` returns:
[.lib]cgi-html..........FAILED on test 9
[.lib]ftmp-mktemp.......FAILED on test 5
[.lib]ftmp-posix........FAILED on test 4
[.lib]ftmp-security.....ok
[.lib]ftmp-tempfile.....FAILED on test 4
[.pod]find..............FAILED on test 2
I'll see if I can address some of those later.
By the way on Tru64 I saw:
All tests successful.
u=0.7 s=1.11667 cu=98.7 cs=35.1 scripts=246 tests=11136
Peter Prymmer