Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
04-06-2003, 09:22 AM
|
#1
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Rep:
|
sound card problem
i have some problem with my built in sound card which is the sound quality is very bad
when i run sndconf i got thos msg
A PCI sound card was found in your │
│ system. The details are: │
│ │
│ Model: Intel Corporation|ICH4 │
│ 845G/GL Chipset AC'97 Audio Controller │
│
The following error occurred running the modprobe program: │
│ │
│ /lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/i810_audi │
│ o.o.gz: init_module: No such device │
│ modprobe: insmod │
│ /lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/i810_audi │
│ o.o.gz failed │
│ modprobe: insmod sound-slot-0 failed
|
|
|
04-07-2003, 11:39 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
if you type 'cat /proc/pci' what is the output?
who makes the motherboard?
just trying to get some more info as I'm having trouble tracking down the audio chip.
have you tried alsa though?
Last edited by jpbarto; 04-07-2003 at 11:40 AM.
|
|
|
04-07-2003, 02:23 PM
|
#3
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
motherboard is Asus
|
|
|
04-07-2003, 03:25 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
ASUS what? looking at the website I'm taking a best guess based upon listed chipsets and I'm gonna say its an Asus 845G... which then means that it has a c-media 8738-mx audio chip which is supported by the alsa project.
so you would have to go to alsa's website;
http://www.alsa-project.org
and download the appropriate driver source, compile it, then modprobe it into your kernel.
course if you're motherboard is not an Asus 845G... then all this advice is wasted...
|
|
|
04-07-2003, 09:31 PM
|
#5
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
nup
it is 845g
thanx alot for ur help
i'll d/l the source and see what can i do with the modprobe
thanx for help
|
|
|
04-07-2003, 09:50 PM
|
#6
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
i found that it is C-Media 9738 4-ch not 8738
will it be supported also
|
|
|
04-07-2003, 09:52 PM
|
#7
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
yahoooooooo
i found tha driver for my sound card on the c-media main page
|
|
|
04-08-2003, 09:27 AM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
Excellent... I was having trouble finding a driver from google... I was just about to tell you to buy a sound card... I'm glad you found the driver... party on Garth.
|
|
|
04-08-2003, 09:27 AM
|
#9
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
but how shall i Turn on sound support (soundcore module)
|
|
|
04-08-2003, 09:59 AM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
soundcore module should already exist. You should just have to compile / install the downloaded driver then execute 'modprobe <module-name>'. Send me a link to the driver you downloaded an I'll take a look at it.
If you execute the modprobe and the driver complains about no soundcore being available then you'll have to recompile your kernel to add sound support. But I can't imagine that Mandrake wouldn't provide an out-of-the-box kernel w/out sound support.
|
|
|
04-08-2003, 10:43 AM
|
#11
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
|
|
|
04-08-2003, 11:52 AM
|
#12
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
ok, now I see what you mean... to check for soundcore suport execute the following as root:
<prompt># updatedb && locate sound | grep core
this should list a library in /lib/modules/2.4.xx/kernel/...
by the name of sound-core or soundcore... or something like that... (if it doesn't try to build without it... if the build complains you'll need to recompile)...
if a soundcore.so (or something like that is listed) then execute as root 'modprobe soundcore'... this will load the soundcore module into the kernel. (NOTE: if the library is named sound-core.so you'll need to execute modprobe sound-core)
then follow the instructions as listed in the readme.
let me know if you have any problems.
|
|
|
04-09-2003, 08:10 AM
|
#13
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
also the same error
i have attached the error i got
plz see it
-----------------------
[root@localhost cmaudio]# updatedb && locate sound | grep core
/usr/include/sound/core.h
/usr/src/linux-2.4.21-0.13mdk/drivers/sound/dmasound/dmasound_core.c
/usr/src/linux-2.4.21-0.13mdk/drivers/sound/sound_core.c
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/dmasound_core.stamp
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/dmasound_core.ver
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/sound_core.stamp
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/sound_core.ver
/usr/src/linux-2.4.21-0.13mdk/include/sound/core.h
/usr/src/linux-2.4.21-0.13mdk/sound/core
/usr/src/linux-2.4.21-0.13mdk/sound/core/Config.help
/usr/src/linux-2.4.21-0.13mdk/sound/core/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/hwdep32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/ioctl32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/ioctl32.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/pcm32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/rawmidi32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/seq32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/timer32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/linear.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/copy.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/io.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_plugin.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/mixer_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/mulaw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_plugin.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/plugin_ops.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/rate.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/route.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/Config.in
/usr/src/linux-2.4.21-0.13mdk/sound/core/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/control.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/device.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/hwdep.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/info.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/info_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/init.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memory_wrapper.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/isadma.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memalloc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_lib.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_gf1.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_fm.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_simple.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_iw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_device.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_writeq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_event.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_event.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_init.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_ioctl.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_midi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_midi.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_readq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_readq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_rw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_synth.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_synth.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_timer.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_writeq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_clientmgr.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi_event.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_clientmgr.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_device.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_dummy.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_fifo.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_fifo.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_info.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_info.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_instr.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_lock.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_lock.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_memory.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi_emul.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_system.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_ports.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_ports.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_prioq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_prioq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_queue.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_queue.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_system.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_timer.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_virmidi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sgbuf.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_native.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/rawmidi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/rtctimer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sound_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sound.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/wrappers.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/sound_core.c
/lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/soundcore.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss/snd-mixer-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss/snd-pcm-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-simple.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-fm.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-gf1.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-iw.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/oss
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/oss/snd-seq-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi-emul.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-device.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-dummy.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-instr.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi-event.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-virmidi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-page-alloc.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-hwdep.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-rawmidi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-pcm.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-timer.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd.o.gz
[root@localhost cmaudio]# modpr
modprobe modprobe-24 modprobe.old
[root@localhost cmaudio]# modprobe sound-core
modprobe: Can't locate module sound-core
[root@localhost cmaudio]# modprobe soundcore
[root@localhost cmaudio]# make
cc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -c -o main.o main.c
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from cmaudio.h:1,
from main.c:1:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from cmaudio.h:1,
from main.c:1:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from cmaudio.h:1,
from main.c:1:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
In file included from cmaudio.h:2,
from main.c:1:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/asm/hardirq.h:6,
from cmaudio.h:21,
from main.c:1:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from cmaudio.h:21,
from main.c:1:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
make: *** [main.o] Error 1
[root@localhost cmaudio]#
|
|
|
04-09-2003, 09:45 AM
|
#14
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
ok... modprobe soundcore works just fine so that's one step in the right direction... now we need to take a look at /usr/src... according to the compile command that 'make' issued its including files from /usr/src/linux-2.4/... (and then from /usr/src/linux)... typically the 'linux' directory in /usr/src is a symbolic link to the source tree of the actual running kernel... if the kernel you're using is linux-2.4.21-0.13.mdk such as it looks then there should be a linux-2.4.... directory in /usr/src with a name similiar... such as 'linux-2.4.21-0.13'... do an 'ls -l' and see if the 'linux' directory points to the proper actual directory... if it doesn't then 'rm linux' (be careful, we want to remove the link but not the actual directory as it contains our source). then recreate the link with 'ln -s <linux directory name> linux'.
if all this seems confusing then you can try doing an ls -l of /usr/src and we can take a better look at it. Also to find out exactly what kernel you're running execute 'uname -r'... that should tell you what version you're using.
|
|
|
04-09-2003, 10:06 AM
|
#15
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Original Poster
Rep:
|
no the link there is fine and nothing is wrong
it as as the error says
/lib/modules/linux.../build and point to usr/src/linux/....
|
|
|
All times are GMT -5. The time now is 11:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|