From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199712081847.KAA00573@jart.linuxdot.com> Date: Mon, 08 Dec 1997 10:47:50 -0800 From: Aaron M. Gowatch Subject: Re: compiling mpg123 Your message dated: Mon, 08 Dec 1997 09:18:46 PST > I still get errors when trying to compile. How do I get rid of these > RLIMIT complaints? > > [disco] /usr/local/src/mpg123-0.59k: make linux-alpha > make CC=gcc LDFLAGS= \ > OBJECTS='decode_i386.o dct64_i386.o' \ > CFLAGS='-DREAL_IS_FLOAT -DLINUX -Wall -O2 \ > -funroll-all-loops \ > -finline-functions -ffast-math' \ > mpg123 > make[1]: Entering directory `/usr/local/src/mpg123-0.59k' > gcc -DREAL_IS_FLOAT -DLINUX -Wall -O2 -funroll-all-loops > -finline-functions -ffast-math -c mpg123.c -o mpg123.o > In file included from /usr/include/sys/resource.h:27, > from mpg123.c:13: > /usr/include/resourcebits.h:31: `RLIMIT_CPU' undeclared here (not in a > function) > /usr/include/resourcebits.h:31: enumerator value for `_RLIMIT_CPU' not > integer constant > /usr/include/resourcebits.h:37: `RLIMIT_FSIZE' undeclared here (not in > a function) > /usr/include/resourcebits.h:37: enumerator value for `_RLIMIT_FSIZE' > not integer constant > /usr/include/resourcebits.h:43: `RLIMIT_DATA' undeclared here (not in > a function) > /usr/include/resourcebits.h:43: enumerator value for `_RLIMIT_DATA' > not integer On my machine, which runs 2.0.32 with the latest axp-diffs from Jay Eastbrook, no longer defines RLIMIT_CPU, RLIMIT_FSIZE, etc. as it does under i386. Instead, it defines __KERNEL_RLIMIT_CPU, __KERNEL_RLIMIT_FSIZE, etc. It seemed logical to modify to use the __KERNEL definitions instead. This may or may not be the right thing to do, but I havent had any problems since. You can find my modified glibc-2.0.5c at ftp://ftp.linuxdot.com/pub/patches/glibc/glibc-2.0.5c-resource.h Aa. -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com