Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: module compilation failure



On Wed, 27 May 1998, Martos-Riano wrote:

> I have spent part of the day trying to create a module for the kernel.
> 
> The message I am picking up is:
> 
> /lib/modules/2.0.30/misc/yellowfin.o: kernel-module version mismatch
> /lib/modules/2.0.30/misc/yellowfin.o was compiled for kernel version 2.0.29
> while this kernel is version 2.0.30.
> 
> I had the sources of 2.029 and 2.0.30 of the kernel, but uninstalled the first
> one and started the
> compilation process from scratch.
> 
> The steps I have followed to compile yellowfin.o are the ones indicated by
> Donald Becker:
> cd /usr/src/linux ; make include/linux/version.h
> and then
> gcc -DMODVERSIONS =DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -O6 -c
> driver.c
> install -m 644 yellowfin.o /lib/modules/2.0.30/net
> 

Send me the source for this... I didn't know he made another new driver
(he's supposed to email me, I'm on that list...) anyway.... I'll give it a
try and let you know what the results are.  You might need to recompile
the whole kernel and say 'yes' to the three module questions:

Use modules?
Use modversions?
Enable kerneld support?

then you can just do:

gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -O6 -c
driver.c

--------------------------------------------------
Scott M. Stone <sstone@example.com, sstone@example.com>
               <sstone@example.com>
Linux Developer/Systems Administrator for Pacific HiTech, Inc. 
http://www.pht.com		http://armadillo.pht.co.jp
http://www.pht.co.jp	        http://www.turbolinux.com


--------------------------------------------------------------
Next TLUG Meeting: 13 June Sat, Tokyo Station Yaesu gate 12:30
Featuring Stone and Turnbull on .rpm and .deb packages
Next Nomikai: (?) July, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links