LinuxQuestions.org
Review your favorite Linux distribution.
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 04-14-2008, 04:46 PM   #1
superdog
Member
 
Registered: Feb 2008
Distribution: slackware, suse, anything that begins with S
Posts: 45

Rep: Reputation: 16
fglrx fails to build


I installed slackware 12.0 (didn't install kernel source). I then got the 2.6.24.4 vanilla sources and built a new kernel. I put the source in /usr/src and made a /usr/src/linux symlink to it.

I added /dev/shm to my fstab

Then I got the ati driver installer and tryed to run it. It froze up my laptop and i had to reboot so i tried building the slackware package with --buildpkg Slackware/All (I can't remember the exact command I used, I got it from the --listpkg)

but it fails to build like this:

Code:
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
 Assuming default VMAP API
 Assuming default munmap API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.24.4/build SUBDIRS=/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/root/linux-2.6.24.4'
  CC [M]  /fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_check_pci':
/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: error: implicit declaration of function 'pci_find_slot'
/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1951: warning: assignment makes pointer from integer without a cast
make[2]: *** [/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/fglrx-install.2KVhj3/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/root/linux-2.6.24.4'
make: *** [kmod_build] Error 2
build failed with return value 2
Error -> I don't have make module
I have an ati radeon x1100 (it's on a pci bus in an acer laptop) and so acceleration won't work with the open source drivers. Does anyone know what is wrong here or what I've done wrong?
 
Old 04-14-2008, 05:56 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
A quick google turned up few specific results. Are you using the latest (8.3) drivers? (There are some older drivers labeled higher than 8.3, but because they changed their numbering scheme seemingly to confuse potential users, 8.3 is in fact the latest). It has been suggested to enable CONFIG_PCI_LEGACY=Y in the kernel, so you may wish to try that -- but I'm not sure if it'll work. It is also possible that the drivers just won't work such a late kernel version -- but you'll have to wait for others to reply for that information.
 
Old 04-14-2008, 06:32 PM   #3
superdog
Member
 
Registered: Feb 2008
Distribution: slackware, suse, anything that begins with S
Posts: 45

Original Poster
Rep: Reputation: 16
Thanks for that, I'll try what you suggest. I have another distro (slamd64) with the same kernel version and the drivers work ok, so it's not that, I assume it must be something in my kernel config.

Last edited by superdog; 04-14-2008 at 06:33 PM.
 
Old 04-15-2008, 09:27 PM   #4
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
im using 2.6.24.4 and ati driver built fine. I would have to say it is your build if you use the generic config from slackware current it will build. I use the config file as a starting point and really only adjust abit of it.

Also this confuses me:
make[1]: Entering directory `/root/linux-2.6.24.4'
Should say:
make[1]: Entering directory `/usr/src/linux-2.6.24.4'

Go the alienbobs wiki and read the linux kernel build section. google it!

Last edited by symatic; 04-15-2008 at 11:59 PM. Reason: Just noticed that
 
Old 04-16-2008, 07:38 AM   #5
superdog
Member
 
Registered: Feb 2008
Distribution: slackware, suse, anything that begins with S
Posts: 45

Original Poster
Rep: Reputation: 16
Ah, you got it i think. I originally built my kernel in /root. Rebuilt and it builds without error.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fglrx driver for kernel 2.6.22.1 (custom build) frieza Linux - Hardware 6 11-27-2007 03:26 PM
etch: will ATIs fglrx* .deb pkgs still build if I upgrade kernel? HowDoIProgramIt Debian 9 08-06-2007 11:59 AM
fglrx fails to compile? custom 2.6.20 kramed Slackware 3 02-24-2007 03:06 PM
fglrx module build fails (i think it is the kernel?) android6011 Linux - Hardware 3 01-06-2007 06:50 PM
module-assistant cant build fglrx android6011 Linux - General 3 12-16-2006 04:41 PM


All times are GMT -5. The time now is 05:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration