Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Terry L. Ridder <terrylr@edgar.blauedonau.com>
Subject: I remember this problem now ( was Re: resourcebits.h problem )
Date: Sat, 29 Mar 1997 21:00:16 -0600 (CST)	[thread overview]
Message-ID: <3ec0b7c82745ed737d1482e975bd57cc.axp-list@archive.invalid> (raw)
In-Reply-To: <199703300124.UAA31211@www.webdevelop.com>

On Sat, 29 Mar 1997, Steven Kokinos wrote:

<snip>

I remember this problem.

For some reason the asm-alpha/resource.h file is different from 
all the other resource.h files.

If you look at the following files you will see what I mean.
/usr/src/linux/include/asm-i386/resource.h
/usr/src/linux/include/asm-mips/resource.h
/usr/src/linux/include/asm-alpha/resource.h <--- different from the others.
/usr/src/linux/include/asm-m68k/resource.h
/usr/src/linux/include/asm-ppc/resource.h

Now look at /usr/include/features.h at the line
     77 #undef  __KERNEL_STRICT_NAMES
     78
     79 /* Suppress kernel-name space pollution unless user expressedly asks
     80    for it.  */
     81 #ifndef _LOOSE_KERNEL_NAMES
     82 # define __KERNEL_STRICT_NAMES
     83 #endif

Now look at /usr/include/linux/resource.h

     63 #ifndef __KERNEL_STRICT_NAMES
     64 # define RLIMIT_CPU     __KERNEL_RLIMIT_CPU
     65 # define RLIMIT_FSIZE   __KERNEL_RLIMIT_FSIZE
     66 # define RLIMIT_DATA    __KERNEL_RLIMIT_DATA
     67 # define RLIMIT_STACK   __KERNEL_RLIMIT_STACK
     68 # define RLIMIT_CORE    __KERNEL_RLIMIT_CORE
     69 # define RLIMIT_RSS     __KERNEL_RLIMIT_RSS
     70 # define RLIMIT_NOFILE  __KERNEL_RLIMIT_NOFILE
     71 # define RLIMIT_AS      __KERNEL_RLIMIT_AS
     72 # define RLIMIT_NPROC   __KERNEL_RLIMIT_NPROC
     73 # define RLIMIT_MEMLOCK __KERNEL_RLIMIT_MEMLOCK
     74
     75 # define RLIM_NLIMITS   __KERNEL_RLIM_NLIMITS
     76
     77 # define RLIM_INFINITY  __KERNEL_RLIM_INFINITY
     78
     79 # define RUSAGE_SELF    __KERNEL_RUSAGE_SELF
     80 # define RUSAGE_CHILDREN __KERNEL_RUSAGE_CHILDREN
     81 # define RUSAGE_BOTH    __KERNEL_RUSAGE_BOTH
     82
     83 # define PRIO_MIN       __KERNEL_PRIO_MIN
     84 # define PRIO_MAX       __KERNEL_PRIO_MAX
     85
     86 # define PRIO_PROCESS   __KERNEL_PRIO_PROCESS
     87 # define PRIO_PGRP      __KERNEL_PRIO_PGRP
     88 # define PRIO_USER      __KERNEL_PRIO_USER
     89 #endif /* __KERNEL_STRICT_NAMES */

There are three solutions:

1. Edit all the source files to use the Alpha definitions instead of the 'normal'
definitions.

2. Edit /usr/include/features.h and make sure that KERNEL_STRICT_NAMES is undef'd.
instead of:
     77 #undef  __KERNEL_STRICT_NAMES
     78
     79 /* Suppress kernel-name space pollution unless user expressedly asks
     80    for it.  */
     81 #ifndef _LOOSE_KERNEL_NAMES
     82 # define __KERNEL_STRICT_NAMES
     83 #endif

have

     77 #undef  __KERNEL_STRICT_NAMES
     78
     79 /* Suppress kernel-name space pollution unless user expressedly asks
     80    for it.  */
     81 #ifndef _LOOSE_KERNEL_NAMES
     82 # undef __KERNEL_STRICT_NAMES  <--- NOTICE THE CHANGE HERE
     83 #endif

3. Somewhere after where '#include <features.h>' is in the source files
add the following line:

'#undef __KERNEL_STRICT_NAMES'

I guess a question would be "Why is the Alpha /usr/src/linux/include/asm-alpha/resource.h file
different from all the other asm resource.h files?"

> 
> It seems that although the file is there, it is having some sort of 
> problem.  I checked it, and did a diff with the same file from the new 
> glibc distribution and it is ok.
> 
> -Steve
> 
> 
> --
> Steven Kokinos - Web Developers Network - http://www.webdevelop.com/
> steve@webdevelop.com - 60 Day free trial for developers!
> Industry leading development environment, multiple T1 network.
> 
> 

Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

"And every hour of every day I'm learning more
the more I learn, the less I know about before
the less I know, the more I want to look around
digging deep for clues on higher ground."
==Higher Ground== UB40

--
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

  parent reply	other threads:[~1997-03-30  3:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-30  0:36 resourcebits.h problem Steven Kokinos
1997-03-29 16:31 ` Al Potter
1997-03-30  3:00 ` Terry L. Ridder [this message]
1997-03-30  5:26 ` Michal Jaegermann
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