PDA

View Full Version : Mandrake 9.1 / nVidia TNT2 Problems


wheatie80
03-28-03, 06:56 PM
Recently installed Mandrake 9.1 and have tried numerous times to install the nVidia GLX and kernel packages via src.rpm and source and I cant seem to get around the following errors...

( final portion )


=================="
In file included from nv.c:14:
nv-linux.h:31:40: missing binary operator before '('
nv-linux.h:33:42: missing binary operator before '('
nv-linux.h:35:42: missing binary operator before '('
nv-linux.h:37:42: missing binary operator before '('
nv-linux.h:39:42: missing binary operator before '('
nv-linux.h:43:4: #error This driver does not support 2.6.x or newer kernels!
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from nv-linux.h:71,
from nv.c:14:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in
a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from nv-linux.h:71,
from nv.c:14:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not
in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv-linux.h:71,
from nv.c:14:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
nv-linux.h:184:64: missing binary operator before '('
nv.c:1335:65: missing binary operator before '('
nv.c: In function `nv_kern_mmap':
nv.c:1338: warning: implicit declaration of function `pgprot_writecombine'
nv.c:1338: incompatible types in assignment
make: *** [nv.o] Error 1
+ exit 0

And when I try to compile source this.

nv-linux.h:43:4: #error This driver does not support 2.6.x or newer kernels!
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from nv-linux.h:71,
from nv.c:14:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from nv-linux.h:71,
from nv.c:14:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv-linux.h:71,
from nv.c:14:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
nv-linux.h:184:64: missing binary operator before '('
nv.c:1335:65: missing binary operator before '('
nv.c: In function `nv_kern_mmap':
nv.c:1338: warning: implicit declaration of function `pgprot_writecombine'
nv.c:1338: incompatible types in assignment
make: *** [nv.o] Error 1

I'm currently running Kernel 2.4.21-0.13mdk. Does anyone know a work around for these errors.. or has anyone had similar results as me? Any help would be very apprecieated.

Andy Mecham
03-28-03, 07:02 PM
Do you have your kernel-source rpm installed?

--andy

wheatie80
03-28-03, 07:06 PM
Yes the first error is what i get when I do an rpm --rebuild NVIDIA_kernel-1.0-4191.src.rpm


it does not seem to want to remake the rpm which is where i'm drawing a blank.. I've even tried having the source makefile with no sucess

Andy Mecham
03-28-03, 07:13 PM
You're picking up /usr/include/linux as your include dir, which is the source of your problems. Does /lib/modules/`uname -r`/build exist and point to your kernel source directory (usually in /usr/src)?

--andy

wheatie80
03-28-03, 07:21 PM
[root@lex alex]# cd /lib/modules/2.4.21-0.13mdk/
[root@lex 2.4.21-0.13mdk]# ls
kernel/ modules.description modules.ieee1394map modules.parportmap modules.pnpbiosmap
modules.dep modules.generic_string modules.isapnpmap modules.pcimap modules.usbmap


It dosnt apear build/ exists no.

[root@lex 2.4.21-0.13mdk]# cd /usr/src
[root@lex src]# ls
RPM/

Andy Mecham
03-28-03, 07:24 PM
Looks like you don't have your kernel-source RPM installed. You can triple check that rpm doesn't think it's installed with 'rpm -qa | grep kernel'. You'll need to have it installed to rebuild the driver.

--andy

wheatie80
03-28-03, 07:32 PM
[root@lex src]# rpm -qa | grep kernel
kernel-2.4.21.0.13mdk-1-1mdk


i'm not sure what you mean by "have it installed to rebuild the driver" . Maybe i'm missing somthing very obvious.

Andy Mecham
03-28-03, 07:34 PM
You need to install kernel-source-2.4.21.0.13mdk.i386.rpm - this is the source for your kernel. The one you have listed below is the kernel itself, not the sources.

--andy

wheatie80
03-28-03, 08:14 PM
Just wanted to thank you. I installed kernel-source-2.4.21-0.13mdk.i586.rpm from disk 3 and then the rpm's worked flawlessly. Should have thought about that.... Thank You.

Andy Mecham
03-28-03, 08:15 PM
No problem!

--andy

bgmilne
03-29-03, 09:16 AM
Originally posted by Andy Mecham
You need to install kernel-source-2.4.21.0.13mdk.i386.rpm - this is the source for your kernel. The one you have listed below is the kernel itself, not the sources.

--andy

And you guys could prevent these problems by adding a:

BuildRequires: kernel-source

to your spec file. Anyone on an rpm-based distro who has compiled their kernel from source can probably figure out the need to use --nodeps.

Of course, kernel-versioning the drivers would also help with some issues ...

rainbowxp
04-20-03, 12:45 AM
Hi all,

I tried all the tricks of installing Kernel Source etc which you have suggested on the system. I swear, It never worked for me.

I test on 2 diff machines with same card. It wont work. After checking all the settings, I do startx and it hangs and the same second system icon of kde. I even tried to boot with gnome. No luck. Dam working on this since 3 days.. dont know when I can have the feel of actual linux.

Please help.

Diff note, I tried to install Man9.1 on laptops also (IBM+DeLL) both Neomagic 256 cards (sorry posting out of Nvidia group in a hope that some one you out there might know what to do

PLease Please help