can't compile gradm
Posted: Sat Nov 30, 2002 5:04 pm
Hi, I can't compile gradm on redhat-7.3 with kernel-2.4.19 compiled with grsec. Kernel compilation went just fine, after I rebooted, downloaded gradm, ran 'make' and here is output:
[~/files/security/gradm]# make
/usr/bin/gcc -static -O2 -c -o gradm.tab.o gradm.tab.c
In file included from /usr/include/linux/elf.h:4,
from gradm.h:18,
from gradm.y:2:
/usr/include/linux/types.h:104: parse error before `__kernel_daddr_t'
/usr/include/linux/types.h:104: warning: no semicolon at end of struct or union
/usr/include/linux/types.h:105: warning: data definition has no type or storage class
/usr/include/linux/types.h:108: parse error before `}'
In file included from /usr/include/linux/vfs.h:4,
from /usr/include/linux/fs.h:14,
from /usr/include/linux/capability.h:17,
from gradm.h:19,
from gradm.y:2:
/usr/include/asm/statfs.h:20: parse error before `__kernel_fsid_t'
/usr/include/asm/statfs.h:20: warning: no semicolon at end of struct or union
/usr/include/asm/statfs.h:23: parse error before `}'
In file included from gradm.h:21,
from gradm.y:2:
gradm_defs.h:80: parse error before `__kernel_dev_t'
gradm_defs.h:80: warning: no semicolon at end of struct or union
gradm_defs.h:85: parse error before `}'
gradm_defs.h:88: parse error before `__kernel_dev_t'
gradm_defs.h:88: warning: no semicolon at end of struct or union
gradm_defs.h:95: parse error before `}'
gradm_defs.h:129: parse error before `__kernel_dev_t'
gradm_defs.h:129: warning: no semicolon at end of struct or union
gradm_defs.h:134: parse error before `}'
gradm_defs.h:147: parse error before `__kernel_dev_t'
gradm_defs.h:147: warning: no semicolon at end of struct or union
gradm_defs.h:165: conflicting types for `prev'
gradm_defs.h:132: previous declaration of `prev'
gradm_defs.h:166: conflicting types for `next'
gradm_defs.h:133: previous declaration of `next'
gradm_defs.h:167: parse error before `}'
gradm_defs.h:184: parse error before `__kernel_dev_t'
gradm_defs.h:184: warning: no semicolon at end of struct or union
gradm_defs.h:187: conflicting types for `mode'
gradm_defs.h:148: previous declaration of `mode'
gradm_defs.h:188: parse error before `}'
gradm_defs.h:297: parse error before `__kernel_dev_t'
gradm_defs.h:297: warning: no semicolon at end of struct or union
gradm_defs.h:300: conflicting types for `mode'
gradm_defs.h:187: previous declaration of `mode'
gradm_defs.h:302: parse error before `}'
In file included from gradm.h:22,
from gradm.y:2:
gradm_func.h:182: parse error before `subj_dev'
gradm_func.h:185: parse error before `subj_dev'
make: *** [gradm.tab.o] Error 1
Any ideas what it can be? I have compiled it without problems on other 3 machines running the same redhat-7.3..
[~/files/security/gradm]# make
/usr/bin/gcc -static -O2 -c -o gradm.tab.o gradm.tab.c
In file included from /usr/include/linux/elf.h:4,
from gradm.h:18,
from gradm.y:2:
/usr/include/linux/types.h:104: parse error before `__kernel_daddr_t'
/usr/include/linux/types.h:104: warning: no semicolon at end of struct or union
/usr/include/linux/types.h:105: warning: data definition has no type or storage class
/usr/include/linux/types.h:108: parse error before `}'
In file included from /usr/include/linux/vfs.h:4,
from /usr/include/linux/fs.h:14,
from /usr/include/linux/capability.h:17,
from gradm.h:19,
from gradm.y:2:
/usr/include/asm/statfs.h:20: parse error before `__kernel_fsid_t'
/usr/include/asm/statfs.h:20: warning: no semicolon at end of struct or union
/usr/include/asm/statfs.h:23: parse error before `}'
In file included from gradm.h:21,
from gradm.y:2:
gradm_defs.h:80: parse error before `__kernel_dev_t'
gradm_defs.h:80: warning: no semicolon at end of struct or union
gradm_defs.h:85: parse error before `}'
gradm_defs.h:88: parse error before `__kernel_dev_t'
gradm_defs.h:88: warning: no semicolon at end of struct or union
gradm_defs.h:95: parse error before `}'
gradm_defs.h:129: parse error before `__kernel_dev_t'
gradm_defs.h:129: warning: no semicolon at end of struct or union
gradm_defs.h:134: parse error before `}'
gradm_defs.h:147: parse error before `__kernel_dev_t'
gradm_defs.h:147: warning: no semicolon at end of struct or union
gradm_defs.h:165: conflicting types for `prev'
gradm_defs.h:132: previous declaration of `prev'
gradm_defs.h:166: conflicting types for `next'
gradm_defs.h:133: previous declaration of `next'
gradm_defs.h:167: parse error before `}'
gradm_defs.h:184: parse error before `__kernel_dev_t'
gradm_defs.h:184: warning: no semicolon at end of struct or union
gradm_defs.h:187: conflicting types for `mode'
gradm_defs.h:148: previous declaration of `mode'
gradm_defs.h:188: parse error before `}'
gradm_defs.h:297: parse error before `__kernel_dev_t'
gradm_defs.h:297: warning: no semicolon at end of struct or union
gradm_defs.h:300: conflicting types for `mode'
gradm_defs.h:187: previous declaration of `mode'
gradm_defs.h:302: parse error before `}'
In file included from gradm.h:22,
from gradm.y:2:
gradm_func.h:182: parse error before `subj_dev'
gradm_func.h:185: parse error before `subj_dev'
make: *** [gradm.tab.o] Error 1
Any ideas what it can be? I have compiled it without problems on other 3 machines running the same redhat-7.3..