LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2013, 06:00 PM   #1
Brosch91
LQ Newbie
 
Registered: Jun 2013
Location: Michigan, USA
Distribution: Slackware64 14.1
Posts: 23

Rep: Reputation: Disabled
Problem installing fglrx drivers on Slackware 14.1


The fglrx drivers worked fine back in Slackware 14.0, but now in 14.1 it fails because it says I need kernel headers. I've never had this problem before and I don't know where to get the headers? Are they on my disc or something? Thanks in advance for the help!

Here's the fglrx-install.log if it helps:
Quote:
Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers. /lib/modules/3.10.17/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.

Last edited by Brosch91; 11-14-2013 at 06:04 PM.
 
Old 11-14-2013, 07:55 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by Brosch91 View Post
The fglrx drivers worked fine back in Slackware 14.0, but now in 14.1 it fails because it says I need kernel headers. I've never had this problem before and I don't know where to get the headers? Are they on my disc or something? Thanks in advance for the help!

Here's the fglrx-install.log if it helps:
Please use the search function prior to posting as topics on this already exist.

http://www.linuxquestions.org/questi...-a-4175484253/
 
1 members found this post helpful.
Old 11-14-2013, 08:17 PM   #3
Brosch91
LQ Newbie
 
Registered: Jun 2013
Location: Michigan, USA
Distribution: Slackware64 14.1
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Please use the search function prior to posting as topics on this already exist.

http://www.linuxquestions.org/questi...-a-4175484253/
Still not working even after I tried linking the files like Matt did. This is the error log I got after trying to install the fglrx drivers. If it helps at all, my laptop has an ATI Radeon 4250. Maybe it's age is an issue?

Quote:
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Unloading radeon module...
rmmod: ERROR: Module radeon is in use
Unloading drm module...
rmmod: ERROR: Module drm is in use by: ttm drm_kms_helper radeon
[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 *.a .??* *.symvers
make -C /lib/modules/3.10.17/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.10.17'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:464:0:
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function 'FGLDRM_proc_init':
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:2: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);
^
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:19: warning: assignment makes pointer from integer without a cast [enabled by default]
if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);
^
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:105:12: warning: assignment makes pointer from integer without a cast [enabled by default]
*dev_root = create_proc_entry(name, S_IFDIR, root);
^
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:112:7: warning: assignment makes pointer from integer without a cast [enabled by default]
ent = create_proc_entry(DRM(proc_list)[i].name,
^
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:124:6: error: dereferencing pointer to incomplete type
ent->read_proc = DRM(proc_list)[i].f;
^
/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:125:6: error: dereferencing pointer to incomplete type
ent->data = dev;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'firegl_proc_init':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:586:14: warning: assignment makes pointer from integer without a cast [enabled by default]
root = create_proc_entry("ati", S_IFDIR, NULL);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:598:13: warning: assignment makes pointer from integer without a cast [enabled by default]
ent = create_proc_entry("major", S_IFREG|S_IRUGO, root);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:12: error: dereferencing pointer to incomplete type
ent->read_proc = (read_proc_t*)firegl_major_proc_read;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: error: 'read_proc_t' undeclared (first use in this function)
ent->read_proc = (read_proc_t*)firegl_major_proc_read;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: note: each undeclared identifier is reported only once for each function it appears in
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:39: error: expected expression before ')' token
ent->read_proc = (read_proc_t*)firegl_major_proc_read;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:609:15: warning: assignment makes pointer from integer without a cast [enabled by default]
*dev_root = create_proc_entry(name, S_IFDIR, root);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:619:13: warning: assignment makes pointer from integer without a cast [enabled by default]
ent = create_proc_entry(list->name, S_IFREG|S_IRUGO, *dev_root);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:16: error: dereferencing pointer to incomplete type
ent->read_proc = (read_proc_t*)list->f;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:43: error: expected expression before ')' token
ent->read_proc = (read_proc_t*)list->f;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:644:16: error: dereferencing pointer to incomplete type
ent->proc_fops = (struct file_operations*)list->fops;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:648:16: error: dereferencing pointer to incomplete type
ent->data = (dev->pubdev.signature == FGL_DEVICE_SIGNATURE)? firegl_find_device(minor) : (dev);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:657:13: warning: assignment makes pointer from integer without a cast [enabled by default]
ent = create_proc_entry("debug", S_IFREG|S_IRUGO, root);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:16: error: dereferencing pointer to incomplete type
ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:43: error: expected expression before ')' token
ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:16: error: dereferencing pointer to incomplete type
ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:32: error: 'write_proc_t' undeclared (first use in this function)
ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:45: error: expected expression before ')' token
ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:662:16: error: dereferencing pointer to incomplete type
ent->data = dev;
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_AllocLinearAddrInterval':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:5: error: implicit declaration of function 'do_mmap' [-Werror=implicit-function-declaration]
vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3700:39: error: 'VM_RESERVED' undeclared (first use in this function)
vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:511:16: warning: 'firegl_debug_proc_read_wrap' defined but not used [-Wunused-function]
READ_PROC_WRAP(firegl_debug_proc_read)
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:496:12: note: in definition of macro 'READ_PROC_WRAP'
static int func##_wrap(char *buf, char **start, kcl_off_t offset, \
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:516:12: warning: 'firegl_debug_proc_write_wrap' defined but not used [-Wunused-function]
static int firegl_debug_proc_write_wrap(void* file, const char *buffer, unsigned long count, void *data)
^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:534:12: warning: 'firegl_major_proc_read' defined but not used [-Wunused-function]
static int firegl_major_proc_read(char *buf, char **start, kcl_off_t offset,
^
cc1: some warnings being treated as errors
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.17'
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

Last edited by Brosch91; 11-14-2013 at 09:22 PM.
 
Old 11-14-2013, 10:49 PM   #4
Brosch91
LQ Newbie
 
Registered: Jun 2013
Location: Michigan, USA
Distribution: Slackware64 14.1
Posts: 23

Original Poster
Rep: Reputation: Disabled
I've decided to start using the open source radeon driver in Slackware 14.1 It seems to perform just as good, if not better than fglrx did for me back in 14.0. So I guess this topic is now solved...in a way

Thanks for the help anyways Reaper! But I just don't think it's worth screwing around with fglrx when the open source radeon driver works fine...it even runs Compiz without any issues!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
32 bit fglrx drivers in slackware 64 multilib trademark91 Slackware 2 12-20-2010 11:06 AM
no DMPS shutoff after re-installing ATI fglrx drivers garydale Linux - Hardware 12 08-24-2009 10:49 PM
Slackware 10.2 and fglrx (ATI Drivers) cythrawll Slackware 7 10-18-2005 05:44 PM
Problem with ATI fglrx drivers on mandriva2005 olkku486 Linux - Hardware 5 06-27-2005 06:10 AM
FGLRX drivers - Slackware 9.1 - Radeon 9600 Pro gf3 Linux - Software 2 04-09-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration