You are not logged in.

#1 2008-12-29 04:43:53

turingcat
Member
Registered: 2008-08-14
Posts: 18

missing files in include ?[kernel 2.26.28]

after i use the testing repo and install the new kernel 2.26.28-1,i found some .h files missed at /usr/src/linux-2.6.28-ARCH/include/asm,only has one file named asm-offsets.h.that cause many mistakes when i code a  module program.anyone knows what is wrong?thanks!

Offline

#2 2008-12-29 05:00:56

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: missing files in include ?[kernel 2.26.28]

Are the files in /usr/src/linux-2.6.28-ARCH/include/asm-generic what you're looking for?

Offline

#3 2008-12-29 07:41:23

attila
Member
Registered: 2006-11-14
Posts: 293

Re: missing files in include ?[kernel 2.26.28]

@turingcat Nice question because the content of the directory differs a lot between the 2.6.27 and the 2.6.28 kernel. It seems that the kernel devs rearrange it. Take your preferred search machine and search for: kernel "2.6.28" "asm-x86"

If your problem is the nvidia driver than it could be nice for you to take the last beta. They works well for me but i use kde3 so this don't must be valid for you.

Offline

#4 2008-12-29 08:20:38

turingcat
Member
Registered: 2008-08-14
Posts: 18

Re: missing files in include ?[kernel 2.26.28]

thanks a lot~
i am coding some programs as a module,and there are lots of errors when i compile it ,error shows that lots of .h files can't find~

Offline

#5 2008-12-29 08:21:37

turingcat
Member
Registered: 2008-08-14
Posts: 18

Re: missing files in include ?[kernel 2.26.28]

skottish wrote:

Are the files in /usr/src/linux-2.6.28-ARCH/include/asm-generic what you're looking for?

it should be asm-x86,i think.

Offline

#6 2008-12-29 08:37:18

attila
Member
Registered: 2006-11-14
Posts: 293

Re: missing files in include ?[kernel 2.26.28]

turingcat wrote:

it should be asm-x86,i think.

It seems that files be now under "arch/x86/include/asm" instead of "include/asm-x86". But don't ask me why. smile

There seems to be a workaround for this:

1. Copy include/asm-x86/asm-offsets.h to /arch/x86/include/asm. This was the only file in my asm-x86 folder and I didn't want to change the symlink and cut anything off from it.
2. Symlink include/asm to ../arch/x86/include/asm

Sources:
http://www.nvnews.net/vbulletin/showthread.php?t=121790
http://toei.stargazer.at/2008/11/06/nvi … -2628-rc3/ (german)

But because you write your own code perhaps it will be better to search the header at another place. smile

Offline

#7 2008-12-29 11:45:36

turingcat
Member
Registered: 2008-08-14
Posts: 18

Re: missing files in include ?[kernel 2.26.28]

ok~got it ~thank you very much

Offline

Board footer

Powered by FluxBB