This is a bug report for perl from win@in.rhein-main.de,
generated with the help of perlbug 1.14 running under perl 5.00313.
With the following patches, perl compiles and passes all tests on
Interactiv Unix Version 4.1. I tested with cc and with gcc.
p5p-msgid: <m0vbeNO-00003WC@incom.rhein-main.de>
ldflags="$ldflags -Xp"
;;
esac
+# fix some errors of libinet.a and compiler
+ccflags="$ccflags -D_SYS_ISC"
# You can also include -D_SYSV3 to pick up "traditionally visible"
# symbols hidden by name-space pollution rules. This raises some
if ((sv = svp[off]) &&
sv != &sv_undef &&
seq <= SvIVX(sv) &&
- seq > (I32)SvNVX(sv) &&
+ seq > I_32(SvNVX(sv)) &&
strEQ(SvPVX(sv), name))
{
I32 depth;
if ((sv = svp[off]) &&
sv != &sv_undef &&
seq <= SvIVX(sv) &&
- seq > (I32)SvNVX(sv) &&
+ seq > I_32(SvNVX(sv)) &&
strEQ(SvPVX(sv), name))
{
return (PADOFFSET)off;
# endif /* no flock() or fcntl(F_SETLK,...) */
# ifdef FLOCK
- static int FLOCK(int, int);
+ static int FLOCK _((int, int));
/*
* These are the flock() constants. Since this sytems doesn't have
goto nuts2;
break;
}
+#ifdef _SYS_ISC
+ /* Interactive Unix, getpeername() and getsockname()
+ does not return valid namelen */
+ if (aint == 256)
+ aint = sizeof(struct sockaddr);
+#endif
SvCUR_set(sv,aint);
*SvEND(sv) ='\0';
PUSHs(sv);
GV *gv;
SV *sv;
char *undef;
+#ifdef _SYS_ISC
+ double req = SvNV(ST(1));
+#endif
if(SvROK(ST(0))) {
sv = (SV*)SvRV(ST(0));
undef = "(undef)";
}
+#ifdef _SYS_ISC
+ /* needed for C compiler of Interactive Unix */
+ if(items > 1 && (undef || (req = SvNV(ST(1)) && req > SvNV(sv))))
+#else
if(items > 1 && (undef || SvNV(ST(1)) > SvNV(sv)))
+#endif
croak("%s version %s required--this is only version %s",
HvNAME(pkg),SvPV(ST(1),na),undef ? undef : SvPV(sv,na));