LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 11-11-2003, 12:35 PM   #1
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Rep: Reputation: 15
once again. sound card driver installation problem


i followed up this achieve (here) to setup my sound card driver. there is an error occured when i was trying to do this:


[root@localhost alsa-driver-0.9.4]# make; make install
make all-deps
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'

Please, run the configure script as first...

rm -f /snd*.o /persist.o /isapnp.o
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[1]: *** No rule to make target `modules_install'. Stop.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make: *** [install-modules] Error 1
[root@localhost alsa-driver-0.9.4]#


what does this mean? what do i need to do? thx for your help.

ps: i m using RH9 on A7V8X mainboard. thx
 
Old 11-11-2003, 12:42 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Before typing make you must run the configure script for the package. You invoke it by cd'ing to the directory (alsa-driver-0.9.4) and typing ./configure.
After that you can make and make install.

By the way, you don't need to be root to configure and build it. Only the last step, make install, requires root privileges. So do the config and making as yourself, then when you're ready to install it, type su and then the root password when you're asked for it. Type exit to return to your normal self when you're done.

Håkan
 
Old 11-11-2003, 12:44 PM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Oh, and you can type ./configure --help before configuring to get a list of options. Since there are so many cards supported (and my computer is slow) i use ./configure --with-cards=cs4236 or whatever card is in my computer. It really saves time, especially if you haven't broken the 400MHz barrier yet.

Håkan
 
Old 11-11-2003, 12:53 PM   #4
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Original Poster
Rep: Reputation: 15
well... i did what u said as follow:

[root@localhost alsa-driver-0.9.4]# ./configure --with-cards=via82xx
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/xp/softwarez/audio/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).


and it displayed the same message as above. anything wrong? thx
 
Old 11-12-2003, 04:32 PM   #5
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Original Poster
Rep: Reputation: 15
anyone knows? :S
 
Old 11-13-2003, 06:28 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You need the configured kernel source in /usr/src/linux. If you have it elsewhere, like in /usr/local/src/linux, you have to specify it on the configure command line, like this: ./configure --with-kernel=/usr/local/src/linux

Håkan
 
Old 11-14-2003, 05:51 PM   #7
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by hw-tph
You need the configured kernel source in /usr/src/linux. If you have it elsewhere, like in /usr/local/src/linux, you have to specify it on the configure command line, like this: ./configure --with-kernel=/usr/local/src/linux

Håkan
thx! but it can't find the file/directory in neither /usr/src/linux or /usr/local/src/linux . where is it pls? anywhere else?
 
Old 11-15-2003, 06:43 PM   #8
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Original Poster
Rep: Reputation: 15
sign..... help.......please.....
 
Old 11-15-2003, 06:56 PM   #9
BlakeJob
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
I don't know where it is in Red Hat but one possibility is that you didn't have it installed. I just read up that it is on the second CD if you do not have it installed.
 
Old 11-17-2003, 12:34 PM   #10
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Original Poster
Rep: Reputation: 15
ok... thx for your advice. i just installed the kernel source. and i just try to config as below:

[root@localhost alsa-driver-0.9.4]# ./configure --with-kernel=/usr/src/linux-2.4checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/xp/softwarez/audio/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /usr/src/linux-2.4
checking for kernel version... 2.4.20-8
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.

*** Please make sure that the same compiler version was used for building kernel.

checking for kernel linux/pm.h... "yes"
checking for kernel linux/spinlock.h... "yes"
checking for kernel linux/irq.h... "yes"
checking for kernel linux/threads.h... "yes"
checking for kernel linux/rwsem.h... "yes"
checking for kernel linux/gameport.h... "yes"
checking for kernel linux/devfs_fs_kernel.h... "yes"
checking for kernel linux/highmem.h... "yes"
checking for kernel linux/workqueue.h... "yes"
Removing a dummy linux/workqueue.h.
checking for redhat kernel... "yes"
It looks like you're using a RedHat 9 kernel.
Disabling their incomplete workqueue.h modification.
checking for kernel asm/hw_irq.h... "yes"
checking for kernel linux/jiffies.h... "no"
checking for kernel linux/adb.h... "yes"
checking for kernel linux/cuda.h... "yes"
checking for kernel linux/pmu.h... "yes"
checking for kernel module symbol versions... "yes"
checking for PCI support in kernel... "yes"
checking for SGI/MIPS (HAL2) architecture... "no"
checking for directory to store kernel modules... /lib/modules/2.4.20-8/kernel/sound
checking for verbose printk... on
checking for debug level... none
checking for ISA support in kernel... "yes"
checking for processor type... k7
checking for SMP... "no"
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... no
checking for Kernel ISA-PnP support... "yes"
checking for strlcpy... "no"
checking for snprintf... "yes"
checking for vmalloc_to_page... "yes"
checking for old kmod... "yes"
checking for driver version... 0.9.4
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for RTC callback support in kernel... "no"
checking for USB support... "no"
checking for USB module support... "yes"
checking for kernel PCMCIA
checking for PCMCIA support... "no"
checking for PCMCIA module support... "yes"
checking for PC9800 support in kernel... "no"
checking for which soundcards to compile driver for... all
configure: creating ./config.status
config.status: creating version
config.status: creating Makefile.conf
config.status: creating snddevices
config.status: creating utils/alsa-driver.spec
config.status: creating utils/buildrpm
config.status: creating toplevel.config
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/config1.h
config.status: include/config1.h is unchanged
config.status: creating include/version.h
config.status: include/version.h is unchanged


and then:

[root@localhost alsa-driver-0.9.4]# make;make install
make dep
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make[2]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[2]: *** No rule to make target `fastdep'. Stop.
make[2]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make: *** [include/sndversions.h] Error 2
rm -rf /lib/modules/2.4.20-8/kernel/sound
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[1]: *** No rule to make target `modules_install'. Stop.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make: *** [install-modules] Error 1


it still has errors..... what is the problem? thanks for you guys to help me--> super newbie. thanks again!
 
Old 11-22-2003, 10:18 AM   #11
psoren
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Let me try to clarify what is needed here.

In order to install alsa, you need a *configured* Linux source tree. Minimally the include
directory which is typically located at /usr/src/linux/include. RH I believe normally installs
this directory.

Before a Linux kernel can be built certain options must be selected. During the kernel configuration process, certain lines are changed in the various header files (like version.h) to make linux build right.

Of interest to alsa is the sound options which were configured into your specific kernel as
it was built. You can't simply restore this directory from a clean kernel distribution. You
need to restore thus directory from your RH9 installation disk set (not the SRPM disks).

Unfortunately, its been a while since I installed RH in pieces so I don't recall the
procedure. If I had RH9 installed, I could post the header directory as a tar.bz2 for you.
Probably the quickest way is to install RH9 on a clean partition and copy the needed
linux directory over to your working partition.

A word of caution: I also have a A7V8X motherboard. It took some tweaking to get it
working. Everything seemed to work, but any sound player would hang and there would
be no sound output. In the end it turned out to be IRQ conflicts. I configured BIOS to
make it think the OS was non-PNP. Then it all works fine. I'm using a custom configured
2.4.20 kernel, so you might not have this problem.
 
  


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
Sound Card Installation Problem Blipside Linux - Laptop and Netbook 3 08-17-2005 01:26 AM
sound card help ESS1978 Sound Card - maestro driver fatrandy13 Linux - Hardware 1 05-03-2005 02:43 AM
Sound Card Driver Install Problem. daf0x Linux - Software 1 06-30-2004 08:23 PM
solaris installation problem --> can't get right graphic card driver feetyouwell Solaris / OpenSolaris 2 01-06-2004 01:17 PM
Driver installation: A-CARD AEC6280 IDE card in Mandrake 9.2 Bob Groves Linux - Hardware 1 12-02-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:06 AM.

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