> > > cc-1241 cc: ERROR File = ../../mli_ipl.c, Line = 513
> > > A declaration cannot appear after an executable statement in a block.
> > >
> > > extern int ipfilterflag;
> That's easy enough fixed...
(1)
The same error occurs in the compiliation of fil.c in ipf40a24:
cc-1241 cc: ERROR File = ../../fil.c, Line = 1668
A declaration cannot appear after an executable statement in a block.
char hbuf[MAX_IPV4HDR];
(2)
The autoconfig command fails due to the error as shown below if
ipf40a24 is built on IRIX64 6.5.17f.
# /etc/autoconfig -v
...
/var/sysgen/boot/ipfilter.o newer than /unix...
Automatically reconfiguring the operating system.
lboot:ERROR:Driver ipfilter missing 'devflag'
mli_ipl.c:
/* unsigned ipldevflag = D_MP; */
unsigned IPL_EXTERN(devflag) = D_MP;
# /etc/autoconfig -v
...
/var/sysgen/boot/ipfilter.o newer than /unix...
Automatically reconfiguring the operating system.
...
ld: ERROR 33 : Undefined text symbol "ipfilter_kernel" -- 1st referenced by
bsd.a(ip_input.o).
ld: ERROR 33 : Undefined text symbol "ipoolioctl" -- 1st referenced by ipfilter.o.
ld: ERROR 33 : Undefined text symbol "MD5Init" -- 1st referenced by ipfilter.o.
ld: ERROR 33 : Undefined text symbol "MD5Update" -- 1st referenced by ipfilter.o.
ld: ERROR 33 : Undefined text symbol "MD5Final" -- 1st referenced by ipfilter.o.
ld: ERROR 33 : Undefined data symbol "ipf_timeoutlock" -- 1st referenced by
ipfilter.o.
ld: INFO 152: Output file removed because of error.
lboot: ld returned 512--failed
Addtional fixes are needed to run ipf40 on IRIX 6.5.
-- ayamura