LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ATI Driver Install fglrx error 2.6.12.3 (https://www.linuxquestions.org/questions/slackware-14/ati-driver-install-fglrx-error-2-6-12-3-a-349027/)

PSIPHON 08-01-2005 07:16 PM

ATI Driver Install fglrx error 2.6.12.3
 
I recived the following error message in /usr/share/fglrx/fglrx-install.log
I dont know what it all means, nor what i should do

----------
[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.
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.12.3/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.12.3'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `agp_find_supported_device':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7136: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7156: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7161: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7187: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7207: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7227: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7232: error: structure has no member named `slot_name'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `__fgl_agp_init':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7613: warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `__fgl_agp_cleanup':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:7623: warning: `pm_unregister_all' is deprecated (declared at include/linux/pm.h:116)
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12.3'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
----------

gbonvehi 08-01-2005 07:19 PM

There was a change in 2.6.12.X kernels, slot_name is not used anymore so you get those errors. Try getting a newer version of the driver or searching for a patch on the web.

egag 08-01-2005 07:38 PM

...or you could try to edit the source code and change any occurence
of "slot_name" to "pci_name"
( that should be just a few times... )

egag

Shade 08-01-2005 09:40 PM

I found two patches after much searching and am running fglrx just fine with 2.6.12.3.

The patches can be found here:

http://mshade.kicks-ass.net:8080/pub...-agpgart.patch
http://mshade.kicks-ass.net:8080/pub...dule_get.patch

Apply them like this:
Code:

cd /lib/modules/fglrx/build_mod/
patch -p0 < pathtopatch

Then make as normal. There will be a couple of warnings, but it's working for me :)

--Shade

DaneM 08-04-2005 10:45 AM

Sweet!
 
Thanks for the links, Shade! They work fine for me so far.

--Dane

objorkum 08-04-2005 11:51 AM

A new ATI-driver will be relaesed in early mid-August, and that driver will have kernel 2.6.12-support. Why don't you wait until then with using kernel 2.6.12?

dhcolesj 08-12-2005 10:53 PM

because its already mid august.
not only that but this is what I keep seeing even after applying the patches:

ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.12-1-686-smp/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
/bin/sh: /usr/src/linux-headers-2.6.12-1-686-smp/scripts/gcc-version.sh: No such file or directory
make[1]: Entering directory `/usr/src/linux-headers-2.6.12-1-686-smp'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
/lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.c:57: error: static declaration of '__fgl_agp_try_unsupported' follows non-static declaration
/lib/modules/fglrx/build_mod/2.6.x/agp_backend.h:92: error: previous declaration of '__fgl_agp_try_unsupported' was here
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-1-686-smp'
make: *** [kmod_build] Error 2
build failed with return value 2

What do I do with that?


All times are GMT -5. The time now is 06:03 PM.