Prior to this point I had had some problems An error message kept
saying that it could not find my Linux/version.h file. I did a 'locate'
command and got three locations. I do not know what to make of all this.
Ken Jones
Here's what happened.
----------start first snip---------
[root@kjones-fedora alsa-driver-1.0.9rc4a]# locate include/linux/version.h
/usr/include/linux/version.h
/usr/src/kernels/2.6.18-1.2849.fc6-i686/include/linux/version.h
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux/version.h
-------so did a [configure --with-kernel=] to one of the above---------
[root@kjones-fedora alsa-driver-1.0.9rc4a]# ./configure
--with-kernel=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux
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 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... /usr/src/alsa-driver-1.0.9rc4a
checking cross compile...
checking for directory with kernel source...
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux
checking for directory with kernel build...
checking for kernel version... The file
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/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 /lib/modules/2.6.18-1.2849.fc6/source).
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux/version.h
[root@kjones-fedora alsa-driver-1.0.9rc4a]# ./configure
--with-kernel=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux
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 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... /usr/src/alsa-driver-1.0.9rc4a
checking cross compile...
checking for directory with kernel source...
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/linux
checking for directory with kernel build...
checking for kernel version... The file
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/include/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 /lib/modules/2.6.18-1.2849.fc6/source).
----------end first snip-------
---------start second snip--------
[root@kjones-fedora alsa-driver-1.0.9rc4a]# ./configure
--with-kernel=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686
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 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... /usr/src/alsa-driver-1.0.9rc4a
checking cross compile...
checking for directory with kernel source...
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686
checking for directory with kernel build...
checking for kernel version... 0.0.0
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC)
4.1.1 20061011 (Red Hat 4.1.1-30)
*** 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... "yes"
checking for Red Hat kernel... "auto"
checking for Red Hat kernel... "no"
checking for SUSE kernel... "auto"
checking for SUSE kernel... "no"
checking to modify of kernel linux/kmod.h... "no"
checking for kernel linux/compiler.h... "yes"
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... "no"
Creating a dummy <linux/devfs_fs_kernel.h>...
checking for kernel linux/highmem.h... "yes"
checking for kernel linux/workqueue.h... "yes"
Removing a dummy linux/workqueue.h.
checking for kernel linux/dma-mapping.h... "yes"
Removing a dummy linux/dma-mapping.h.
checking for kernel asm/hw_irq.h... "yes"
checking for kernel linux/device.h... "yes"
Removing a dummy linux/device.h.
checking for kernel linux/jiffies.h... "yes"
Removing a dummy linux/jiffies.h.
checking for kernel linux/compat.h... "yes"
Removing a dummy linux/compat.h.
checking for kernel linux/adb.h... "yes"
checking for kernel linux/cuda.h... "yes"
checking for kernel linux/pmu.h... "yes"
checking for kernel linux/moduleparam.h... "yes"
Removing a dummy linux/moduleparam.h.
checking for kernel linux/syscalls.h... "yes"
Removing a dummy linux/syscalls.h.
checking for kernel linux/firmware.h... "yes"
checking for exported symbol dump_stack... grep:
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/kernel/ksyms.c: No
such file or directory
"no"
checking for kernel module symbol versions... "yes"
checking for PCI support in kernel... "yes"
checking for I2C driver in kernel... module
checking for firmware loader... yes
checking for directory to store kernel modules... /lib/modules/0.0.0/misc
checking for verbose printk... on
checking for debug level... none
checking for processor type... i686
checking for i386 machine type... default
checking for SMP... "yes"
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... yes
checking for Kernel ISA-PnP support... "yes"
checking for strlcpy... "no"
checking for snprintf... "no"
checking for vsnprintf... "no"
checking for scnprintf... "no"
checking for sscanf... "no"
checking for vmalloc_to_page... "no"
checking for old kmod... "yes"
checking for PDE... "no"
checking for pci_set_consistent_dma_mask... "no"
checking for pci_dev_present... "no"
checking for msleep... "no"
checking for tty->count is the atomic type... "no"
checking for io_remap_pfn_range... "no"
checking for new io_remap_page_range... "no"
checking for kcalloc... "no"
checking for saved_config_space in pci_dev... "no"
checking for old kill_fasync... "no"
checking for dma_addr_t... "no"
checking for MUTEX macros... "no"
Removing local linux/pnp.h.
checking for driver version... 1.0.9rc4a
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for RTC callback support in kernel... "no"
checking for HPET support... "yes"
checking for Procfs support... "yes"
checking for USB support... "yes"
checking for PC-Speaker hook... "no"
checking for kernel PCMCIA
checking for PCMCIA support... "yes"
checking for PC9800 support in kernel... "no"
checking for parallel port support... "yes"
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 utils/alsasound
config.status: creating utils/alsasound.posix
config.status: creating include/config.h
config.status: creating include/config1.h
config.status: creating include/version.h
config.status: include/version.h is unchanged
config.status: creating include/autoconf-extra.h
Hacking autoconf.h...
-----------end second snip-------
---------start third snip--------
[root@kjones-fedora alsa-driver-1.0.9rc4a]# make install
rm -f /lib/modules/0.0.0/misc/snd*.*o /lib/modules/0.0.0/misc/persist.o
/lib/modules/0.0.0/misc/isapnp.o
make[1]: Entering directory `/usr/src/alsa-driver-1.0.9rc4a/acore'
mkdir -p /lib/modules/0.0.0/misc
cp snd-hpet.o snd-hwdep.o snd-page-alloc.o snd-pcm.o snd-rawmidi.o
snd-timer.o snd.o /lib/modules/0.0.0/misc
cp: cannot stat `snd-hpet.o': No such file or directory
cp: cannot stat `snd-hwdep.o': No such file or directory
cp: cannot stat `snd-page-alloc.o': No such file or directory
cp: cannot stat `snd-pcm.o': No such file or directory
cp: cannot stat `snd-rawmidi.o': No such file or directory
cp: cannot stat `snd-timer.o': No such file or directory
cp: cannot stat `snd.o': No such file or directory
make[1]: *** [_modinst__] Error 1
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.9rc4a/acore'
make: *** [install-modules] Error 1
------end third snip-------
----I continued to struggle, but to no avail-----------