[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nvidia compile error [SOLVED]



On 3 Jan 2003, Elijah wrote:

> It took me awhile to download new modutils, binutils, 2.4.20 kernel
> sources, etc. etc. .compile etc .. .. none worked for me. 
> 
> Then I searched all over forums, /usr/share/docs/, sites, etc. and found
> a suggestion to use the kernel-headers. I downloaded the
> kernel-headers.2.4.18.deb, untarred itself to /usr/src/, 'make install'
> the nvidia-kernels .. and it WORKED! ahhh that felt good ^.^ ... 
> 
> Compiling the kernel-source didn't help much so using the kernel-headers
> did it for me ... wow ... I've lost a ton of sleep on this one.

I'm glad you got it working!

The above doesn't make sense to me.  If you compiled your kernel you have
your kernel headers.  /usr/share/doc/nvidia-kernel-src/README.Debian.gz
describes this.

If you look at the Nvidia tarball file NVIDIA_kernel-1.0-4191/Makefile it
uses

  KERNDIR=/lib/modules/$(shell uname -r)

  ifeq ($(shell if test -d $(KERNDIR)/build; then echo yes; fi),yes) 
    KERNINC=$(KERNDIR)/build/include
  else
    KERNINC=/usr/src/linux/include
  endif

And on my machine:

$ ls -l /lib/modules/`uname -r`/build
lrwxr-xr-x    1 root     root           29 Aug  7 22:07
/lib/modules/2.4.18-xfs-laptop/build -> /usr/src/kernel-source-2.4.18

points back to the kernel source directory.

I've never used a kernel-headers package.  I assume it creates a similar
symlink.

-- 
Bill Moseley moseley@hank.org



Reply to: