[opensuse] Can't build fglrx module in kernel 2.6.36
That's it guys. I have successfully installed the proprietary ati drivers in past 6.34 and 6.35 kernels but not in latest .6.36. I'm wondering if this have something to do with compatibility or not. Installation log shows me some errors I can't recognize: #### [Message] Kernel Module : Trying to install a precompiled kernel module. [Message] Kernel Module : Precompiled kernel module version mismatched. [Message] Kernel Module : Found kernel module build environment, generating kernel module now. AMD kernel module generator version 2.1 doing Makefile based build for kernel 2.6.x and higher rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers make -C /lib/modules/2.6.36-90-desktop/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make -C ../../../linux-2.6.36-90 O=/usr/src/linux-2.6.36-90-obj/i386/desktop/. modules CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: warning: initialization from incompatible pointer type make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: se sale del directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make: *** [kmod_build] Error 2 build failed with return value 2 [Error] Kernel Module : Failed to compile kernel module - please consult readme. [Reboot] Kernel Module : mkinitrd #### Any clue? -- Hernán Thiers García Estudiante de Ingeniería en Informática / I.T. Engineering Student Home +56 - 45 - 287366 Mobile +56 - 9 - 3779421 Skype: +56 258 13910 # 565 / internaldrums Twitter: Hernan_CL Blog: http://hernanthiers.blogspot.com Temuco, Chile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
AMD kernel module generator version 2.1 doing Makefile based build for kernel 2.6.x and higher rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers make -C /lib/modules/2.6.36-90-desktop/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make -C ../../../linux-2.6.36-90 O=/usr/src/linux-2.6.36-90-obj/i386/desktop/. modules CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: warning: initialization from incompatible pointer type make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: se sale del directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make: *** [kmod_build] Error 2 build failed with return value 2 [Error] Kernel Module : Failed to compile kernel module - please consult
i believe i know exactly what is wrong with your issue. i've run into it with compiling both nvidia and virtualbox kernel modules. ioctls field has been deprecated in 2.6.36. i've had to manually edit the source code that contains the line that mentions ioctls and it worked perfectly fine. let me requote:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer
you need to edit firegl_public.c at line 410:5 and comment out or delete the line that mentions ioctl. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 07/11/10 14:06, michael getachew escribió:
AMD kernel module generator version 2.1 doing Makefile based build for kernel 2.6.x and higher rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers make -C /lib/modules/2.6.36-90-desktop/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make -C ../../../linux-2.6.36-90 O=/usr/src/linux-2.6.36-90-obj/i386/desktop/. modules CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: warning: initialization from incompatible pointer type make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: se sale del directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make: *** [kmod_build] Error 2 build failed with return value 2 [Error] Kernel Module : Failed to compile kernel module - please consult
i believe i know exactly what is wrong with your issue. i've run into it with compiling both nvidia and virtualbox kernel modules. ioctls field has been deprecated in 2.6.36. i've had to manually edit the source code that contains the line that mentions ioctls and it worked perfectly fine. let me requote:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer
you need to edit firegl_public.c at line 410:5 and comment out or delete the line that mentions ioctl.
Thanks michael. At forum someone suggest me to try some patches that resolve this issue. I'll give it a try as I guess that these patches rewrite those files and more. -- Hernán Thiers García Estudiante de Ingeniería en Informática / I.T. Engineering Student Home +56 - 45 - 287366 Mobile +56 - 9 - 3779421 Skype: +56 258 13910 # 565 / internaldrums Twitter: Hernan_CL Blog: http://hernanthiers.blogspot.com Temuco, Chile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 07/11/10 14:45, Hernan Thiers escribió:
El 07/11/10 14:06, michael getachew escribió:
AMD kernel module generator version 2.1 doing Makefile based build for kernel 2.6.x and higher rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers make -C /lib/modules/2.6.36-90-desktop/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make -C ../../../linux-2.6.36-90 O=/usr/src/linux-2.6.36-90-obj/i386/desktop/. modules CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: warning: initialization from incompatible pointer type make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: se sale del directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop' make: *** [kmod_build] Error 2 build failed with return value 2 [Error] Kernel Module : Failed to compile kernel module - please consult
i believe i know exactly what is wrong with your issue. i've run into it with compiling both nvidia and virtualbox kernel modules. ioctls field has been deprecated in 2.6.36. i've had to manually edit the source code that contains the line that mentions ioctls and it worked perfectly fine. let me requote:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer
you need to edit firegl_public.c at line 410:5 and comment out or delete the line that mentions ioctl.
Thanks michael. At forum someone suggest me to try some patches that resolve this issue. I'll give it a try as I guess that these patches rewrite those files and more.
Finally I successfully get it through the patches :) Steps: extract the .run ati installer, apply all patches to the auto-created folder (extraction), build a new package for current openSUSE version, install & reboot. -- Hernán Thiers García Estudiante de Ingeniería en Informática / I.T. Engineering Student Home +56 - 45 - 287366 Mobile +56 - 9 - 3779421 Skype: +56 258 13910 # 565 / internaldrums Twitter: Hernan_CL Blog: http://hernanthiers.blogspot.com Temuco, Chile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/07/2010 02:07 PM, Hernan Thiers wrote:
i believe i know exactly what is wrong with your issue. i've run into it with compiling both nvidia and virtualbox kernel modules. ioctls field has been deprecated in 2.6.36. i've had to manually edit the source code that contains the line that mentions ioctls and it worked perfectly fine.
let me requote:
> /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: > error: unknown > field ‘ioctl’ specified in initializer > > you need to edit firegl_public.c at line 410:5 and comment out or delete the line that mentions ioctl.
Thanks michael. At forum someone suggest me to try some patches that resolve this issue. I'll give it a try as I guess that these patches rewrite those files and more.
Finally I successfully get it through the patches :) Steps: extract the .run ati installer, apply all patches to the auto-created folder (extraction), build a new package for current openSUSE version, install & reboot.
Alright you smart guys, has anyone found a way to build a 'legacy' (pre-2400 series) fglrx driver on 11.3? Last I heard it was a no-go, but I haven't looked into it in a year or so. Anybody know the answer? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
David C. Rankin
-
Hernan Thiers
-
michael getachew