|10-22-03, 10:02 AM||#1|
Join Date: Oct 2003
need to compile older 2690 - but have errors
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:
In file included from /lib/modules/2.4.20-18.9/build/include/linux/vmalloc.h:8,
/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
can anyone help me?
This occurs on every Driver before 41xx
|10-23-03, 09:35 AM||#2|
Join Date: Dec 2002
Location: San Luis Obispo, CA
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.
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.
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).
Last edited by LordMorgul; 10-23-03 at 10:12 AM.
|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|