I'm trying to build Ipfilter 3.4.28 on an Irix 6.5 system

        harley:72% uname -a
        IRIX64 harley 6.5 10120105 IP30

with the MIPS 7.30 compiler

        harley:73% cc -version
        MIPSpro Compilers: Version 7.30

according to the instructions in 'INSTALL.IRIX'.  The first try gives
errors in the compilation of 'kmem.c'

        cc-1075 cc: ERROR File = ../../kmem.c, Line = 80
          The operand of the indirection operator ("*") must be a pointer.
        
                if (lseek(*kvm, pos, 0) == -1) {
                           ^
        
        cc-1075 cc: ERROR File = ../../kmem.c, Line = 87
          The operand of the indirection operator ("*") must be a pointer.
        
                        r = read(*kvm, bufp, 1);
                                  ^
        
        cc-1515 cc: ERROR File = ../../kmem.c, Line = 100
          A value of type "kvm_t" cannot be assigned to an entity of type "kvm_t *".
        
                kvm_f = kvm_open(kern, core, NULL, O_RDONLY, "");
                      ^
        
So I made the obvious changes to 'kmem.c'

        harley:75% diff kmem.c kmem.c.orig
        80c80
        <       if (lseek(kvm, pos, 0) == -1) {
        ---
        >       if (lseek(*kvm, pos, 0) == -1) {
        87c87
        <               r = read(kvm, bufp, 1);
        ---
        >               r = read(*kvm, bufp, 1);
        95c95
        < static        kvm_t   kvm_f = NULL;
        ---
        > static        kvm_t   *kvm_f = NULL;

and tried again.  This time I got errors from 'ml_ipl.c':

        cc-1143 cc: ERROR File = /usr/include/sys/signal.h, Line = 281
          Declaration is incompatible with "void signal(pid_t, int)" (declared at line
                  316 of "/usr/include/sys/systm.h").
        
          extern __sigret_t     (*signal(int,__sigret_t (*)(__sigargs)))(__sigargs);
                                  ^
        
        cc-1143 cc: ERROR File = /usr/include/time.h, Line = 124
          Declaration is incompatible with "time_t time" (declared at line 59 of
                  "/usr/include/sys/systm.h").
        
          extern time_t time(time_t *);
                        ^
        
        cc-1020 cc: ERROR File = ../../mli_ipl.c, Line = 284
          The identifier "ifnet" is undefined.
        
                for (ifp = ifnet; ifp; ifp = ifp->if_next) {
                           ^
        cc-1020 cc: ERROR File = ../../mli_ipl.c, Line = 386
          The identifier "ifnet" is undefined.
        
                        for (ifp = ifnet; ifp; ifp = ifp->if_next)
                                   ^
        
        cc-1020 cc: ERROR File = ../../mli_ipl.c, Line = 442
          The identifier "ifnet" is undefined.
        
                        for (ifp = ifnet; ifp; ifp = ifp->if_next)
                                   ^
        
        cc-1020 cc: ERROR File = ../../mli_ipl.c, Line = 456
          The identifier "ifnet" is undefined.
        
                        for (ifp = ifnet; ifp; ifp = ifp->if_next)
                                   ^
        cc-1020 cc: ERROR File = ../../mli_ipl.c, Line = 572
          The identifier "KM_NOSLEEP" is undefined.
        
                ipfi_mutex.l = LOCK_ALLOC((uchar_t)-1, IPF_LOCK_PL, (lkinfo_t *)-1, 
KM_N
        OSLEEP);
                 
        
Am I missing a pre-prcessor flag somewhere?

I'd be grateful for any assistance.

David S.
[EMAIL PROTECTED]

Reply via email to