MODPOST compilatiob between 2.4 and 2.6

Fred Fedora fedorafred2000 at yahoo.com
Wed Jun 30 22:04:43 UTC 2004


Folks,
I don't know if it is the right list or not (ps direct me to the right list to post the question).
 
I compiled some modles on 2.4. I rewrote the Makefiles to fit 2.6 Kbuild requirements.
 
I had to do a composite Object.
obj-m := switchMod.o
 
switchMod :=  switch1.o switch2.o
There are some statics declared in switch1.c that are being referenced in switch2.c (via extern decleartion).
 
When switchMod.Ko is built, it complains about undefined symbols (teh statics in switch1.o). I made the stats as globals and it fixed the problem (segmentation fault though).
 
So question is why did things work on 2.4 got broken in 2.6 kernel? What additional info does module writers need to take care for 2.6 kernel.
I am trying fedora Core 2.
--fred.
 

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040630/89d49db1/attachment-0001.htm>


More information about the fedora-list mailing list