On Mon, Sep 17, 2001 at 11:12:37AM +0200, Franz Reinhardt wrote: > I'm trying to build a module to load it in different 2.4.xx kernels, > but I always get a warning message from insmod. Using __NO_VERSION__ brought > no success, it seems to be obsolete for 2.4.xx kernels. > > Any ideas how to handle this ? Easy, compile it for the current kernel. This does the trick: gcc -O2 -Wall -DMODULE -D__KERNEL__ \ -I/lib/modules/`uname -r`/build/include -c foo.c -o foo.o The linux kernel only guarantees _source level_ compatibility for kernel modules, not _binary level_ compatibility (unless there is a very good reason to break the source level compatibility). Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/