Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/src/linux/include/linux/version.h missing in zen kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Fri Jul 04, 2008 9:57 am    Post subject: /usr/src/linux/include/linux/version.h missing in zen kernel Reply with quote

I have been trying to compile latest NVIDIA 177.13 module for my stock kernel 2.6.26-rc8-zen1-x0-core2-smp2 for Debian.the nvidia installer fails with below error for every work arounds :( I have linux-header ,linux-source all installed for the current kernel version.

Code:
ERROR: The kernel header file '/usr/src/linux/include/linux/version.h' does not exist.  The most likely reason for this is that the kernel source files  in '/usr/src/linux' have not been configured.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.


Please point to me ,which file needs to be symlinked for version.h.

Thanks :)
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Jul 04, 2008 10:21 am    Post subject: Reply with quote

The link /usr/src/linux must point to the correct kernel-source tree, zen-sources in your case
Code:
ls -l /usr/src/linux

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Fri Jul 04, 2008 12:25 pm    Post subject: Reply with quote

will you please elaborate.just an example(kernel sources tree? ) will suffice.

Thanks! :D
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Jul 04, 2008 12:39 pm    Post subject: Reply with quote

praka123 wrote:
will you please elaborate.just an example(kernel sources tree? ) will suffice.

Thanks! :D

Your current kernel source tree is the folder which contains your currently used kernel, including sources. Or where/how did you compile your kernel?
e.g.
Code:
└» ls -l /usr/src/linux
lrwxrwxrwx 1 tom tom 13 2008-06-24 18:58 /usr/src/linux -> zenmm-sources

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Fri Jul 04, 2008 1:08 pm    Post subject: Reply with quote

^well.that I tried first.symlinking with linux hadnt helped. :?

the problem is the zen sources is ,missing usr/src/linux/include/linux/version.h :(
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Jul 04, 2008 2:05 pm    Post subject: Reply with quote

It's not missing from zen-sources. It is missing in your kernel source tree.

That file is generated when you configure and compile your kernel. Just unpacking a kernel tree and pointing /usr/src/linux at it is of course not enough. You have to _compile_ that baby and _run_ it.
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Sat Jul 05, 2008 1:04 am    Post subject: Reply with quote

thanks.

well ,I am on Debian.It comes with a linux-image-2.6.26-rc8-zen1-x0-core2-smp2 .deb package and a linux-headers-2.6.26-rc8-zen1-x0-core2-smp2 .deb package both I have installed.

Now ,mostly Nvidia should compile with both of this installed.but in this case ,the nvidia installer is complaining that version.h is missing :( .

:roll:
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sat Jul 05, 2008 6:15 am    Post subject: Reply with quote

Ah you are on Debian. That explains why you don't know were your compiled kernel source tree is :)
No idea about Debian. Haven't used it in years.

You could try
Code:
cd /usr/src/linux
zcat /proc/config.gz > .config
make oldconfig
make prepare

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Sat Jul 05, 2008 5:03 pm    Post subject: Reply with quote

Thanks.I will try .
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Sat Jul 05, 2008 5:12 pm    Post subject: Reply with quote

well ,this time some improvement.it showed 100% (module compiling) and suddenly showed error : module building failed.
Code:
Using: nvidia-installer ncurses user interface
-> License accepted by command line option.
-> Installing NVIDIA driver version 177.13.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path
   '/usr/src/linux-source-2.6.26-rc8-zen1-x0-core2-smp2' as specified by the
   '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-source-2.6.26-rc8-zen1-x0-core2-smp2'
-> Kernel output path: '/usr/src/linux-source-2.6.26-rc8-zen1-x0-core2-smp2'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-source-2.6.26
   -rc8-zen1-x0-core2-smp2 SYSOUT=/usr/src/linux-source-2.6.26-rc8-zen1-x0-core
   2-smp2'...
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux-source-2.6.26-rc8-zen1-x0-cor
   e2-smp2 SUBDIRS=/tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv mod
   ules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (      \
      echo;                        \
      echo "  ERROR: Kernel configuration is invalid.";      \
      echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";   \
      echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";   \
      echo;                        \
      /bin/false)
   mkdir -p /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/.tmp_versi
   ons ; rm -f /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/.tmp_ve
   rsions/*
   
     WARNING: Symbol version dump /usr/src/linux-source-2.6.26-rc8-zen1-x0-core
   2-smp2/Module.symvers
              is missing; modules will have no dependencies and modversions.
   
   make -f scripts/Makefile.build obj=/tmp/selfgz13353/NVIDIA-Linux-x86-177.13-
   pkg1/usr/src/nv
     cc -Wp,-MD,/tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/.nv.o.
   d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.1/include -D__KERNEL__
   -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototyp
   es -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function
   -declaration -Os   -fno-stack-protector -s -m32 -msoft-float -mregparm=3 -fr
   eg-struct-return -mpreferred-stack-boundary=2  -march=i686 -mtune=core2 -ffr
   eestanding   -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-ss
   e -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fomit-frame-
   pointer -Wdeclaration-after-statement -Wno-pointer-sign   -I/tmp/selfgz13353
   /NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wsw
   itch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar
   -Werror -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE
   -DNVRM -DNV_VERSION_STRING=\"177.13\" -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -
   D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KB
   UILD_STR(nvidia)" -c -o /tmp/se
   lfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz13353
   /NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c
   In file included from include/linux/list.h:6,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:49,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:57,
                    from include/linux/sched.h:54,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv-linux.h:19,
                    from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/asm/dma-mapping.h:9,
                    from include/linux/dma-mapping.h:52,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from include/asm/pci.h:92,
                    from include/linux/pci.h:962,
                    from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv-linux.h:86,
                    from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv.c:14:
   include/linux/scatterlist.h: In function ‘sg_virt’:
   include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
   in arithmetic
   In file included from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv-linux.h:109,
                    from /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv/nv.c:14:
   include/linux/highmem.h: In function ‘zero_user_segments’:
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
   rithmetic
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c: In function
   ��__nv_setup_pat_entries’:
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c:944: warning:
   comparison between signed and unsigned
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c: In function
   ��__nv_restore_pat_entries’:
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c:970: warning:
   comparison between signed and unsigned
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c: In function
   ��nv_kern_cpu_callback’:
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c:1296: warning:
   comparison between signed and unsigned
   /tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.c:1303: warning:
   comparison between signed and unsigned
   /bin/sh: scripts/genksyms/genksyms: not found
   make[3]: *** [/tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/nv/nv.o]
   Error 127
   make[2]: *** [_module_/tmp/selfgz13353/NVIDIA-Linux-x86-177.13-pkg1/usr/src/
   nv] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.

_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sat Jul 05, 2008 5:32 pm    Post subject: Reply with quote

hrm that genksyms script is generated on kernel compile too.

You could try a
Code:
make prepare-all

if that doesn't help, compile the whole thing
Code:
make

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Sun Jul 06, 2008 6:12 pm    Post subject: Reply with quote

sorry for late reply.thanks and will be trying in a few minutes :D
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
praka123
Apprentice
Apprentice


Joined: 19 Jan 2006
Posts: 184
Location: Kerala,India

PostPosted: Sun Jul 06, 2008 9:56 pm    Post subject: Congratulations!!!!!!!!!!!!!!!!!!! Reply with quote

YES!this time it worked! :D :D :D I have to do the whole "make" !.now latest 177.13 nvidia driver fixed the slowness of systems ,esp firefox3.I recommend it!
_________________
Linux Rocks!Grab it Yaara!
spread the Linux message!add this to ur siggY- http://getgnulinux.org
http://linux.oneandoneis2.org/LNW.htm
Back to top
View user's profile Send private message
ilikenwf
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2007
Posts: 119

PostPosted: Wed Jul 09, 2008 2:13 am    Post subject: Reply with quote

I used to build the zen kernel for Ubuntu/Debian, and I think he's using one of my deb packages. I kinda shy away from that anymore, because I moved over to archlinux (faster, etc...didn't feel like doing slack or gentoo, honestly...), anyway, this has been a problem with Debian based distros. Unless you build the kernel, it doesn't work with nVidia, or a multitude of other drivers...

His best bet is to clone the git tree and compile. I'm going to write a bash script to do this for n00bs at some point, so I don't have Ubuntu people hanging on me all the time...
_________________
Make The Fonts Pretty In KDE
Archlinux User
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum