Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-22-03, 10:02 AM   #1
bilbo
Registered User
 
Join Date: Oct 2003
Posts: 3
Default need to compile older 2690 - but have errors

Hi there,

for some reasons (espacially apm) I need to use the older 2690 Driver.

Compiling with my RedHat 8.0 was not a problem.
Now I installed RH9 on my DELL Latitude C840 and get this Error when calling make:

8<------------------------

In file included from /lib/modules/2.4.20-18.9/build/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/lib/modules/2.4.20-18.9/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-18.9/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1392: warning: passing arg 1 of `remap_page_range_R492427ce' makes pointer from integer without a cast
nv.c:1392: incompatible type for argument 4 of `remap_page_range_R492427ce'
nv.c:1392: too few arguments to function `remap_page_range_R492427ce'
nv.c:1409: warning: passing arg 1 of `remap_page_range_R492427ce' makes pointer from integer without a cast
nv.c:1409: incompatible type for argument 4 of `remap_page_range_R492427ce'
nv.c:1409: too few arguments to function `remap_page_range_R492427ce'
nv.c:1440: warning: passing arg 1 of `remap_page_range_R492427ce' makes pointer from integer without a cast
nv.c:1440: incompatible type for argument 4 of `remap_page_range_R492427ce'
nv.c:1440: too few arguments to function `remap_page_range_R492427ce'
nv.c: In function `nv_get_phys_address':
nv.c:2276: warning: implicit declaration of function `pte_offset'
nv.c:2276: invalid type argument of `unary *'
make: *** [nv.o] Fehler 1


------------------>8

can anyone help me?

This occurs on every Driver before 41xx

cheers, Michael
bilbo is offline   Reply With Quote
Old 10-23-03, 09:35 AM   #2
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

RedHat 9 moved to a different base version of gcc, which can cause many problems compiling older programs (especially finicky ones like drivers). While I'm not certain, I believe that is the cause of the failure here.

What I say here is NOT instructions on what to type to make it work. This should help you start investigating what you'll need to do, its not a solution.

You may try installing the old version of gcc from RedHat 8, but to do so you would need to make sure and keep it separate so that it doesn't overwrite, etc. RPM probably will not be the way to accomplish this, but you may find an rpm package that can give you the old version without conflict.

The trick then, is to export a new value of CC before compiling, which is the old version.
export CC="gcc-2.95"

[edit]
I just checked that RH8 has been updated to gcc 3.2 for the main compiler, but the kernel would have still been 2.95 or 2.96 at the time, for RH9 they are now using gcc 3.2 for kernels I believe.
[/edit]

or whatever version of gcc you get, and have it installed as. I know, this is quite complex and my explanation leaves much to be desired. Reading may be necessary, perhaps some relavent how-tos from www.tldp.org.

However, your modules usually have to be compiled with the same version of gcc as your kernel, so you run into problems (i.e. you compile kernels).
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.

Last edited by LordMorgul; 10-23-03 at 10:12 AM.
LordMorgul is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphic errors and hangs after standby reini122 NVIDIA Linux 4 05-07-12 04:37 AM
Graphical errors: broken card? lapino NVIDIA GeForce 7, 8, And 9 Series 0 05-03-12 02:20 PM
Compiling Errors In Debian Scorched NVIDIA Linux 14 09-26-02 12:02 PM
Nvidia drivers won't compile with Slackware 8.0 z28Power NVIDIA Linux 6 09-18-02 07:20 PM
Getting bizarre errors with driver install clutch NVIDIA Linux 1 09-14-02 10:53 PM

All times are GMT -5. The time now is 02:55 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.