The kernel checks the module version against the actual kernel version. If they dont match, you get an 'unresolved external' for each kernel resource reference. Check, which 'version.h' your compiler actually includes (-v, dependency files by -M). I assume, you have a stall header in /usr/include/linux - Thanks to RedHat, Inc. You may force your compiler to generate a loadable module a few ways: #define the verion tags yourself, #undef MODVERSION, or edit the .modinfo section of your ouput file :
using_checksums=0 ;-) Michael Tony Denault wrote: >Hi All, > >I have a working application in RH6.2 + RTLinux 3.0. I wanted to try >RH7.3+RTLinux3.1 but I am having strange problems loading modules. In >RTL3.1 I get, for example: > > # insmod lp.o > lp.o: unresolved symbol sprintf > >But this is the same source code as my working 6.2 system. > >Maybe something was differ with 3.1... so I took my .c file that contained >sprintf and just compiled a simple apps: >http://irtf.ifa.hawaii.edu/~denault/temp/fifo2 > >This is a simple program just test my sprintf type function. How can my >fifo2 application work, but my real one don't (the file mrt_io.c is the >same in both). > >I am using RH7.3, 2.4.18 kernel, contrib/ripoll/rt-patch-2.4.18.tar.bz2 > >Any hints or secret knowledge about creating modules? > >Thanks, > >Tony > > >/-----------------------------------------------------------------------------\ >| Tony Denault | Internet: [EMAIL PROTECTED] | >| NASA IRTF, Institute of Astronomy | Phone: (808) 974-4206 | >| 1175 Manono St., Bldg 393 | Fax: (808) 974-4207 | >| Hilo, Hawaii 96720 | | >\-----------------------------------------------------------------------------/ > >-- [rtl] --- >To unsubscribe: >echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR >echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] >-- >For more information on Real-Time Linux see: >http://www.rtlinux.org/ > -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
