LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-10-2007, 11:09 PM   #16
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31

So I decided to uninstall the ati drivers and reinstall them. Then I thought I would take a look at the install log to see what was going on and I found this mess:

Code:
[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.
ATI module generator V 2.0
==========================
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.20.6/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.20.6'

  WARNING: Symbol version dump /usr/src/linux-2.6.20.6/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:208: error: syntax error before "mlock"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:210: error: syntax error before "munlock"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:215: error: syntax error before "modify_ldt"
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:242: warning: return type defaults to `int'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:242: warning: function declaration 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:242: error: parameter `firegl' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:243: error: parameter `__ke_debuglevel' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:244: error: parameter `__ke_moduleflags' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:247: error: storage class specified for parameter `__mod_author247'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:247: error: parameter `__mod_author247' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:247: warning: `__used__' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:247: error: section attribute not allowed for '__mod_author247'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:248: error: storage class specified for parameter `__mod_description248'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:248: error: parameter `__mod_description248' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:248: warning: `__used__' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:248: error: section attribute not allowed for '__mod_description248'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: storage class specified for parameter `__check_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: warning: `always_inline' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: syntax error before '{' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: storage class specified for parameter `__param_perm_check_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: parameter `__param_perm_check_firegl' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: storage class specified for parameter `__param_str_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: parameter `__param_str_firegl' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: storage class specified for parameter `__param_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: parameter `__param_firegl' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: warning: `__used__' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: section attribute not allowed for '__param_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: alignment may not be specified for '__param_firegl'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: storage class specified for parameter `__mod_firegltype252'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: parameter `__mod_firegltype252' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: warning: `__used__' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:252: error: section attribute not allowed for '__mod_firegltype252'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:255: error: storage class specified for parameter `__mod_license255'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:255: error: parameter `__mod_license255' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:255: warning: `__used__' attribute ignored
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:255: error: section attribute not allowed for '__mod_license255'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:261: error: parameter `__ke_UTS_RELEASE' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:262: error: parameter `__ke_PAGE_SHIFT' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:263: error: parameter `__ke_PAGE_SIZE' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:264: error: parameter `__ke_PAGE_MASK' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:265: error: parameter `__ke_LINUX_VERSION_CODE' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:272: error: parameter `__ke_MODVERSIONS_State' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:277: error: parameter `__ke_SMP_State' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:286: error: parameter `__ke_PAE_State' is initialized
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:297: error: syntax error before '{' token
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:333: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:333: error: storage class specified for parameter `device_t'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:335: warning: type defaults to `int' in declaration of `device_t'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:335: error: storage class specified for parameter `device_t'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:335: error: conflicting types for 'device_t'
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:333: error: previous definition of 'device_t' was here
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:335: error: syntax error before "firegl_public_device"
In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:341:
/lib/modules/fglrx/build_mod/2.6.x/drm.h:104: error: storage class specified for parameter `drm_handle_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:105: error: storage class specified for parameter `drm_context_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:106: error: storage class specified for parameter `drm_drawable_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:107: error: storage class specified for parameter `drm_magic_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:124: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:124: error: storage class specified for parameter `drm_clip_rect_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:136: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:136: error: storage class specified for parameter `drm_tex_region_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:148: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:148: error: storage class specified for parameter `drm_hw_lock_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:182: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:182: error: storage class specified for parameter `drm_version_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:193: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:193: error: storage class specified for parameter `drm_unique_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:199: error: syntax error before "drm_version_t"
/lib/modules/fglrx/build_mod/2.6.x/drm.h:199: warning: no semicolon at end of struct or union
/lib/modules/fglrx/build_mod/2.6.x/drm.h:205: warning: structure defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:205: error: storage class specified for parameter `drm_block_t'
/lib/modules/fglrx/build_mod/2.6.x/drm.h:219: warning: enum defined inside parms
/lib/modules/fglrx/build_mod/2.6.x/drm.h:221: warning: structure defined inside parms

....snip....

lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:479: 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-2.6.20.6'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.

It never built the damn module and I didn't know it until I checked the log. Looks like a compile error of some type... Going to check now to make sure my GCC is up-to-date...
 
Old 04-11-2007, 09:31 AM   #17
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Well, thinking I had a some type of kernel header mismatch (noticed that the old 2.4.x slackware kernel headers were installed), I removed them and the 2.4.x kernel source via the pkgtool. But now, I get "make errors" when trying to do a "make menuconfig" on my 2.6.20.6 kernel. Why would removing those headers and source file affect my 2.6.20 kernel??

Man, I thought I was on to something.

Do I need anything to actually compile programs for my slack box besides the 2.6.20.6 kernel source??
 
Old 04-11-2007, 09:34 AM   #18
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 34
i did a quick search and found that other people who got this similar error were missing a kernel-syms package.
 
Old 04-11-2007, 10:16 AM   #19
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 34
i saw a post yesterday about how it said to only use the 2.4 headers...

in the /extra/2.6.17 folder there is a kernel header warning file.. here is what it says
Quote:
This package of 2.6.x based /usr/include/linux and /usr/include/asm headers
is being provided by request for some people who need it in order to compile
ASDL modem drivers for 2.6.x. As a general rule, installing kernel headers
that are newer than the kernel glibc was compiled with *may* cause problems,
so unless you need these for a particular reason it's best to stick with the
2.4.x kernel-headers package for now.

Note -- if you compile with NPTL then you might want to use these headers,
and glibc's NPTL was compiled using 2.6 headers, so all should be well.
In that case, specify using NPTL libs and headers with these compile
options:

-I/usr/include/nptl -L/usr/lib/nptl

Good luck!

-P.
 
Old 04-11-2007, 10:41 AM   #20
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
How does one get hernel header files for their own kernel? And why would one want to use kernel headers for a kernel that is different from their own. I.e. kernel headers file for a 2.4.x kernel when I am running a 2.6.x kernel.

I figured I would need anything from a 2.4.x kernel so I removed it.

Man, I still have a lot to learn...
 
Old 04-11-2007, 10:50 AM   #21
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
As a general rule, installing kernel headers
that are newer than the kernel glibc was compiled with *may* cause problems,
so unless you need these for a particular reason it's best to stick with the
2.4.x kernel-headers package for now.


(for some reason quote tags are not working)

Last edited by H_TeXMeX_H; 04-11-2007 at 10:52 AM.
 
Old 04-11-2007, 10:59 AM   #22
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Well I downloaded the 2.6.x headers to see if that would fix the ATI problem. If it doesn't I'll delete them and then reinstall the 2.4.x headers...

Just trying to figure out what is causing the ATI module builder script to blow up... I was thinking it was because I am using a 2.6.x kernel and still using 2.4.x kernel headers.

But this is just a guess
 
Old 04-11-2007, 11:21 AM   #23
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
2.6.x kernel headers didn't work either so I deleted them and reinstalled the 2.4.x kernel headers.

I think I am giving up on fglrx for now. At least I have 2D working properly... But getting the 3D working is beginning to give me a headache...

At least I know it is because the ATI module builder script is breaking on something. Just have to figure out what.

I'll look into the kernel-syms to see what that is about.

Last edited by Biggen; 04-11-2007 at 11:24 AM.
 
Old 04-11-2007, 11:39 AM   #24
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Quote:
Originally Posted by Biggen
I was thinking it was because I am using a 2.6.x kernel and still using 2.4.x kernel headers.
Exactly, but nobody will say "Ok, you right!" becouse Linus said in Jun 1998 (here)
Quote:
In short, I'd prefer being _intentionally_ rude to people to make them not
want to use the kernel header files, than to have to know that 5 years
from now when people are using libc-17.9, then people will still worry
about whether the kernel header files work together with their old
libraries.
ls /var/log/packages (on my Slackware 11.0 personal computer):
Quote:
kernel-generic-2.6.17.13-i486-1
kernel-generic-2.6.18-i486-1
kernel-headers-2.4.33.3-i386-1
kernel-headers-2.6.17.13-i386-1
kernel-headers-2.6.18-i386-1
kernel-ide-2.4.33.3-i486-1
kernel-modules-2.4.33.3-i486-1
kernel-modules-2.6.17.13-i486-1
kernel-modules-2.6.18-i486-1
kernel-source-2.4.33.3-noarch-1
kernel-source-2.6.17.13-noarch-1
kernel-source-2.6.18-noarch-1
Guess what! I never had any problem with kernel headers or with ATi proprietary driver or with wine , so on

Last edited by Road_map; 04-11-2007 at 11:41 AM.
 
Old 04-11-2007, 01:26 PM   #25
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
I'm going to send a mail to ATI's tech support and see what they tell me. I know that Slack isn't officially supported for the linux drivers but maybe they will have an idea on why the ati module config script is having problems...
 
Old 04-11-2007, 02:03 PM   #26
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Have you tried doing this with an older kernel. I've heard ATI has really crappy support, and it takes them forever to get their drivers working with new kernels and new xorg.
 
Old 04-11-2007, 02:11 PM   #27
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by H_TeXMeX_H
Have you tried doing this with an older kernel. I've heard ATI has really crappy support, and it takes them forever to get their drivers working with new kernels and new xorg.
You know, I haven't done this but I thought about it earlier. I supposed I could download the earliest version of the 2.6 kernel and try that. Or even drop down to 2.5.x. One would think though that their drivers would be compatible with the 2.6.x kernels.

It is unfortunate that ATI's drivers are not open source. I guess they are bound my NDA's and other proprietary agreements so that they can't open source their drivers but they are shooting themselves in the foot by not doing so. Essentially, the development and growth is so slow with their drivers that a lot of people are switching to Nvidia for good video support through linux. I mean, what do they have, one or two guys working on the linux drivers? They change one or two lines of code a month and release it as a new driver. Gimme a break...

These drivers *could* be great if the open source community had them.
 
Old 04-11-2007, 03:31 PM   #28
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Maybe try the default Slack 2.6.x kernel. That's 2.6.17.13
 
Old 04-11-2007, 03:37 PM   #29
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by H_TeXMeX_H
Maybe try the default Slack 2.6.x kernel. That's 2.6.17.13
Which one are you talking about? I thought the default Slack kernel was 2.4.33.3.
The huge.26 is 2.6.17.13 and the test26.s is 2.6.18.

The huge.26 is the kernel that I had to use to boot slack initially as its default scsi.i
2.4.33.3 kernel didn't work on my system. I then compiled a new one as, from the reading I did
didn't think that kernel was too stable.

So do you mean download from kernel.org the 2.6.17.13 source and compile that kernel?
 
Old 04-11-2007, 04:01 PM   #30
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, ok it's not the default, but I meant the stable Slackware 2.6.x kernel (as opposed to testing). You can find it in 'extra/linux-2.6.17.13' of the slackware install CD2/DVD. That would be generic (the kernel itself), modules, headers, and source. You may need to edit the config and recompile your own ... depends on what you're running.

Last edited by H_TeXMeX_H; 04-11-2007 at 04:03 PM.
 
  


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
ATI on Fedora 6: ati-fglrx-config-display beatlestones Linux - General 1 02-25-2007 06:48 AM
fglrx-driver vs ATI kernel driver for ATI Radeon 9200 in Debian Debian_Poland Debian 3 02-01-2006 01:10 PM
ATi fglrx and Xinerama objorkum Linux - Software 0 11-01-2004 10:50 AM
X fails when ATI FGLRX driver installed black hole sun Linux - Software 6 08-08-2004 07:16 AM
ATI 9500, fglrx-glc22-4.1.0, fglrx-glc22-4.2.0, fglrx-glc22-4.3.0 ctrl_alt_delx Linux - Hardware 1 09-30-2003 05:48 AM

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

All times are GMT -5. The time now is 01:10 PM.

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