Frank, The attached patch should fix the bug. Thanks for the info, Michael. frank mori hess ([EMAIL PROTECTED]) wrote: > > Hi, > > Unless I'm doing something stupid, it seems that rtlinux 3.0 final does > not define MODVERSIONS and include modversions.h when the kernel is > compiled with module versioning on. From the makefile, it looks like this > only happens for i386 and the problem is with scripts/cflags.mk or > scripts/Makefile? It worked fine for me with pre9 but I noticed there > have been some changes since then. > > Frank
diff -Nru a/Makefile b/Makefile --- a/Makefile Fri Feb 23 23:19:43 2001 +++ b/Makefile Fri Feb 23 23:19:43 2001 @@ -48,7 +48,7 @@ CFLAGS += -DMODVERSIONS -include $(RTLINUX)/include/linux/modversions.h endif -CFLAGS += -D__KERNEL__ -Wall -Wstrict-prototypes +CFLAGS += -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes CC = ${CROSS_COMPILE}gcc endif @@ -150,7 +150,7 @@ MODULE_DIRS += regression -CFLAGS += -D__RTL__ -DMODULE -D_LOOSE_KERNEL_NAMES +CFLAGS += -D__RTL__ -D_LOOSE_KERNEL_NAMES CXXFLAGS := $(CFLAGS) -fno-exceptions -fno-rtti CFLAGS += -O2 diff -Nru a/scripts/cflags.mk b/scripts/cflags.mk --- a/scripts/cflags.mk Fri Feb 23 23:19:43 2001 +++ b/scripts/cflags.mk Fri Feb 23 23:19:43 2001 @@ -2,7 +2,7 @@ # Released under the terms of the GNU General Public License Version 2 alloverride: - @echo $(CC) $(CFLAGS) | sed 's/[^ ]* //; s/-I[^ ]* //; s/-fomit-frame-pointer//; s/-O2//' + @echo $(CC) $(CFLAGS) $(MODFLAGS) | sed 's/[^ ]* //; s/-I[^ ]* //; +s/-fomit-frame-pointer//; s/-O2//' include Makefile