SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
so when i try to install the driver installer-catalyst-13.1-linux-x86.x86_64.run
or when i try to generate the driver package, this error shows up in the /usr/share/ati/fglrx-install.log
Code:
AMD kernel module generator version 2.1
kernel includes at /lib/modules/3.9.5/build/include not found or incomplete
file: /lib/modules/3.9.5/build/include/linux/version.h
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware
after i copied the version.h file from the src folder these errors ended up in the file:
Code:
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.9.5/build SUBDIRS=/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.9.5'
CC [M] /home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: error: 'VM_RESERVED' undeclared (first use in this function)
vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */
^
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.5'
make: *** [kmod_build] Error 2
build failed with return value 2
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware
maybe the lastest version of the headers are messed up or something.
i have slackware current at the last update.
any advice? thanks.
i deleted the version.h and instead i made a symbolic link.
this shows up in the log file:
Code:
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.9.5/build SUBDIRS=/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.9.5'
CC [M] /home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_AllocLinearAddrInterval':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2149:5: error: implicit declaration of function 'do_mmap' [-Werror=implicit-function-declaration]
vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2149:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3697:39: error: 'VM_RESERVED' undeclared (first use in this function)
vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */
^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3697:39: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/src/linux-3.9.5/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-3.9.5/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-3.9.5/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-3.9.5/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:109:
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'kasInitExecutionLevels':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:26: error: 'cpu_possible_map' undeclared (first use in this function)
for_each_cpu_mask(p, cpu_possible_map)
^
include/linux/cpumask.h:820:44: note: in definition of macro 'next_cpu'
#define next_cpu(n, src) __next_cpu((n), &(src))
^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: note: in expansion of macro 'for_each_cpu_mask'
for_each_cpu_mask(p, cpu_possible_map)
^
include/linux/cpumask.h:824:34: warning: left-hand operand of comma expression has no effect [-Wunused-value]
(cpu) = next_cpu((cpu), (mask)), \
^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: note: in expansion of macro 'for_each_cpu_mask'
for_each_cpu_mask(p, cpu_possible_map)
^
cc1: some warnings being treated as errors
make[2]: *** [/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.5'
make: *** [kmod_build] Error 2
build failed with return value 2
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware
i made a new installation of slackware current, then i install the beta driver of AMD 13.6 that adds support for my video card. everything seems to work fine.
The kernel headers should really never be updated unless you update glibc. The kernel headers really aren't a part of the Linux Kernel, but are more-so, GLibC-Kernel-Headers. In reality the package has suffered a long time mislabeling, which has led to incidents like this.
Unless you update GLibC and the Kernel Headers equally, it will break your compiler.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.