Re: x11/nvidia-driver / Compilation has failed

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Wed, 5 Oct 2011 19:47:44 -0500
On Wed, Oct 5, 2011 at 4:43 PM, Ali Mashtizadeh <mashtizadeh_at_gmail.com> wrote:
> On Wed, Oct 5, 2011 at 2:27 PM, Scot Hetzel <swhetzel_at_gmail.com> wrote:
>> On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh <mashtizadeh_at_gmail.com> wrote:
>>> Is there any reason I should still be hitting this bug when building
>>> on 9-STABLE? With Linux compatibility disabled I can build the driver,
>>> but the kernel refuses to load it saying it's incompatible with my
>>> kernel version.
>>>
>> Was your kernel built from the same version of /usr/src, or have you
>> updated the source (/usr/src) since you last rebuilt the kernel.
>>
>> If you updated the source, then you need to rebuild the kernel from
>> those updated sources (should also build/installworld).
>>

> Yes, I did that just before. I'll try buildkernel and installkernel
> again but I know havn't updated the tree. Could there be an issue
> since I built it from the directory /usr/src-9?
>

Do you also have a /usr/src directory?

If you do, then the port is using the wrong kernel source.  You'll
need to set SRC_BASE to /usr/src-9 when building the port.

cd /usr/ports/x11/nvida-driver
make deinstall ; make clean ; make install -DSRC_BASE=/usr/src-9

Then you should be able to load the kernel module.

Scot
Received on Wed Oct 05 2011 - 22:47:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC