LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2005, 04:27 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
fglrx 8.10.19 make.sh error


EDIT:
This thread is regarding the 8.10.19 drivers.

Hi all,

The previous versions of the driver did managet to be compiled and installed.. But the new version (fglrx_6_8_0-8.8.25-1.i386) now is giving me a very strange error when i
sh make.sh

Anyone have any ideas on the cause of the error?

Btw, i'm on kernel 2.6.11

Code:
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
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.11/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.11'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `firegl_stub_putminor':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:503: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:505: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:574)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `firegl_stub_register':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:525: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:573)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:556: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_get_vm_phys_addr':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1578: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `do_vm_shm_nopage':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2073: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_vm_phys_addr_str':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2444: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
/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:2532: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_vm_map':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2593: warning: implicit declaration of function `remap_page_range'
/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:2747: error: parse error before '*' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2747: warning: type defaults to `int' in declaration of `drm_agp_module_stub'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2747: warning: data definition has no type or storage class
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agpgart_available':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2889: error: `drm_agp_t' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2889: error: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2889: error: for each function it appears in.)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2889: error: parse error before ')' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2910: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2912: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2915: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2917: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2920: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2922: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2925: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2927: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2930: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2932: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2935: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2937: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2940: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2942: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2945: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2947: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_uninit':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3018: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_free_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3051: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3052: error: request for member `free_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_allocate_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3061: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3062: error: request for member `allocate_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_bind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3072: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3073: error: request for member `bind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_unbind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3083: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3084: error: request for member `unbind_memory' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_enable':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3094: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3096: error: request for member `enable' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_acquire':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3142: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3143: error: request for member `acquire' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_release':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3153: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3154: error: request for member `release' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `__ke_agp_copy_info':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3167: error: request for member `copy_info' in something not a structure or union
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3174: error: request for member `copy_info' in something not a structure or union
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-2.6.11'
make: *** [kmod_build] Error 2
build failed with return value 2

Last edited by xushi; 03-07-2005 at 09:18 AM.
 
Old 03-04-2005, 10:20 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 479

Rep: Reputation: 89
It seems to be a problem with installed linux kernel sources or with their version conflict respectively.
Your system looks like to be running on 2.6.11 kernel. Check if your installed kernel sources package is the same version (ls /var/log/packages/kernel-source*).
 
Old 03-04-2005, 10:50 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Thanks dunric

I don't have my kernel listed in /var/log/packages. And i've deleted all the other versions, just keeping the 2.6.11 src. But still it doesn't like it (or something ..)
 
Old 03-05-2005, 09:00 PM   #4
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
1) 8.10.19 is the latest, not 8.8.25

2) You *will* need a patch to install the ATi drivers on 2.6.11 (but I don't know of any yet since I'm still waiting for Reiser4 patches to 2.6.11 vanilla)
 
Old 03-05-2005, 10:25 PM   #5
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally posted by xushi
And i've deleted all the other versions, just keeping the 2.6.11 src.
Did you delete the kernel-headers package as well (/var/log/packages/kernel-headers-2.4.xx-i386-1)? If so you'll need to re-install the kernel headers package.

HTH,
MMYoung
 
Old 03-06-2005, 03:39 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by MMYoung
Did you delete the kernel-headers package as well (/var/log/packages/kernel-headers-2.4.xx-i386-1)? If so you'll need to re-install the kernel headers package.

HTH,
MMYoung
Luckely, no i havent deleted the headers yet. I'll keep everyone informed incase i do find the patch.
 
Old 03-06-2005, 02:05 PM   #7
morphus
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
The patch-file is attached to this post:

http://lists.suse.com/archive/suse-x...-Feb/0028.html

*greetings
 
Old 03-07-2005, 08:43 AM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
EDIT:
Cleared previous message.. Here's the problem.

patched successfully, but when i 'sh make.sh' i get this warning.
Code:
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
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.11/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.11'
  Building modules, stage 2.
  MODPOST
*** Warning: "remap_page_range" [/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko] undefined!
make[1]: Leaving directory `/usr/src/linux-2.6.11'
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
Fair enough... when i 'sh make_install.sh', i get this error
Code:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
FATAL: Error inserting fglrx (/lib/modules/2.6.11/kernel/drivers/char/drm/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error running install command for fglrx
failed.
dmesg shows the following
Code:
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol remap_page_range
ouch =/

Last edited by xushi; 03-07-2005 at 09:04 AM.
 
Old 03-07-2005, 11:37 AM   #9
morphus
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
hm the same here... perhaps I find time to investigate it later.
 
Old 03-13-2005, 01:42 PM   #10
Matteuz
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian Sarge (2.6.11-2)
Posts: 1

Rep: Reputation: 0
Has anyone advanced in this problem, I seem to have the same one

-Matteuz
 
Old 03-13-2005, 02:37 PM   #11
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
I'm still stuck on the matter =/

But if i'll keep this post updated if i figure it out. I hope everyone else does =)
 
Old 03-13-2005, 04:51 PM   #12
dAb74
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Hi there, I'm new to this board.. found this thread with google.

To load the fglrx module you first have to apply the patch attached to the post linked by morphus, then you have to replace any occurrence of remap_page_range with remap_pfn_range in firegl_public.c, then rebuild the module.

Let me now if it works for you, I didn't tested it yet with a full working Xorg but it seems to load flawlessly.

Cheers
 
Old 03-13-2005, 05:32 PM   #13
dAb74
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Crap. X says fglrx can't be located, and there's no fglrx_drv.o in usr/X11R6/lib/modules/drivers indeed. Ok what now? I'm stuck.
 
Old 03-13-2005, 07:16 PM   #14
xaxeon
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
There is a new Kernel out 2.6.11.3. Installed that, running 10.1, latest fglrx-8.10.19 drivers, running a ati 9600 pro turbo(laptop).

Originally, Xorg would freeze on startup after applying the patch shown earlier in this thread and the remap_page_range to remap_pfn_range fix, while running 2.6.11.2.

After updating to 2.6.11.3 and applying only the two patches located here: http://www.rage3d.com/board/showthread.php?t=33806492 it is up and running. Only noticed one issue since, it doesn't return correctly to the console after exiting X, however runs fine in X. Hope this info helps.
 
Old 03-14-2005, 03:15 AM   #15
dAb74
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Ok I'll try with the 2.6.11.3 kernel.. just a guess, are you using the radeonfb framebuffer driver in console?
 
  


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 fglrx module c_olin3404 Debian 2 08-19-2005 06:00 PM
ATI Driver Install fglrx error 2.6.12.3 PSIPHON Slackware 6 08-12-2005 11:53 PM
fglrx cant work correctly even though it can be loaded without error kira Linux - Hardware 12 04-17-2005 04:09 PM
Fglrx console=>X changing problem and fglrx resume zbychdm Linux - Hardware 2 09-21-2004 01:58 PM
agpart fglrx error in backround using winex snoopyswiss Linux - Games 0 09-10-2004 06:33 AM


All times are GMT -5. The time now is 05:20 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