hey guys,
I re-installed ubuntu last night and just now i tried to enable the sound, i followed the step-by-step guide the first time and it worked nicelly, i just tried it now and i get an error after i tell it to compile 'make' heres the error.
Code:
gcc -Wall -O2 -g -c -o hda-verb.o hda-verb.c
hda-verb.c:10:19: error: stdio.h: No such file or directory
hda-verb.c:11:20: error: stdlib.h: No such file or directory
hda-verb.c:12:20: error: string.h: No such file or directory
hda-verb.c:13:19: error: ctype.h: No such file or directory
hda-verb.c:14:20: error: unistd.h: No such file or directory
hda-verb.c:15:23: error: sys/ioctl.h: No such file or directory
hda-verb.c:16:20: error: sys/io.h: No such file or directory
hda-verb.c:17:23: error: sys/types.h: No such file or directory
hda-verb.c:18:23: error: sys/fcntl.h: No such file or directory
hda-verb.c:20:20: error: stdint.h: No such file or directory
hda-verb.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u8’
hda-verb.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u16’
hda-verb.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u32’
hda-verb.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u64’
In file included from hda-verb.c:26:
hda_hwdep.h:33: error: expected specifier-qualifier-list before ‘u32’
hda-verb.c: In function ‘list_keys’:
hda-verb.c:198: warning: implicit declaration of function ‘strlen’
hda-verb.c:198: warning: incompatible implicit declaration of built-in function ‘strlen’
hda-verb.c:200: warning: implicit declaration of function ‘fprintf’
hda-verb.c:200: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:200: error: ‘stderr’ undeclared (first use in this function)
hda-verb.c:200: error: (Each undeclared identifier is reported only once
hda-verb.c:200: error: for each function it appears in.)
hda-verb.c:204: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:209: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c: In function ‘lookup_str’:
hda-verb.c:216: warning: incompatible implicit declaration of built-in function ‘strlen’
hda-verb.c:218: error: ‘NULL’ undeclared (first use in this function)
hda-verb.c:220: warning: implicit declaration of function ‘strncmp’
hda-verb.c:222: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:222: error: ‘stderr’ undeclared (first use in this function)
hda-verb.c:229: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c: In function ‘strtoupper’:
hda-verb.c:239: warning: implicit declaration of function ‘toupper’
hda-verb.c: In function ‘main’:
hda-verb.c:250: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:250: error: ‘stderr’ undeclared (first use in this function)
hda-verb.c:257: warning: implicit declaration of function ‘open’
hda-verb.c:257: error: ‘O_RDWR’ undeclared (first use in this function)
hda-verb.c:259: warning: implicit declaration of function ‘perror’
hda-verb.c:263: warning: implicit declaration of function ‘ioctl’
hda-verb.c:263: warning: implicit declaration of function ‘_IOR’
hda-verb.c:263: error: expected expression before ‘int’
hda-verb.c:265: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:269: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:274: warning: implicit declaration of function ‘strtol’
hda-verb.c:274: error: ‘NULL’ undeclared (first use in this function)
hda-verb.c:276: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:280: warning: implicit declaration of function ‘isdigit’
hda-verb.c:288: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:300: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:304: warning: incompatible implicit declaration of built-in function ‘fprintf’
hda-verb.c:307: error: ‘struct hda_verb_ioctl’ has no member named ‘verb’
hda-verb.c:308: warning: implicit declaration of function ‘_IOWR’
hda-verb.c:308: error: expected expression before ‘struct’
hda-verb.c:310: warning: implicit declaration of function ‘printf’
hda-verb.c:310: warning: incompatible implicit declaration of built-in function ‘printf’
hda-verb.c:310: error: ‘struct hda_verb_ioctl’ has no member named ‘res’
hda-verb.c:311: warning: implicit declaration of function ‘close’
make: *** [hda-verb.o] Error 1
help me please i cant live without sound
Edit: I fixed it by installing http://www.linuxant.com/alsa-driver/...0915-1_all.deb
but now on my boot menu its added another kernel, the kernel im using now is Ubuntu 8.04.1, kernel 2.6.24-21-generic, but there is another one there called Ubuntu 8.04.1, kernel 2.6.24-19-generic, i cant remember which one got added but all i know is that it wasnt there before i installed this package.
Thanks
Bookmarks