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 |
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 - Code:
[root@tinwhistle root]# cd /usr/src 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 Next, did I install the compiler? Code:
[root@tinwhistle src]# gcc -v 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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study: |
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]# |
Quote:
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 |
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]# |
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).
|
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 |
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 |
All times are GMT -5. The time now is 02:43 PM. |