LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-27-2005, 04:47 AM   #1
chirayan
LQ Newbie
 
Registered: May 2005
Location: India, UP
Distribution: Mandrake at home and redhat at the office
Posts: 8

Rep: Reputation: 0
unable to make alsa-driver: error 1


I get the following error message when I try to make after configuing alsa-driver-1.0.9rc4a
Please help.



make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.9rc4a/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-1.0.9rc4a/include -I/lib/modules/2.4.21-4.ELsmp/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DEXPORT_SYMTAB -c hwdep.c
In file included from /usr/src/alsa/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /usr/src/alsa/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.4.21-4.ELsmp/build/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.9rc4a/acore'
make: *** [compile] Error 1
 
Old 05-27-2005, 05:18 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Do you have everything installed needed for the module install?

I have a win<something> or some other kind of kernel module driver such as alsa or a video card driver I have to install.
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.
 
Old 05-30-2005, 04:34 AM   #3
chirayan
LQ Newbie
 
Registered: May 2005
Location: India, UP
Distribution: Mandrake at home and redhat at the office
Posts: 8

Original Poster
Rep: Reputation: 0
I have kernel-2.4.21-4.El and gcc version 3.2.3 20 installed. I still get the error message. Do I miss anything? Whre do I go worog?The message I get in response to 'ls -alc' is given below. please help.
[root@Turing src]# ls -alc
total 24
drwxr-xr-x 6 root root 4096 May 30 08:43 .
drwxr-xr-x 15 root root 4096 May 10 11:00 ..
drwxr-xr-x 6 root root 4096 May 27 09:57 alsa
drwxr-xr-x 2 root root 4096 May 10 10:59 debug
lrwxrwxrwx 1 root root 18 May 10 12:01 linux -> linux-2.4.21-4.EL/
drwxr-xr-x 16 root root 4096 May 30 09:06 linux-2.4.21-4.EL
drwxr-xr-x 7 root root 4096 May 10 11:24 redhat
[root@Turing src]#
 
Old 05-30-2005, 07:47 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Quote:
Originally posted by chirayan
I have kernel-2.4.21-4.El and gcc version 3.2.3 20 installed. I still get the error message.
Which says....?

You have made the link /usr/src/linux, I see, no problem there.

Is the response to uname -r linux-2.4.21-4.EL?

The actual error messages would give us better info.

How to get good answers with your questions about Linux

Last edited by fancypiper; 05-30-2005 at 07:50 AM.
 
Old 05-31-2005, 05:27 AM   #5
chirayan
LQ Newbie
 
Registered: May 2005
Location: India, UP
Distribution: Mandrake at home and redhat at the office
Posts: 8

Original Poster
Rep: Reputation: 0
May be, something about my hardware is revevant in figuring out the problem. I have aIntel Pentium IV, 3.4 GHz, Hyper-threading, 800 MHz Frontside bus. Intel 915G chipset, 1GB DDR2 RAM (400 MHz), 80GB SATA disk. Gigabit Ethernet.
I am running Redhat linux workstation 3.Both the kernels, kernel-2.4.21-4.EL.i686.rpm and kernel-smp-2.4.21-4.EL.i686.rpm are installed. Other details are given below. Thank you for taking interest.

[root@Turing root]# uname -r
2.4.21-4.ELsmp
[root@Turing root]#
However, 'ls -alc' gives the following:
[root@Turing /]# cd /usr/src
[root@Turing src]# ls -alc
total 24
drwxr-xr-x 6 root root 4096 May 30 08:43 .
drwxr-xr-x 15 root root 4096 May 10 11:00 ..
drwxr-xr-x 6 root root 4096 May 27 09:57 alsa
drwxr-xr-x 2 root root 4096 May 10 10:59 debug
lrwxrwxrwx 1 root root 18 May 10 12:01 linux -> linux-2.4.21-4.EL/
drwxr-xr-x 16 root root 4096 May 30 09:06 linux-2.4.21-4.EL
drwxr-xr-x 7 root root 4096 May 10 11:24 redhat
[root@Turing src]#


[root@Turing alsa-driver-1.0.4]# ./configure
checking for gcc... gcc

........

checking for directory with kernel source... /lib/modules/2.4.21-4.ELsmp/build
checking for kernel version... 2.4.21-4.ELsmp
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-20)

*** 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 built-in ALSA... "no"
checking for existing ALSA module... "no"
checking for Red Hat kernel... "auto"
checking for Red Hat kernel... "no"
checking to modify of kernel linux/kmod.h... "no"
checking for kernel linux/compiler.h... "yes"

.......

checking for PC9800 support in kernel... "no"
checking for which soundcards to compile driver for... all
configure: creating ./config.status
..................

config.status: include/autoconf-extra.h is unchanged
[root@Turing alsa-driver-1.0.4]# make
make dep
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4'
make[2]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore'
make -C ioctl32 fastdep
make[3]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore/ioctl32'
make[3]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4/acore/ioctl32'
make -C oss fastdep
make[3]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore/oss'
copying file alsa-kernel/core/oss/mixer_oss.c
patching file mixer_oss.c
Hunk #1 succeeded at 381 (offset 5 lines).
copying file alsa-kernel/core/oss/pcm_oss.c
patching file pcm_oss.c
Hunk #1 succeeded at 2211 (offset 130 lines).
Hunk #2 succeeded at 2259 (offset 8 lines).
Hunk #3 succeeded at 2529 (offset 130 lines).
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-1.0.4/include -I/lib/modules/2.4.21-4.ELsmp/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -I/usr/src/alsa/alsa-driver-1.0.4/alsa-kernel/core/oss -fno-omit-frame-pointer mixer_oss.c pcm_oss.c pcm_plugin.c io.c copy.c linear.c mulaw.c route.c rate.c > .depend
make[3]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4/acore/oss'
make -C seq fastdep
make[3]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore/seq'
make -C instr fastdep
make[4]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore/seq/instr'
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-1.0.4/include -I/lib/modules/2.4.21-4.ELsmp/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing
................

copying file alsa-kernel/pcmcia/vx/vx_entry.c
patching file vx_entry.c
Hunk #2 succeeded at 151 (offset 4 lines).
Hunk #4 succeeded at 333 (offset 4 lines).
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-1.0.4/include -I/lib/modules/2.4.21-4.ELsmp/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include vxpocket.c vx_entry.c vxp_ops.c vxp_mixer.c vxp440.c vx_entry.c vxp_ops.c vxp_mixer.c > .depend
make[3]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4/pcmcia/vx'
make[2]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4/pcmcia'
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4'
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.4/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-1.0.4/include -I/lib/modules/2.4.21-4.ELsmp/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DEXPORT_SYMTAB -c hwdep.c
In file included from /usr/src/alsa/alsa-driver-1.0.4/include/adriver.h:51,
from /usr/src/alsa/alsa-driver-1.0.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.4.21-4.ELsmp/build/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.4/acore'
make: *** [compile] Error 1
[root@Turing alsa-driver-1.0.4]#
 
Old 05-31-2005, 05:31 AM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Do you have the kernel sources installed and you have a symbolic link /usr/src/linux pointing to the kernel source directory (usually /usr/src/linux-2.x.y (where x and y are major and minor version numbers).
 
Old 05-31-2005, 09:17 AM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Do you have multiple CPUs?

cat /proc/cpuinfo

Your running kernel, 2.4.21-4.ELsmp (a multiprocessor kernel) doesn't match your kernel-sources which is linux-2.4.21-4.EL (a single processor kernel source).

Either run kernel 2.4.21-4.EL or install kernel-sources 2.4.21-4.ELsmp

Last edited by fancypiper; 05-31-2005 at 09:19 AM.
 
Old 06-02-2005, 04:48 AM   #8
chirayan
LQ Newbie
 
Registered: May 2005
Location: India, UP
Distribution: Mandrake at home and redhat at the office
Posts: 8

Original Poster
Rep: Reputation: 0
I installed both kerne-sourcesl 2.4.21-4.EL and 2.4.21-4.ELsmp and tried running each of them. I have not yet succeded in configuring and installing alsa drivers. I, however ,succeeded in installing alsa-driver-1.0.6a-1.src.rpm and alsa-lib-1.0.6.src.rpm. But, When I run 'redhat-config-soundcard' I get the response that no sound card is detected. The cpu info is given below:

[tomy@Turing tomy]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping : 4
cpu MHz : 3400.287
cache size : 1024 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 6789.52

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping : 4
cpu MHz : 3400.287
cache size : 1024 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 6789.52
 
  


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
'make' error compiling alsa driver rickh Debian 3 05-14-2005 12:28 AM
Help,how can I install alsa driver and make it work? LittlesnowLinux Debian 2 11-25-2004 08:36 AM
Fc2 How To Make Alsa Driver Woking . vashistvishal Fedora - Installation 2 08-01-2004 07:49 AM
How to make Alsa driver loading? Waldi Slackware 16 04-18-2003 03:33 AM
Unable to boot into Mandrake - ALSA driver loading problem jianneng Linux - Newbie 1 02-13-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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