Home > Archive > alt.os.linux > November 2002 > PC Speaker driver





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PC Speaker driver
heikkikk

2002-11-27, 7:24 am

Hi
i'm trying to install pc-speaker driver.
http://www.linuxgazette.com/issue69/mathew.html

My kernel version is 2.4.18
i have applied that patch, found from that adress...
and i get this error:
[root@heikkikk pcsnd-kit]# make
gcc -O2 -Wall -s -N pcsel.c -o pcsel
In file included from pcsel.c:15:
/usr/src/linux/include/linux/pcsp.h:19: parse error before `i8253_lock'
/usr/src/linux/include/linux/pcsp.h:19: warning: type defaults to `int' in
declaration of `i8253_lock'
/usr/src/linux/include/linux/pcsp.h:19: warning: data definition has no type
or storage class
/usr/src/linux/include/linux/pcsp.h:20: parse error before `i8259A_lock'
/usr/src/linux/include/linux/pcsp.h:20: warning: type defaults to `int' in
declaration of `i8259A_lock'
/usr/src/linux/include/linux/pcsp.h:20: warning: data definition has no type
or storage class
pcsel.c:34: `SNDCARD_STO1' undeclared here (not in a function)
pcsel.c:34: initializer element is not constant
pcsel.c:34: (near initialization for `devs[0].code')
pcsel.c:35: `SNDCARD_DACM' undeclared here (not in a function)
pcsel.c:35: initializer element is not constant
pcsel.c:35: (near initialization for `devs[1].code')
pcsel.c:36: `SNDCARD_DACS' undeclared here (not in a function)
pcsel.c:36: initializer element is not constant
pcsel.c:36: (near initialization for `devs[2].code')
pcsel.c:37: `SNDCARD_PCSP' undeclared here (not in a function)
pcsel.c:37: initializer element is not constant
pcsel.c:37: (near initialization for `devs[3].code')
pcsel.c: In function `actual_conf':
pcsel.c:48: `PCSP_GET_VERSION' undeclared (first use in this function)
pcsel.c:48: (Each undeclared identifier is reported only once
pcsel.c:48: for each function it appears in.)
pcsel.c:59: `SNDCARD_PCSP' undeclared (first use in this function)
pcsel.c:60: `PCSP_GET_VOL' undeclared (first use in this function)
pcsel.c:62: `PCSP_GET_SRATE' undeclared (first use in this function)
pcsel.c:67: `PCSP_GET_MEASURE' undeclared (first use in this function)
pcsel.c:68: warning: suggest explicit braces to avoid ambiguous `else'
pcsel.c:75: `SNDCARD_DACS' undeclared (first use in this function)
pcsel.c:80: `PCSP_EMULATION_QUERY' undeclared (first use in this function)
pcsel.c:81: `PCSP_SET_EMU_MODE' undeclared (first use in this function)
pcsel.c:85: `PCSP_EMULATION_ON' undeclared (first use in this function)
pcsel.c:87: `PCSP_EMULATION_OFF' undeclared (first use in this function)
pcsel.c:45: warning: `volume' might be used uninitialized in this function
pcsel.c:45: warning: `srate' might be used uninitialized in this function
pcsel.c:45: warning: `maxrate' might be used uninitialized in this function
pcsel.c:45: warning: `emulation' might be used uninitialized in this
function
pcsel.c:46: warning: `version' might be used uninitialized in this function
pcsel.c: In function `set_dev':
pcsel.c:108: `PCSP_SET_DEV' undeclared (first use in this function)
pcsel.c: In function `main':
pcsel.c:160: `PCSP_EMULATION_QUERY' undeclared (first use in this function)
pcsel.c:169: `PCSP_GET_DEV' undeclared (first use in this function)
pcsel.c:170: `SNDCARD_PCSP' undeclared (first use in this function)
pcsel.c:171: `PCSP_GET_PORTS' undeclared (first use in this function)
pcsel.c:190: `PCSP_GET_MEASURE' undeclared (first use in this function)
pcsel.c:210: `PCSP_EMULATION_ON' undeclared (first use in this function)
pcsel.c:212: `PCSP_EMULATION_OFF' undeclared (first use in this function)
pcsel.c:254: `SNDCARD_DACS' undeclared (first use in this function)
pcsel.c:259: `PCSP_SET_PORTS' undeclared (first use in this function)
pcsel.c:266: `SNDCTL_DSP_STEREO' undeclared (first use in this function)
pcsel.c:270: `PCSP_SET_SRATE' undeclared (first use in this function)
pcsel.c:274: `SNDCTL_DSP_SPEED' undeclared (first use in this function)
pcsel.c:279: `PCSP_SET_VOL' undeclared (first use in this function)
pcsel.c:284: `PCSP_SET_EMU_MODE' undeclared (first use in this function)
pcsel.c:159: warning: `dev' might be used uninitialized in this function
pcsel.c:159: warning: `port' might be used uninitialized in this function
make: *** [pcsel] Error 1


--
=|-------+-------|=
Heikki Kniivilä
heikkikk@heikkikk.homelinux.com
http://heikkikk.homelinux.com


Bastian

2002-11-27, 9:24 am


"heikkikk" <heikkikk@heikkikk.homelinux.com> schrieb im Newsbeitrag
news:V13F9.2805$mt4.15124@news.kpnqwest.fi...
> Hi
> i'm trying to install pc-speaker driver.
> http://www.linuxgazette.com/issue69/mathew.html
>
> My kernel version is 2.4.18
> i have applied that patch, found from that adress...
> and i get this error:
> [root@heikkikk pcsnd-kit]# make
> gcc -O2 -Wall -s -N pcsel.c -o pcsel
> In file included from pcsel.c:15:
> /usr/src/linux/include/linux/pcsp.h:19: parse error before `i8253_lock'
> /usr/src/linux/include/linux/pcsp.h:19: warning: type defaults to `int' in
> declaration of `i8253_lock'
> /usr/src/linux/include/linux/pcsp.h:19: warning: data definition has no

type
> or storage class


this 3 lines means, that i8253_lock has a wrong typedef declaration.
look at your pcsp.h at line 19 and maybe you have to change it to int ?
or maybe you have a wrong version of another header that are included.
i think, if you arent a programmer you cannot fix this problem.
.... maybe ill take a look at the driver, if i have time.

Bastian Reich


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net