LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-25-2004, 07:44 PM   #1
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Rep: Reputation: 15
compiling ATI 3.7.0 with 2.6.3 kernel


Last night I upgraded my 2.4.22 kernel to the 2.6.3 kernel, and now I can't get the ATI drivers to compile. I downloaded the sources, compiled them, then rebooted into the new kernel. Then I unpacked the drivers, went to /lib/modules/fglrx/build_mod/ and applied the AMD and vmalloc patch, and attempted to run ./make.sh. Here is what happens:

ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
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.3/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/home/darktyco/linux-2.6.3'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
CC arch/i386/kernel/asm-offsets.s
In file included from include/asm/system.h:5,
from include/asm/processor.h:18,
from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from include/linux/signal.h:4,
from arch/i386/kernel/asm-offsets.c:7:
include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from include/asm/system.h:5,
from include/asm/processor.h:18,
from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from include/linux/signal.h:4,
from arch/i386/kernel/asm-offsets.c:7:
include/linux/kernel.h:71: syntax error before "va_list"
include/linux/kernel.h:71: warning: function declaration isn't a prototype
include/linux/kernel.h:74: syntax error before "va_list"
include/linux/kernel.h:74: warning: function declaration isn't a prototype
include/linux/kernel.h:78: syntax error before "va_list"
include/linux/kernel.h:78: warning: function declaration isn't a prototype
make[2]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 2
make[1]: Leaving directory `/home/darktyco/linux-2.6.3'
make: *** [kmod_build] Error 2
build succeeded with return value 0
ln: `./fglrx.ko': File exists
duplicating results into driver repository...
cp: cannot stat `fglrx.ko': No such file or directory
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================


I don't get why its doing this, and I haven't heard of this problem yet before. Can anyone help me figure this one out?

Edit: I'm running Slackware 9.1 btw

Last edited by Darktyco; 02-25-2004 at 10:14 PM.
 
Old 02-25-2004, 11:48 PM   #2
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Original Poster
Rep: Reputation: 15
Okay, so I have made a discovery and found my problem has something to do with compiling the kernel itself (as root.)

I moved the source out of my home directory and into /usr/src/linux-2.6.3, and updated the linux soft link. I then changed the link /lib/modules/2.6.3/build to the correct spot also. Now when I try to compile the sources themselves in this new location (as root) it gives me the same exact errors as above! Why is it that my regular user can compile them fine but as root I can't do it?

Also, this is not a new problem. Back when I compiled my 2.4.22 kernel, I was unable to compile the sources as root because I would get all sorts of errors like these. But when I moved them into my home directory and compiled them as a regular user everything went smoothly.

Can someone please tell me what's wrong with my system?
 
Old 03-21-2004, 04:23 AM   #3
PiscisBos
LQ Newbie
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
I'm not 100% sure but i don't think those errors are critical. At any rate take a look at this thread http://linuxquestions.org/questions/...r&pagenumber=1
 
  


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
error compiling ati module with 2.6.11-rc4 usethesource Linux - Hardware 1 02-13-2005 05:40 PM
ati driver compiling with wrong kernel source madcow007 Linux - Hardware 7 02-15-2004 10:04 AM
Problem Compiling DRI for ATI Mach64 on 2.6.0 intens Slackware 2 01-09-2004 12:28 PM
compiling ATI Mach64GX driver rastavideo Linux - Newbie 2 01-29-2003 02:39 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
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