2006-01-12 18:27:03

by Jerry Geis

[permalink] [raw]
Subject: [Bluez-users] btsco.41 not compiling

I downloaded btsc.41 today. did the ./bootsrap; .configure; make ; make install
all that was good.
cd kernel; make and I get the following errors from this section of code.


static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /*
Exclude the first card */

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




[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]#

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

What do I do?

I am running centos 4.2, with kernel 2.6.9-22.0.1-EL.
alsa 1.0.11rc2

Thanks,

Jerry





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2006-01-13 20:14:45

by Jerry Geis

[permalink] [raw]
Subject: Re: [Bluez-users] btsco.41 not compiling

Brad,


I backd off to 0.4 and it compiles. however, when I run depmod all is OK
then run modprobe snd-bt-sco and I get an error about

snd_bt_sco: disagrees about version of symbol snd_ctl_add
unknown symbol snd_ctl_add.

There are a number of others also, snd_card_register, etccc....

What is wrong with that? alsa works fine on my machine...

Jerry Geis
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677
(317)663-0808 Fax


Brad Midgley wrote:

>Jerry Geis wrote:
>
>
>>gcc -version reports 3.4.4
>>
>>I am running a redhat kernel uname -r gives 2.6.9.-22.0.1-EL
>>
>>My machine compiles alsa-drivers just fine. It has all kinds of
>>module_param_array statesments also....
>>Why would this be failing?
>>
>>
>
>so it uses module_params_array similarly? is index declared in the same way?
>
>this stuff was part of a submission i accepted a few months ago to
>prevent the btsco adapter from making itself the first adapter. you
>could look in cvs for the version before the change.
>
>brad
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>Bluez-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
>

2006-01-13 16:47:14

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-users] btsco.41 not compiling

Jerry Geis wrote:
> gcc -version reports 3.4.4
>
> I am running a redhat kernel uname -r gives 2.6.9.-22.0.1-EL
>
> My machine compiles alsa-drivers just fine. It has all kinds of
> module_param_array statesments also....
> Why would this be failing?

so it uses module_params_array similarly? is index declared in the same way?

this stuff was part of a submission i accepted a few months ago to
prevent the btsco adapter from making itself the first adapter. you
could look in cvs for the version before the change.

brad


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-01-13 16:43:36

by Jerry Geis

[permalink] [raw]
Subject: Re: [Bluez-users] btsco.41 not compiling

gcc -version reports 3.4.4

I am running a redhat kernel uname -r gives 2.6.9.-22.0.1-EL

My machine compiles alsa-drivers just fine. It has all kinds of
module_param_array statesments also....
Why would this be failing?

Jerry Geis
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677
(317)663-0808 Fax


Brad Midgley wrote:

>Jerry
>
>what compiler are you using again?
>
>also something may have changed from your 2.6.9 to 2.6.15. we've only
>been tracking the current kernel.
>
>brad
>
>
>
>>I downloaded btsc.41 today. did the ./bootsrap; .configure; make ; make
>>install
>>all that was good.
>>cd kernel; make and I get the following errors from this section of code.
>>
>>
>>static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /*
>>Exclude the first card */
>>
>>module_param_array(index, int, NULL, 0444);
>>MODULE_PARM_DESC(index, "Index value for Bluetooth SCO Headset
>>Soundcard.");
>>
>>
>>
>>
>>[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]#
>>
>>-----------------
>>
>>What do I do?
>>
>>I am running centos 4.2, with kernel 2.6.9-22.0.1-EL.
>>alsa 1.0.11rc2
>>
>>Thanks,
>>
>>Jerry
>>
>>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>>files
>>for problems? Stop! Download the new AJAX search engine that makes
>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>>_______________________________________________
>>Bluez-users mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>
>>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>Bluez-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
>

2006-01-13 16:37:59

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-users] btsco.41 not compiling

Jerry

what compiler are you using again?

also something may have changed from your 2.6.9 to 2.6.15. we've only
been tracking the current kernel.

brad

> I downloaded btsc.41 today. did the ./bootsrap; .configure; make ; make
> install
> all that was good.
> cd kernel; make and I get the following errors from this section of code.
>
>
> static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /*
> Exclude the first card */
>
> module_param_array(index, int, NULL, 0444);
> MODULE_PARM_DESC(index, "Index value for Bluetooth SCO Headset
> Soundcard.");
>
>
>
>
> [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]#
>
> -----------------
>
> What do I do?
>
> I am running centos 4.2, with kernel 2.6.9-22.0.1-EL.
> alsa 1.0.11rc2
>
> Thanks,
>
> Jerry
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users