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