Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-24-2007, 02:15 PM   #1
Registered: Feb 2007
Location: Peterborough, Ontario, Canada
Distribution: Fedora 8
Posts: 36

Rep: Reputation: 15
fglrx fails to compile? custom 2.6.20

Hi there. I just got back into Linux (last time I used Slackware was version 7.0) and have been able to get my PC running perfectly and my laptop (IBM T43) is almost there. I have a full install of Slack 11 and the problem I am facing right now is getting my ATI x300 working. I have a custom 2.6.20 kernel and downloaded and tried to install ATI's latest (8.34.8) from the site. I have tried using the installer as well as the rpm (rpm2tgz ...) but neither works. Please help me figure out why I cant compile.

My relevant kernel options:
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_DRM is not set

My error message:
root@quasimodo:/lib/modules/fglrx/build_mod/2.6.x# make
make -C /lib/modules/ SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x m
make[1]: Entering directory `/usr/src/linux-'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:204: error: syntax error befo
re "mlock"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:206: error: syntax error befo
re "munlock"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:211: error: syntax error befo
re "modify_ldt"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:238: warning: return type def
aults to `int'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:238: warning: function declar
ation isn't a prototype
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `_syscall3':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:238: error: parameter `firegl
' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:239: error: parameter `__ke_d
ebuglevel' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:240: error: parameter `__ke_m
oduleflags' is initialized


/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:475: error: for each function it appears in.)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:475: confused by earlier errors, bailing out
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-'
make: *** [kmod_build] Error 2
Please, any assistance would be appreciated. I tried reading the sticky threads and searched the forums but have not been able to get this working. Thanks in advance.

Old 02-24-2007, 02:49 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0

Hi Kramed

Kernel 2.6.20 is not supported... Yea, i know its hard to belive. You'll find more info here:

Good luck
Old 02-24-2007, 02:51 PM   #3
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Rep: Reputation: 30
There's a patch you can download at Just use the search button you'll find it
Old 02-24-2007, 03:06 PM   #4
Registered: Feb 2007
Location: Peterborough, Ontario, Canada
Distribution: Fedora 8
Posts: 36

Original Poster
Rep: Reputation: 15
What a joke, ATI. As much as I would like to support a Canadian tech company they sure are getting slapped around by Nvidia regarding Linux support.

To anyone having the same problem, great thread on Ubuntu forums also:

Thanks for the help guys, I got it working. A whooping 300 fps from glxgears. Go ATI mobility !


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 module build fails (i think it is the kernel?) android6011 Linux - Hardware 3 01-06-2007 06:50 PM
fglrx.ko insertion fails on Radeon X700 BlueSpirit Slackware 2 09-15-2006 09:54 PM
ati-fglrx driver fails to load :@ Infernal211283 Linux - Newbie 4 04-02-2005 10:52 AM
fglrx compiling custom module problem (firegl_public.c) Slate01 Linux - Hardware 0 11-25-2004 03:25 PM
X fails when ATI FGLRX driver installed black hole sun Linux - Software 6 08-08-2004 08:16 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:18 PM.

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