public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Migrating 2.4.x to 2.6.x Question (include files)
@ 2004-01-14 10:00 Kianusch Sayah Karadji
  2004-01-14 18:31 ` Erik Mouw
  0 siblings, 1 reply; 2+ messages in thread
From: Kianusch Sayah Karadji @ 2004-01-14 10:00 UTC (permalink / raw)
  To: linux-kernel

Hi!

I'm trying to install kernel 2.6.1 on a freshly installed Debian woody.

Well I got it working but ...

On 2.4.x I used to (soft) link

  /usr/src/linux-2.4.x/include/linux to /usr/include/linux

and

  /usr/src/linux-2.4.x/include/asm to /usr/include/asm

Well on 2.6.x .../include/linux is there, but .../include/asm is not.

I tried to link .../include/asm-i386 to .../include/asm (I've got an Intel
PC) ... but this doesn't let start the configuration run
(oldconfig/menuconfig).  Also some userlevel programms don't compile
correctly. - It seems that 2.6.x depends on the links in /usr/include ...

What I did now was to use my "old" asm (from 2.4.x) include directory

  ln -s /usr/src/linux-2.4.x/include/asm /usr/include/

and the "new" linux (from 2.6.x) include directory

  ln -s /usr/src/linux-2.6.x/include/linux /usr/include/

Which is probably not the correct way :( - What am I missing?

Help!

Thanx/Regards
  K. Sayah Karadji

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

* Re: Migrating 2.4.x to 2.6.x Question (include files)
  2004-01-14 10:00 Migrating 2.4.x to 2.6.x Question (include files) Kianusch Sayah Karadji
@ 2004-01-14 18:31 ` Erik Mouw
  0 siblings, 0 replies; 2+ messages in thread
From: Erik Mouw @ 2004-01-14 18:31 UTC (permalink / raw)
  To: Kianusch Sayah Karadji; +Cc: linux-kernel

On Wed, Jan 14, 2004 at 11:00:00AM +0100, Kianusch Sayah Karadji wrote:
> I'm trying to install kernel 2.6.1 on a freshly installed Debian woody.
> 
> Well I got it working but ...
> 
> On 2.4.x I used to (soft) link
> 
>   /usr/src/linux-2.4.x/include/linux to /usr/include/linux

[...]

> Which is probably not the correct way :( - What am I missing?

None of them. You shouldn't link the kernel headers at all. See:

  http://www.kernelnewbies.org/faq/index.php3#headers

Debian has been doing it the right way for quite some time.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
| Data lost? Stay calm and contact Harddisk-recovery.com

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

end of thread, other threads:[~2004-01-14 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-14 10:00 Migrating 2.4.x to 2.6.x Question (include files) Kianusch Sayah Karadji
2004-01-14 18:31 ` Erik Mouw

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