PDA

View Full Version : Make errors, missing headers, etc



usmcpug82
7th February 2007, 09:37 PM
Hey guys/girls,

I'm just getting back with Fedora and installed FC6 on a few of my computers, but primarily my laptop. I have AC '97 soundcard I'm trying to get working and I downloaded the drivers. Following the directions I configured, then ran make. This is what it gives me:


[root@pugdizzle alsa-driver-0.9.4]# make
make dep
make[1]: Entering directory `/tmp/sound/alsa-driver-0.9.4'
make[2]: Entering directory `/tmp/sound/alsa-driver-0.9.4/support'
make -C isapnp fastdep
make[3]: Entering directory `/tmp/sound/alsa-driver-0.9.4/support/isapnp'
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/tmp/sound/alsa-driver-0.9.4/include -I/usr/include -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD isapnp.c isapnp_proc.c isapnp_quirks.c > .depend
isapnp.c:26:26: error: linux/config.h: No such file or directory
isapnp.c:44:26: error: linux/module.h: No such file or directory
isapnp.c:47:26: error: linux/ioport.h: No such file or directory
isapnp.c:48:26: error: linux/string.h: No such file or directory
isapnp.c:49:24: error: linux/slab.h: No such file or directory
isapnp.c:50:25: error: linux/delay.h: No such file or directory
isapnp.c:51:27: error: linux/proc_fs.h: No such file or directory
isapnp.c:52:20: error: asm/io.h: No such file or directory
isapnp.c:53:21: error: asm/dma.h: No such file or directory
isapnp.c:54:21: error: asm/irq.h: No such file or directory
isapnp.c:56:27: error: linux/vmalloc.h: No such file or directory
isapnp.c:58:24: error: linux/init.h: No such file or directory
isapnp.c:59:25: error: asm/uaccess.h: No such file or directory
isapnp_proc.c:28:26: error: linux/config.h: No such file or directory
isapnp_proc.c:29:26: error: linux/module.h: No such file or directory
isapnp_proc.c:45:24: error: linux/init.h: No such file or directory
isapnp_proc.c:46:27: error: linux/proc_fs.h: No such file or directory
isapnp_proc.c:48:27: error: linux/vmalloc.h: No such file or directory
isapnp_proc.c:49:25: error: asm/uaccess.h: No such file or directory
isapnp_quirks.c:23:26: error: linux/config.h: No such file or directory
isapnp_quirks.c:24:26: error: linux/module.h: No such file or directory
isapnp_quirks.c:37:24: error: linux/init.h: No such file or directory
isapnp_quirks.c:38:26: error: linux/string.h: No such file or directory
make[3]: *** [fastdep] Error 1
make[3]: Leaving directory `/tmp/sound/alsa-driver-0.9.4/support/isapnp'
make[2]: *** [_sfdep_isapnp] Error 2
make[2]: Leaving directory `/tmp/sound/alsa-driver-0.9.4/support'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/tmp/sound/alsa-driver-0.9.4'
make: *** [include/sndversions.h] Error 2

I've read other places that the kernel/source locations are different or wrong, or whatever. I've upgraded to 2.6.19-1.2895.fc6 - I'm pretty new to linux (especially starting over) so could someone please walk me thru fixing it so that EVERYTHING works from now on when i go to compile it? Thanks a lot!!!! :)

leigh123linux
7th February 2007, 09:39 PM
Have you got the kernel-devel installed?

su -
yum install kernel-devel

usmcpug82
7th February 2007, 10:10 PM
That helped a little bit, got past the ./configure part. What exactly is 'devel'? I've seen it other places but don't know what it is. With that installed i:



make[1]: Entering directory `/tmp/sound/alsa-driver-0.9.4/support'
make[1]: Nothing to be done for `first_rule'.
make[1]: Leaving directory `/tmp/sound/alsa-driver-0.9.4/support'
make[1]: Entering directory `/tmp/sound/alsa-driver-0.9.4/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/tmp/sound/alsa-driver-0.9.4/include -I/lib/modules/2.6.19-1.2895.fc6/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -I/lib/modules/2.6.19-1.2895.fc6/build/include/asm-i386/mach-default -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -DEXPORT_SYMTAB -c hwdep.c
In file included from hwdep.c:22:
/tmp/sound/alsa-driver-0.9.4/include/sound/driver.h:29:26: error: linux/config.h: No such file or directory
In file included from /lib/modules/2.6.19-1.2895.fc6/build/include/asm/percpu.h:4,
from /lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:21,
from /lib/modules/2.6.19-1.2895.fc6/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/preempt.h:9,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/capability.h:45,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/sched.h:46,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/module.h:9,
from /tmp/sound/alsa-driver-0.9.4/include/adriver.h:51,
from /tmp/sound/alsa-driver-0.9.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.6.19-1.2895.fc6/build/include/asm-generic/percpu.h:8: error: ‘CONFIG_NR_CPUS’ undeclared here (not in a function)
In file included from /lib/modules/2.6.19-1.2895.fc6/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/preempt.h:9,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/capability.h:45,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/sched.h:46,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/module.h:9,
from /tmp/sound/alsa-driver-0.9.4/include/adriver.h:51,
from /tmp/sound/alsa-driver-0.9.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:80: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:80: error: requested alignment is not a constant
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h: In function ‘cpuid_count’:
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:176: warning: pointer targets in passing argument 1 of ‘__cpuid’ differ in signedness
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:176: warning: pointer targets in passing argument 2 of ‘__cpuid’ differ in signedness
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:176: warning: pointer targets in passing argument 3 of ‘__cpuid’ differ in signedness
/lib/modules/2.6.19-1.2895.fc6/build/include/asm/processor.h:176: warning: pointer targets in passing argument 4 of ‘__cpuid’ differ in signedness
In file included from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/sched.h:51,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/module.h:9,
from /tmp/sound/alsa-driver-0.9.4/include/adriver.h:51,
from /tmp/sound/alsa-driver-0.9.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:33:3: error: #error You lose.
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:225:31: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:269:46: error: division by zero in #if
In file included from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/sched.h:51,
from /lib/modules/2.6.19-1.2895.fc6/build/include/linux/module.h:9,
from /tmp/sound/alsa-driver-0.9.4/include/adriver.h:51,
from /tmp/sound/alsa-driver-0.9.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h: In function ‘jiffies_to_msecs’:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:274: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:274: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:274: error: for each function it appears in.)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:280:46: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h: In function ‘jiffies_to_usecs’:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:285: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:293:46: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h: In function ‘msecs_to_jiffies’:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:298: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:306:46: error: division by zero in #if
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h: In function ‘usecs_to_jiffies’:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:311: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h: In function ‘timespec_to_jiffies’:
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:330: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/lib/modules/2.6.19-1.2895.fc6/build/include/linux/jiffies.h:336: error: ‘SHIFT_HZ’ undeclared (first use in this function)



a bunch more in between here but went over character limit.




hwdep.c:173: warning: pointer targets in passing argument 1 of ‘snd_compat_strlcpy’ differ in signedness
hwdep.c: In function ‘snd_hwdep_dsp_load’:
hwdep.c:209: warning: implicit declaration of function ‘verify_area’
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/tmp/sound/alsa-driver-0.9.4/acore'
make: *** [compile] Error 1


what am i doing wrong?

leigh123linux
7th February 2007, 10:18 PM
The kernel-devel provides the header files



error: linux/config.h: No such file or directory

su -
touch /usr/src/kernels/2.6.18-1.2895.fc6-i686/include/linux/config.h

usmcpug82
7th February 2007, 10:26 PM
still not doing it............. still the same errors.

markkuk
7th February 2007, 11:45 PM
I'm just getting back with Fedora and installed FC6 on a few of my computers, but primarily my laptop. I have AC '97 soundcard I'm trying to get working and I downloaded the drivers.


[root@pugdizzle alsa-driver-0.9.4]# make
make dep
make[1]: Entering directory `/tmp/sound/alsa-driver-0.9.4'
make[2]: Entering directory `/tmp/sound/alsa-driver-0.9.4/support'


Why are you wasting your time by compling an obsolete version of ALSA, when FC6 already includes the latest release (1.0.13) of ALSA drivers and utilities? If your sound card isn't supported by the latest version, it won't work with the over 3 year old version either.

usmcpug82
8th February 2007, 01:19 AM
OH. I wasn't aware - well now that I'm home for SOME (after disabling networking during bootup, again) sound works PERFECT. That one, however, I'm saving for another forum - thanks leigh & mark for your help.