modversion issue on redhat 9

Jun Sun jsun
Tue Aug 26 23:03:11 PDT 2003


I am surprised that nobody has reported this problem before.

Basically if you compile hostap modules for a redhat 9 box, you
will end up many unresolved kernel symbols when you install the modules.

The problem is that hostap would include linux/modversions.h file ahead
of all other header files, but in reality this file needs to be included
after linux/rhconfig.h file because many #ifdef's used there.

I attached a quick hack here which makes thing work.  I suspect
the true fix is in linux/modversions.h, which should include
linux/rhconfig.h

Jun

-------------- next part --------------
diff -Nru hostap/Makefile.orig hostap/Makefile
--- hostap/Makefile.orig	2003-08-26 14:32:03.000000000 -0700
+++ hostap/Makefile	2003-08-26 17:49:55.000000000 -0700
@@ -86,7 +87,7 @@
 endif
 
 ifdef CONFIG_MODVERSIONS
-CFLAGS += -DMODVERSIONS -include $(KERNEL_PATH)/include/linux/modversions.h
+CFLAGS += -DMODVERSIONS -include $(KERNEL_PATH)/include/linux/rhconfig.h -include $(KERNEL_PATH)/include/linux/modversions.h
 endif
 
 ifdef CONFIG_SMP



More information about the Hostap mailing list