can't compile gradm

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

can't compile gradm

Postby miha » 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..
miha
 
Posts: 28
Joined: Sat Nov 30, 2002 9:09 am

Postby miha » Sat Nov 30, 2002 5:08 pm

also when updated system with running kernel 2.4.19-grsec:

Retrieving gcc-2.96-113.i386.rpm
Preparing... ##################################################
gcc #################################################error: unpacking of archive failed on file /usr/bin/gcc: cpio: rename failed - Operation not permitted
Downloading gcc-c++-2.96-113.i386.rpm
Retrieving gcc-c++-2.96-113.i386.rpm
Preparing... ##################################################
gcc-c++ #################################################error: unpacking of archive failed on file /usr/bin/c++: cpio: rename failed - Operation not permitted
miha
 
Posts: 28
Joined: Sat Nov 30, 2002 9:09 am

Postby miha » Sat Nov 30, 2002 5:26 pm

ok, forget about the previous message about installing gcc and g++, it was my fault, I set chattr -i on /usr/bin/gcc and everything went fine. But still can't get compile gradm. please help
miha
 
Posts: 28
Joined: Sat Nov 30, 2002 9:09 am

Postby miha » Sat Nov 30, 2002 5:38 pm

Got it!
I have reinstalled glibc-kernheaders and it went fine! 8) got it compiled :lol:
miha
 
Posts: 28
Joined: Sat Nov 30, 2002 9:09 am


Return to grsecurity support

cron