public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Read Hat 7.3 and 8.0 compilation problems
  2003-03-17 12:47 Read Hat 7.3 and 8.0 compilation problems chandrasekhar.nagaraj
@ 2003-03-17 12:29 ` Arjan van de Ven
  2003-03-18 20:39   ` Olaf Hering
  2003-03-17 12:32 ` Heinz Ulrich Stille
       [not found] ` <mailman.1047904680.20757.linux-kernel2news@redhat.com>
  2 siblings, 1 reply; 7+ messages in thread
From: Arjan van de Ven @ 2003-03-17 12:29 UTC (permalink / raw)
  To: chandrasekhar.nagaraj; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

On Mon, 2003-03-17 at 13:47, chandrasekhar.nagaraj wrote:
> Hello,
> 
> We have a driver which was originally bulit on Red Hat 7.2 version.Now we
> are compiling the same driver on Red Hat 7.3 and 8.0
> While compiling we are facing the following problems.
> Compilation output :-
> The following files are missing
> /usr/include/asm/msr.h
> /usr/include/asm/fixmap.h
> /usr/include/asm/uaccess.h
> /usr/include/asm/hardirq.h

why are you using glibc headers to compile KERNEL modules ?

> 
> But if we compile the driver using the include souces
> /usr/src/linux-2.4/include we do not get any compilation errors.

the "standardized between all distros and Linus" place to get headers is
/lib/modules/`uname -r`/build/include
I would suggest you use that.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Read Hat 7.3 and 8.0 compilation problems
  2003-03-17 12:47 Read Hat 7.3 and 8.0 compilation problems chandrasekhar.nagaraj
  2003-03-17 12:29 ` Arjan van de Ven
@ 2003-03-17 12:32 ` Heinz Ulrich Stille
  2003-03-17 13:46   ` Dave Jones
       [not found] ` <mailman.1047904680.20757.linux-kernel2news@redhat.com>
  2 siblings, 1 reply; 7+ messages in thread
From: Heinz Ulrich Stille @ 2003-03-17 12:32 UTC (permalink / raw)
  To: linux-kernel

On Monday 17 March 2003 13:47, chandrasekhar.nagaraj wrote:
> are compiling the same driver on Red Hat 7.3 and 8.0
> While compiling we are facing the following problems.
> Compilation output :-
> The following files are missing
> /usr/include/asm/msr.h

Are you using the stock rh kernel sources? Did you install the
glibc-kernheaders RPM? This contains severe RedHat braindamage:
/usr/include/{asm,linux} aren't links into the kernel source tree,
but directly installed. Remove the rpm and create the soft links
to /usr/src/linux.

MfG, Ulrich

-- 
Heinz Ulrich Stille / Tel.: +49-541-9400463 / Fax: +49-541-9400450
design_d gmbh / Lortzingstr. 2 / 49074 Osnabrück / www.design-d.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Read Hat 7.3 and 8.0 compilation problems
@ 2003-03-17 12:47 chandrasekhar.nagaraj
  2003-03-17 12:29 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: chandrasekhar.nagaraj @ 2003-03-17 12:47 UTC (permalink / raw)
  To: linux-kernel

Hello,

We have a driver which was originally bulit on Red Hat 7.2 version.Now we
are compiling the same driver on Red Hat 7.3 and 8.0
While compiling we are facing the following problems.
Compilation output :-
The following files are missing
/usr/include/asm/msr.h
/usr/include/asm/fixmap.h
/usr/include/asm/uaccess.h
/usr/include/asm/hardirq.h

But if we compile the driver using the include souces
/usr/src/linux-2.4/include we do not get any compilation errors.
Also our driver when compiled on Red Hat 7.2 does not give any compilation
problems.

Pls help.

Thanks and Regards
Chandrasekhar


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Read Hat 7.3 and 8.0 compilation problems
  2003-03-17 12:32 ` Heinz Ulrich Stille
@ 2003-03-17 13:46   ` Dave Jones
  2003-03-17 13:51     ` John Bradford
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2003-03-17 13:46 UTC (permalink / raw)
  To: Heinz Ulrich Stille; +Cc: linux-kernel

On Mon, Mar 17, 2003 at 01:32:33PM +0100, Heinz Ulrich Stille wrote:

 > Are you using the stock rh kernel sources? Did you install the
 > glibc-kernheaders RPM? This contains severe RedHat braindamage:
 > /usr/include/{asm,linux} aren't links into the kernel source tree,
 > but directly installed. Remove the rpm and create the soft links
 > to /usr/src/linux.

You have this completely backwards. /usr/include/{asm,linux} are
the headers from the kernel that the glibc was compiled against.
They should NOT never ever be symlinks to anywhere, but glibc's
own copies of the headers.

This is not 'RedHat braindamage', it's the way things should be.
Making them symlinks is the only braindamage here.

		Dave


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Read Hat 7.3 and 8.0 compilation problems
  2003-03-17 13:46   ` Dave Jones
@ 2003-03-17 13:51     ` John Bradford
  0 siblings, 0 replies; 7+ messages in thread
From: John Bradford @ 2003-03-17 13:51 UTC (permalink / raw)
  To: Dave Jones; +Cc: hus, linux-kernel

>  > Are you using the stock rh kernel sources? Did you install the
>  > glibc-kernheaders RPM? This contains severe RedHat braindamage:
>  > /usr/include/{asm,linux} aren't links into the kernel source tree,
>  > but directly installed. Remove the rpm and create the soft links
>  > to /usr/src/linux.
> 
> You have this completely backwards. /usr/include/{asm,linux} are
> the headers from the kernel that the glibc was compiled against.
> They should NOT never ever be symlinks to anywhere, but glibc's
> own copies of the headers.

Personally, I prefer:

/usr/local/-architecture-/include/sys-include/asm-architecture
/usr/local/-architecture-/include/sys-include/linux

If you install a lot of cross compilers, you might find that that
layout is the most logical.

> This is not 'RedHat braindamage', it's the way things should be.
> Making them symlinks is the only braindamage here.

Not sure if RedHat does this or not, but something that I would always
recommend is avoided, is assuming that /usr/src/linux is a symbolic
link to the current kernel source code.

John.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Read Hat 7.3 and 8.0 compilation problems
       [not found] ` <mailman.1047904680.20757.linux-kernel2news@redhat.com>
@ 2003-03-17 20:00   ` Pete Zaitcev
  0 siblings, 0 replies; 7+ messages in thread
From: Pete Zaitcev @ 2003-03-17 20:00 UTC (permalink / raw)
  To: Heinz Ulrich Stille; +Cc: linux-kernel

> Are you using the stock rh kernel sources? Did you install the
> glibc-kernheaders RPM? This contains severe RedHat braindamage:
> /usr/include/{asm,linux} aren't links into the kernel source tree,
> but directly installed. Remove the rpm and create the soft links
> to /usr/src/linux.
> 
> MfG, Ulrich

I resent this. It was explained 1000 times before
that /usr/include/{asm,linux} belong to glibc, not kernel.
Replacing these links with pointers to an updated kernel
will produce applications which mismatch the installed glibc,
and then mysteriously fail to work. Heinz-Ulrich can call names
all he wants, but the truth does not change.

-- Pete

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Read Hat 7.3 and 8.0 compilation problems
  2003-03-17 12:29 ` Arjan van de Ven
@ 2003-03-18 20:39   ` Olaf Hering
  0 siblings, 0 replies; 7+ messages in thread
From: Olaf Hering @ 2003-03-18 20:39 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: chandrasekhar.nagaraj, linux-kernel

 On Mon, Mar 17, Arjan van de Ven wrote:

> > But if we compile the driver using the include souces
> > /usr/src/linux-2.4/include we do not get any compilation errors.
> 
> the "standardized between all distros and Linus" place to get headers is
> /lib/modules/`uname -r`/build/include

What moron declared that as 'standard'?
uname -r is as reliable as /etc/mtab


-- 
USB is for mice, FireWire is for men!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-03-18 20:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 12:47 Read Hat 7.3 and 8.0 compilation problems chandrasekhar.nagaraj
2003-03-17 12:29 ` Arjan van de Ven
2003-03-18 20:39   ` Olaf Hering
2003-03-17 12:32 ` Heinz Ulrich Stille
2003-03-17 13:46   ` Dave Jones
2003-03-17 13:51     ` John Bradford
     [not found] ` <mailman.1047904680.20757.linux-kernel2news@redhat.com>
2003-03-17 20:00   ` Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox