jak zkompilovat modul "starsi" verzi gcc?

Vaclav Dvorsky hufhendr na sendmail.cz
Pondělí Březen 10 23:43:55 CET 2003


Zdravim,
dostal jsem se k zajimavemu problemu a nevim jak dal. Chtel bych si 
zkompilovat modul pro jadro "NVidia", ale konci mi to vzdy chybou. Podle 
FAQ to vypada, ze mam gcc version 3.2.2, zatimco jadro je zkompilovane s 
3.2.1, coz se tomu tedy nelibi. Bohuzel uz tam neni napsano, jak mam 
postupovat dal.

Nevite nekdo, jestli jde nekde u make nastavit, aby sestaveni probehlo 
jakoby se starsi verzi gcc?

Mohu udelat i rebuild src.rpm, ale i tam to konci stejnym problemem. Ani 
v tomto pripade nemam tuseni, kde bych co mel nastavit, aby to probehlo 
v poradku.

Mam Mandrake 9.1, ovladac pro Nvidia je aktualni.


Chybove hlaseni:
You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1

# cat /proc/version
Linux version 2.4.21pre4-6mdk (quintela na bi.mandrakesoft.com) (gcc 
version 3.2.1 (Mandrake Linux 9.1 3.2.1-7mdk)) #1 Thu Feb 13 19:33:56 
CET 2003

# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info 
--enable-shared --enable-threads=posix --disable-checking 
--enable-long-long --enable-__cxa_atexit 
--enable-languages=c,c++,ada,f77,objc,java 
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-2mdk)

-- 
Vaclav Dvorsky
http://www.akira.cz
emajl: hufhendr na akira.cz, iso-8859-2
tel: +420608021530, PGP: 0xD38E2CA7, X.509 supported



Další informace o konferenci Linux