SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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??
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:
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.
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.
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.
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):
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...
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.