From: Aaron M. Gowatch <aarong@jart.linuxdot.com>
Subject: Re: compiling mpg123
Date: Mon, 08 Dec 1997 10:47:50 -0800 [thread overview]
Message-ID: <199712081847.KAA00573@jart.linuxdot.com> (raw)
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,
<asm/resource.h> 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 <resourcebits.h> 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 <resourcebits.h> 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
next reply other threads:[~1997-12-08 18:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-08 18:47 Aaron M. Gowatch [this message]
[not found] <Pine.LNX.3.96.971208120120.4831A-100000@wopr.campus.luth.se>
1997-12-08 17:18 ` compiling mpg123 Murray Stokely
[not found] <348BE380.102A@warped.xs4all.nl>
1997-12-08 12:13 ` Andreas Johansson
[not found] <Pine.BSF.3.96.971207180115.22994C-100000@pooh.cdrom.com>
1997-12-08 11:02 ` Andreas Johansson
-- strict thread matches above, loose matches on Subject: below --
1997-12-08 2:01 Murray Stokely
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox