Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm following the "INSTALL" text file. I have errors I don't understand.
Code:
[root@ alsa-driver-0.4.0]# ./configure --with-debug=detect switch
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for linux/fs.h... (cached) no
checking for working const... (cached) yes
checking for inline... (cached) inline
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for directory with kernel source... /usr/src/linux
checking for kernel version... 0.0.0
checking for kernel module symbol versions... no
checking for PCI support in kernel... grep: /usr/src/linux/include/linux/autoconf.h: No such file or directory
no
checking for SGI/MIPS (HAL2) architecture... no
checking for directory to store kernel modules... /lib/modules/0.0.0/misc
checking for debug level... detect
checking for processor type... i686
checking for SMP... grep: /usr/src/linux/Makefile: No such file or directory
no
checking for ISA PnP driver in kernel... no
checking for ISA PnP support... no
checking for driver version... 0.4.0
checking for sequencer support... no
checking for OSS/Lite emulation... yes
checking for which soundcards to compile driver for... all
creating ./config.status
creating Makefile.conf
creating snddevices
creating utils/alsa-driver.spec
creating cards.config
creating include/config.h
creating include/config1.h
include/config1.h is unchanged
creating include/version.h
include/version.h is unchanged
[root@x1-6-00-50-bf-e8-5a-b5 alsa-driver-0.4.0]# make install
make[1]: Entering directory `/home/user/alsa-driver-0.4.0/support'
Support code were sucessfully compiled.
make[1]: Leaving directory `/home/user/alsa-driver-0.4.0/support'
make[1]: Entering directory `/home/user/alsa-driver-0.4.0/kernel'
gcc -DALSA_BUILD -I/usr/src/linux/include -I.. -E -D__GENKSYMS__ persist.c | /sbin/genksyms > ../include/modules/persist.ver
Usage:
genksyms [-dDwqhV] [-k kernel_version] [-p prefix] > .../linux/module/*.ver
-d, --debug Increment the debug level (repeatable)
-D, --dump Dump expanded symbol defs (for debugging only)
-w, --warnings Enable warnings
-q, --quiet Disable warnings (default)
-h, --help Print this message
-V, --version Print the release version
-k ver
--kernel ver Set the kernel version for which we are compiling
-p string
--prefix string Set a mangling prefix for all symbols
In file included from ../include/driver.h:51,
from persist.c:23:
/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 persist.c:23:
../include/driver.h:54:2: #error "This driver requires Linux 2.2.3 and highter."
make[1]: *** [../include/modules/persist.ver] Error 1
make[1]: Leaving directory `/home/user/alsa-driver-0.4.0/kernel'
make: *** [compile] Error 1
[root@ alsa-driver-0.4.0]#
cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel Corp. 82810 GMCH [Graphics Memory Controller Hub] (rev 2).
Bus 0, device 1, function 0:
VGA compatible controller: Intel Corp. 82810 CGC [Chipset Graphics Controller] (rev 2).
IRQ 11.
Prefetchable 32 bit memory at 0xf8000000 [0xfbffffff].
Non-prefetchable 32 bit memory at 0xf4000000 [0xf407ffff].
Bus 0, device 30, function 0:
PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 2).
Master Capable. No bursts. Min Gnt=6.
Bus 0, device 31, function 0:
ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 2).
Bus 0, device 31, function 1:
IDE interface: Intel Corp. 82801AA IDE (rev 2).
I/O at 0x10a0 [0x10af].
Bus 0, device 31, function 2:
USB Controller: Intel Corp. 82801AA USB (rev 2).
IRQ 9.
I/O at 0x1080 [0x109f].
Bus 0, device 31, function 3:
SMBus: Intel Corp. 82801AA SMBus (rev 2).
IRQ 5.
I/O at 0x10b0 [0x10bf].
Bus 1, device 8, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).
IRQ 11.
Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0x2000 [0x20ff].
Non-prefetchable 32 bit memory at 0xf4111000 [0xf41110ff].
Bus 1, device 9, function 0:
Multimedia audio controller: PCI device 127a:4310 (Rockwell International) (rev 0).
IRQ 5.
Master Capable. Latency=64.
I/O at 0x2400 [0x243f].
Bus 1, device 9, function 1:
Communication controller: Rockwell International Riptide HSF 56k PCI Modem (rev 0).
IRQ 5.
Master Capable. Latency=64.
Non-prefetchable 32 bit memory at 0xf4100000 [0xf410ffff].
Bus 1, device 9, function 2:
Input device controller: PCI device 127a:4312 (Rockwell International) (rev 0).
Non-prefetchable 32 bit memory at 0xf4110000 [0xf4110fff].
/*************************/
/usr/sbin/lspcidrake
bash: /usr/sbin/lspcidrake: No such file or directory
/*************************/
This is my recent attempt with ALSA install:
[root@ alsa-driver-1.0.4rc2]# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
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 egrep... grep -E
checking for ANSI C header files... yes
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/user/alsa-driver-1.0.4rc2
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... The file /usr/src/linux/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).
[root@ alsa-driver-1.0.4rc2]# make
make all-deps
make[1]: Entering directory `/home/user/alsa-driver-1.0.4rc2'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/home/user/alsa-driver-1.0.4rc2'
You'll probably need your kernel source installed as well as a compiler, Mandrake never puts in the former unless you chose an "everything" install and sometimes leave out the later... so rpmdrake, or whatever its called these days, is your friend.
I give this one a 4 hour hastle factor, if there isn't progress in 4 hours... rip it out and pick up a $5 ES1371 based old Ensoniq card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.