Anyone else tried to use fglrx 8.28.8 with beta1, I am getting

module ABI major version (0) doesn't match the server's version (1)


Debian mailing list also mentions the problem.
http://www.mail-archive.com/debian-amd64@lists.debian.org/msg20274.html

I needed to apply the following patch for it to compile under rhel5.

diff -ur 8.28.8.orig/lib/modules/fglrx/build_mod/firegl_public.c 8.28.8/lib/modules/fglrx/build_mod/firegl_public.c --- 8.28.8.orig/lib/modules/fglrx/build_mod/firegl_public.c 2006-10-05 14:27:25.000000000 +0200 +++ 8.28.8/lib/modules/fglrx/build_mod/firegl_public.c 2006-10-05 14:26:24.000000000 +0200
@@ -150,6 +150,10 @@
#include "linux/syscalls.h"
#endif
#endif
+// For 2.6.18 or higher, the UTS_RELEASE is defined in the linux/utsrelease.h.
+#ifndef UTS_RELEASE
+#include <linux/utsrelease.h>
+#endif

#include <linux/kmod.h>
#include "firegl_public.h"
@@ -165,6 +169,11 @@
#define NULL (void*)0
#endif

+// VM_SHM is deleted in 2.6.18 or higher kernels.
+#ifndef VM_SHM
+#define VM_SHM 0
+#endif
+
#ifdef FGL_USE_SCT
// get direct function pointers from sys_call_table for calling
#else /* FGL_USE_SCT */
diff -ur 8.28.8.orig/lib/modules/fglrx/build_mod/make.sh 8.28.8/lib/modules/fglrx/build_mod/make.sh --- 8.28.8.orig/lib/modules/fglrx/build_mod/make.sh 2006-10-05 14:27:25.000000000 +0200 +++ 8.28.8/lib/modules/fglrx/build_mod/make.sh 2006-10-05 14:24:21.000000000 +0200
@@ -218,13 +218,15 @@
then
kernel_release=`cat $src_file | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
else
-  if [ $UTS_REL_COUNT -gt 0 ];
-  then
-    kernel_release=`cat $src_file | grep UTS_RELEASE | cut -d'"' -f2`
-  else
- # UTS-define is in external version-*.h files, i.e. linux-2.2.14-5.0-RedHat does this flaw - kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
-  fi
+ UTS_REL_COUNT=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE -c`
+    if [ $UTS_REL_COUNT -gt 0 ];
+    then
+ # UTS-define is in external version-*.h files, i.e. linux-2.2.14-5.0-RedHat does this flaw + kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+    else
+        # For 2.6.18 or higher, UTS-define is defined in utsrelease.h.
+ kernel_release=`cat $linuxincludes/linux/utsrelease.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+    fi
fi

_______________________________________________
rhelv5-beta-list mailing list
rhelv5-beta-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-beta-list

Reply via email to