Here is what I change in the LiS Configure script
for this problem:

+++ LiS-2.18-CS621/Configure    2005-04-11 02:46:49.335246168 -0400
@@ -464,7 +464,7 @@
 ac_get_config()
 {
     if [ -f $KSRC/include/linux/config.h ]; then
-       cc -I$KSRC/include -E -dM \
+       cc -D__KERNGLUE__ -I$KSRC/include -E -dM \
                -include $KSRC/include/linux/config.h dummy.c >kconfig
        x=`grep $1 kconfig 2>&1`
        if [ $? -eq 0 ]; then                   # found it
@@ -600,7 +600,7 @@
 get_vers_h()
 {
     if [ -f $1 ]; then
-       cc -I$KSRC/include -E -dM -include $1 dummy.c > kver
+       cc -D__KERNGLUE__ -I$KSRC/include -E -dM -include $1 dummy.c > kver
        KVER_H=`grep UTS_RELEASE kver | \
             sed -e 's/^.*UTS_RELEASE.//' -e's/"//g' -e's/  *$//'`
        NKVER_H=`echo $KVER_H | sed -e 's/-.*//'`


and this to the LiS config.mk file:

@@ -141,7 +141,8 @@
 #
 PROBLEMS = -Wpointer-arith
 PROBLEMS =
-XOPTS = -Wall -Wstrict-prototypes $(PROBLEMS)
+# Added -D__KERNGLUE__ to keep RHEL4 happy
+XOPTS = -Wall -Wstrict-prototypes $(PROBLEMS) -D__KERNGLUE__
 XOPTS+= -fno-strict-aliasing -Wno-sign-compare -fno-common


Paul Landay


_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to