Page 1 of 1
gradm doesnt compile
Posted:
Sat Sep 07, 2002 10:11 pm
by decoder
when I try to compile gradm 1.4 then I get:
gradm_res.c:14: `RLIMIT_LOCKS' undeclared here (not in a function)
gradm_res.c:14: initializer element is not constant
gradm_res.c:14: (near initialization for `rlim_table[10].val')
gradm_res.c:15: `RLIMIT_LOCKS' undeclared here (not in a function)
gradm_res.c:15: initializer element is not constant
gradm_res.c:15: (near initialization for `rlim_table[11].val')
make: *** [gradm_res.o] Error 1
Kernel is 2.4.19-grsec 1.9.6
thnx
decoder
Posted:
Sun Sep 08, 2002 9:15 pm
by spender
you must need to upgrade your glibc. RLIMIT_LOCKS is supported by the kernel, and should be available in asm/resource.h
-Brad
already thought something like that but
Posted:
Mon Sep 09, 2002 8:47 am
by decoder
i wasnt able to upgrade my glibc when i tried. it even screwed my system. glibc 2.2.5 gave me a compiler error and when i fixed it, make install didnt work at some point. i cant install it. os is trustix linux
Posted:
Mon Sep 09, 2002 11:02 am
by spender
paste the contents of your /usr/include/asm/resource.h file
-Brad
Here is the content of resource.h
Posted:
Mon Sep 09, 2002 11:23 am
by decoder
#ifndef _I386_RESOURCE_H
#define _I386_RESOURCE_H
/*
* Resource limits
*/
#define RLIMIT_CPU 0 /* CPU time in ms */
#define RLIMIT_FSIZE 1 /* Maximum filesize */
#define RLIMIT_DATA 2 /* max data size */
#define RLIMIT_STACK 3 /* max stack size */
#define RLIMIT_CORE 4 /* max core file size */
#define RLIMIT_RSS 5 /* max resident set size */
#define RLIMIT_NPROC 6 /* max number of processes */
#define RLIMIT_NOFILE 7 /* max number of open files */
#define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */
#define RLIMIT_AS 9 /* address space limit */
#define RLIMIT_LOCKS 10 /* maximum file locks held */
#define RLIM_NLIMITS 11
/*
* SuS says limits have to be unsigned.
* Which makes a ton more sense anyway.
*/
#define RLIM_INFINITY (~0UL)
#ifdef __KERNEL__
#define INIT_RLIMITS \
{ \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ _STK_LIM, RLIM_INFINITY }, \
{ 0, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ 0, 0 }, \
{ INR_OPEN, INR_OPEN }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
}
#endif /* __KERNEL__ */
#endif
Posted:
Mon Sep 09, 2002 1:03 pm
by spender
strange...try the current cvs version and see if that works.
cvs -d :pserver:anonymous@grsecurity.net:/home/cvs login
enter "anonymous" as password
cvs -d :pserver:anonymous@grsecurity.net:/home/cvs co gradm
-Brad
Posted:
Mon Sep 09, 2002 1:04 pm
by spender
i should also say that you should be using the current cvs of grsecurity if you use the current cvs of gradm, but i just want to see if it will compile.
-Brad
Posted:
Mon Sep 09, 2002 1:48 pm
by decoder
im sorry but on this server, there is no cvs client atm, and i cannot compile things either because of the glibc problem. the incomplete installation damaged my system, some binaries like perl or df dont work anymore and give me the error
root@HAL9000 /lib# perl
perl: ../iconv/skeleton.c:302: gconv: Assertion `outbufstart == ((void *)0)' failed.
Aborted
root@HAL9000 /lib#
i need to fix this first, although i have no idea how, because not even the installation of the old precompiled glibc solves the problem. nobody i asked was able to help me with that problem yet.