compiling and getting an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I downloaded  a bluetooth module today (btsco.41.tgz)
I am getting an error on line 88 when compiling  and trying to figure 
out why???
I have compared it to alsa-driver code and it looks good to me.

here is the source snippit:
----------------- the following line is line 86 ---------------
static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2};

module_param_array(index, int, NULL, 0444);
MODULE_PARM_DESC(index, "Index value for Bluetooth SCO Headset 
Soundcard.");

-------------------------------------------------------------------

below is the compile output.

[root@geisjdell kernel]#
[root@geisjdell kernel]# make
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.0.1.EL-i686'
 CC [M]  /usr/src/btsco-0.41/kernel/btsco.o
/usr/src/btsco-0.41/kernel/btsco.c:88: error: invalid lvalue in unary
`&'
/usr/src/btsco-0.41/kernel/btsco.c:88: error: initializer element is not
constant
/usr/src/btsco-0.41/kernel/btsco.c:88: error: (near initialization for
`__param_arr_index.num')
make[2]: *** [/usr/src/btsco-0.41/kernel/btsco.o] Error 1
make[1]: *** [_module_/usr/src/btsco-0.41/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.0.1.EL-i686'
make: *** [default] Error 2
[root@geisjdell kernel]#


Any idea on what to do with this?  Most everything else I download compiles.
I am using a fully up2date centos 4.2 system.

Thanks for any suggestions...

Jerry

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux