From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11c9f6,9490f1d836012184 X-Google-Attributes: gid11c9f6,public X-Google-Thread: 111c93,9490f1d836012184 X-Google-Attributes: gid111c93,public From: Tobias Klausmann Subject: Re: Problems with resource.h in 2.0.33 Date: 1998/04/23 Message-ID: <353EEAB9.41C6@ai-lab.fh-furtwangen.de>#1/1 X-Deja-AN: 346903536 Content-Transfer-Encoding: 7bit References: <6hl52o$79o@news.tuwien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: FH Furtwangen, AI4 Newsgroups: comp.os.linux.alpha,linuxx.redhat.axp Thomas Hollunder wrote: > > I finally managed to install 2.0.33 on our LX164 (RH4.2, > alpha-patches-2.0.32-0) > > But when using gcc version 2.7.2.1 to compile anything that uses > resource.h I get the following: > > In file included from /usr/include/sys/resource.h:27, > from mergemem.h:23, > from mergemem.c:23: [... deleted complaints of undefied limits ...] > > Does anybody have a clue what the problem could be? Yup. I had the very same (2.0.33/Redhat). resource.h includes /usr/include/asm/resource.h, where a bunch of system-specific Resource-Limits *should* be defined. Unfortunately, there are only the limits for the Kernel (as in __KERNEL_RLIMIT_CPU), I plainly copied the defs for the kernel, removed the __KERNEL_ prefix and voil`a. Maybe the compiler will then barf on a statement about RLIM_INFINITY somewhere else (a parse error IIRC). I just com- mented out that one. It worked (and still works) for me, but as usual, your mileage may vary. regards, Tobias -- ----------------------------------------------------------- -- klausman@ai-lab.fh-furtwangen.de http://home.pages.de/~bbird Public PGP-Key : finger -l klausman@zeus.ai-lab.fh-furtwangen.de PGP fingerprint: B1 6B 61 68 5A 07 77 A9 DF 39 8E 65 F9 A0 68 95