* [Bluez-devel] hci.c:885: storage size of `iv' isn't known
[not found] <20051231185308.E3D14130C8@sc8-sf-spam2.sourceforge.net>
@ 2005-12-31 19:10 ` Andrew N. Balahonov
2006-01-02 11:31 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Andrew N. Balahonov @ 2005-12-31 19:10 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1603 bytes --]
Hello.
Please suggest anything.
~/bluez/bluez-libs-2.24$ make -s
Making all in include
Making all in src
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
-D_FORTIFY_SOURCE=2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -fPIC
-DPIC -o .libs/bluetooth.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
-D_FORTIFY_SOURCE=2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -o
bluetooth.o >/dev/null 2>&1
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
-D_FORTIFY_SOURCE=2 -c hci.c -Wp,-MD,.deps/hci.TPlo -fPIC -DPIC -o
.libs/hci.o
hci.c: In function `hci_send_cmd':
hci.c:885: storage size of `iv' isn't known
hci.c:903: warning: implicit declaration of function `writev'
hci.c:885: warning: unused variable `iv'
make[2]: *** [hci.lo] Ошибка 1
make[1]: *** [all-recursive] Ошибка 1
make: *** [all] Ошибка 2
(sorry for cyrillic)
from src/hci.c
881 int hci_send_cmd(int dd, uint16_t ogf, uint16_t ocf, uint8_t plen, void *param)
882 {
883 uint8_t type = HCI_COMMAND_PKT;
884 hci_command_hdr hc;
885 struct iovec iv[3];
886 int ivn;
/usr/src/linux -> linux-2.4.31-ow1
5.7K 2005-08-19 22:31 /usr/src/linux-2.4.31-ow1/include/net/bluetooth/bluetooth.h
$Id: bluetooth.h,v 1.9 2002/05/06 21:11:55 maxk Exp $
18K 2004-08-08 03:26 /usr/src/linux-2.4.31-ow1/include/net/bluetooth/hci.h
$Id: hci.h,v 1.5 2002/06/27 17:29:30 maxk Exp $
Thank you.
--
Yours sincerely, Andrew N. Balahonov
1024D/3C340684 94B4 C3C5 8936 9DF5 A2B8 3E5C DB3A CC66 3C34 0684
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] hci.c:885: storage size of `iv' isn't known
2005-12-31 19:10 ` [Bluez-devel] hci.c:885: storage size of `iv' isn't known Andrew N. Balahonov
@ 2006-01-02 11:31 ` Marcel Holtmann
2006-01-02 18:32 ` Andrew N. Balahonov
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-01-02 11:31 UTC (permalink / raw)
To: bluez-devel
Hi Andrew,
> Please suggest anything.
>=20
> ~/bluez/bluez-libs-2.24$ make -s
> Making all in include
> Making all in src
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2=20
> -D_FORTIFY_SOURCE=3D2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -fPI=
C=20
> -DPIC -o .libs/bluetooth.o
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2=20
> -D_FORTIFY_SOURCE=3D2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -o=20
> bluetooth.o >/dev/null 2>&1
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2=20
> -D_FORTIFY_SOURCE=3D2 -c hci.c -Wp,-MD,.deps/hci.TPlo -fPIC -DPIC -o=20
> .libs/hci.o
> hci.c: In function `hci_send_cmd':
> hci.c:885: storage size of `iv' isn't known
> hci.c:903: warning: implicit declaration of function `writev'
> hci.c:885: warning: unused variable `iv'
> make[2]: *** [hci.lo] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 1
> make[1]: *** [all-recursive] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 1
> make: *** [all] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 2
this is strange. What kind of system is this? What kind of compiler do
you use?
Regards
Marcel
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] hci.c:885: storage size of `iv' isn't known
2006-01-02 11:31 ` Marcel Holtmann
@ 2006-01-02 18:32 ` Andrew N. Balahonov
2006-01-02 19:31 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Andrew N. Balahonov @ 2006-01-02 18:32 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1667 bytes --]
OS: Openwall GNU/*/Linux., http://www.openwall.com/Owl/
ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 3.9M 20 2003 /lib/libc-2.1.3.so
lrwxrwxrwx 1 root root 13 23 2004 /lib/libc.so.6 -> libc-2.1.3.so
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
$ ld -v
GNU ld version 2.10.91 (with BFD 2.10.1.0.4)
$ glib-config --version
1.2.9
--
Yours sincerely, Andrew N. Balahonov
1024D/3C340684 94B4 C3C5 8936 9DF5 A2B8 3E5C DB3A CC66 3C34 0684
On Mon, 2 Jan 2006, Marcel Holtmann wrote:
> Hi Andrew,
>
>> Please suggest anything.
>>
>> ~/bluez/bluez-libs-2.24$ make -s
>> Making all in include
>> Making all in src
>> mkdir .libs
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
>> -D_FORTIFY_SOURCE=2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -fPIC
>> -DPIC -o .libs/bluetooth.o
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
>> -D_FORTIFY_SOURCE=2 -c bluetooth.c -Wp,-MD,.deps/bluetooth.TPlo -o
>> bluetooth.o >/dev/null 2>&1
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -O2
>> -D_FORTIFY_SOURCE=2 -c hci.c -Wp,-MD,.deps/hci.TPlo -fPIC -DPIC -o
>> .libs/hci.o
>> hci.c: In function `hci_send_cmd':
>> hci.c:885: storage size of `iv' isn't known
>> hci.c:903: warning: implicit declaration of function `writev'
>> hci.c:885: warning: unused variable `iv'
>> make[2]: *** [hci.lo] Ошибка 1
>> make[1]: *** [all-recursive] Ошибка 1
>> make: *** [all] Ошибка 2
>
> this is strange. What kind of system is this? What kind of compiler do
> you use?
>
> Regards
>
> Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] hci.c:885: storage size of `iv' isn't known
2006-01-02 18:32 ` Andrew N. Balahonov
@ 2006-01-02 19:31 ` Marcel Holtmann
2006-01-02 23:07 ` Andrew N. Balahonov
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-01-02 19:31 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
Hi Andrew,
> OS: Openwall GNU/*/Linux., http://www.openwall.com/Owl/
>
> ls -l /lib/libc[.-]*
> -rwxr-xr-x 1 root root 3.9M 20 2003 /lib/libc-2.1.3.so
> lrwxrwxrwx 1 root root 13 23 2004 /lib/libc.so.6 -> libc-2.1.3.so
>
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-unknown-linux/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
check if the attached patch helps.
Regards
Marcel
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 417 bytes --]
Index: src/hci.c
===================================================================
RCS file: /cvsroot/bluez/libs/src/hci.c,v
retrieving revision 1.88
diff -u -r1.88 hci.c
--- src/hci.c 21 Nov 2005 10:26:57 -0000 1.88
+++ src/hci.c 2 Jan 2006 19:30:21 -0000
@@ -36,6 +36,7 @@
#include <string.h>
#include <sys/param.h>
+#include <sys/uio.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <sys/ioctl.h>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] hci.c:885: storage size of `iv' isn't known
2006-01-02 19:31 ` Marcel Holtmann
@ 2006-01-02 23:07 ` Andrew N. Balahonov
2006-01-03 9:56 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Andrew N. Balahonov @ 2006-01-02 23:07 UTC (permalink / raw)
To: bluez-devel
Yes, it helps.
Did you commit it for next release?!
--
Yours sincerely, Andrew N. Balahonov
1024D/3C340684 94B4 C3C5 8936 9DF5 A2B8 3E5C DB3A CC66 3C34 0684
On Mon, 2 Jan 2006, Marcel Holtmann wrote:
> Hi Andrew,
>
>> OS: Openwall GNU/*/Linux., http://www.openwall.com/Owl/
>>
>> ls -l /lib/libc[.-]*
>> -rwxr-xr-x 1 root root 3.9M 20 2003 /lib/libc-2.1.3.so
>> lrwxrwxrwx 1 root root 13 23 2004 /lib/libc.so.6 -> libc-2.1.3.so
>>
>> $ gcc -v
>> Reading specs from /usr/lib/gcc-lib/i386-unknown-linux/2.95.3/specs
>> gcc version 2.95.3 20010315 (release)
>
> check if the attached patch helps.
>
> Regards
>
> Marcel
>
>
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] hci.c:885: storage size of `iv' isn't known
2006-01-02 23:07 ` Andrew N. Balahonov
@ 2006-01-03 9:56 ` Marcel Holtmann
2006-01-04 1:29 ` [Bluez-devel] the bluetooth-alsa driver tom
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-01-03 9:56 UTC (permalink / raw)
To: bluez-devel
Hi Andrew,
> Yes, it helps.
> Did you commit it for next release?!
it's in the CVS now.
Regards
Marcel
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bluez-devel] the bluetooth-alsa driver
2006-01-03 9:56 ` Marcel Holtmann
@ 2006-01-04 1:29 ` tom
2006-01-04 1:36 ` Brad Midgley
0 siblings, 1 reply; 10+ messages in thread
From: tom @ 2006-01-04 1:29 UTC (permalink / raw)
To: bluez-devel
Hi all,
Recently i would like to use the bluetooth-alsa driver for A2DP streaming ,
but what i need is sink side but not the source side, i would like to know
if this project is still advancing and are going to implemented two-way
audio ? Hope anyone can give me some help.
Regards,
TOM
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] the bluetooth-alsa driver
2006-01-04 1:29 ` [Bluez-devel] the bluetooth-alsa driver tom
@ 2006-01-04 1:36 ` Brad Midgley
2006-01-04 2:33 ` tom
0 siblings, 1 reply; 10+ messages in thread
From: Brad Midgley @ 2006-01-04 1:36 UTC (permalink / raw)
To: bluez-devel
tom
the sink prototype is more complete than the source just because it
doesn't have to be modified to plug into an audio system. it does need
help to be a proper daemon iirc.
check out the project from cvs. the receiver (a2recv) can be run and
will listen for incoming connections. (see the docs though--we still
have to modify device class and sdp advertisements before running it)
brad
> Recently i would like to use the bluetooth-alsa driver for A2DP
> streaming , but what i need is sink side but not the source side, i
> would like to know if this project is still advancing and are going to
> implemented two-way audio ? Hope anyone can give me some help.
>
>
> Regards,
> TOM
>
>
> -------------------------------------------------------
> 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-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] the bluetooth-alsa driver
2006-01-04 1:36 ` Brad Midgley
@ 2006-01-04 2:33 ` tom
2006-01-04 4:43 ` Brad Midgley
0 siblings, 1 reply; 10+ messages in thread
From: tom @ 2006-01-04 2:33 UTC (permalink / raw)
To: bluez-devel, bmidgley
Hi brad,
Thank you very much for your reply. But is the sink part is ready to use and
is full compatitable with the alsa subsystem ? That means if i would like to
put a application on top of this driver and read from this driver through
alsa subsystem like reading pcm from a mic , can it work fines ?
Regards,
TOM
> tom
>
> the sink prototype is more complete than the source just because it
> doesn't have to be modified to plug into an audio system. it does need
> help to be a proper daemon iirc.
>
> check out the project from cvs. the receiver (a2recv) can be run and
> will listen for incoming connections. (see the docs though--we still
> have to modify device class and sdp advertisements before running it)
>
> brad
>
>> Recently i would like to use the bluetooth-alsa driver for A2DP
>> streaming , but what i need is sink side but not the source side, i
>> would like to know if this project is still advancing and are going to
>> implemented two-way audio ? Hope anyone can give me some help.
>>
>>
>> Regards,
>> TOM
>>
>>
>> -------------------------------------------------------
>> 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-devel mailing list
>> Bluez-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>
> -------------------------------------------------------
> 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-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-devel] the bluetooth-alsa driver
2006-01-04 2:33 ` tom
@ 2006-01-04 4:43 ` Brad Midgley
0 siblings, 0 replies; 10+ messages in thread
From: Brad Midgley @ 2006-01-04 4:43 UTC (permalink / raw)
To: tom, bluez-devel
tom
How funny... I just realized you're with avantwave. I have a module from
you that I've been trying to connect to my gumstix. I am going to try
again when I get a newer gumstix board.
The documentation on http://bluetooth-alsa.sf.net explains the build
process more.
Are you running this on an embedded cpu like arm? be sure when you run
configure to do it this way:
./configure --enable-fixed
What you do is follow the build instructions and then run:
hciconfig hci0 class 0x200404
sdptool add A2SNK
./a2recv
a2recv will listen for a connection and then send the received audio
directly to /dev/dsp. The audio stream is not really available as an
alsa device as you describe. How are you planning to process the sound?
Brad
> Hi brad,
>
> Thank you very much for your reply. But is the sink part is ready to use
> and is full compatitable with the alsa subsystem ? That means if i would
> like to put a application on top of this driver and read from this
> driver through alsa subsystem like reading pcm from a mic , can it work
> fines ?
>
> Regards,
> TOM
-------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-01-04 4:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20051231185308.E3D14130C8@sc8-sf-spam2.sourceforge.net>
2005-12-31 19:10 ` [Bluez-devel] hci.c:885: storage size of `iv' isn't known Andrew N. Balahonov
2006-01-02 11:31 ` Marcel Holtmann
2006-01-02 18:32 ` Andrew N. Balahonov
2006-01-02 19:31 ` Marcel Holtmann
2006-01-02 23:07 ` Andrew N. Balahonov
2006-01-03 9:56 ` Marcel Holtmann
2006-01-04 1:29 ` [Bluez-devel] the bluetooth-alsa driver tom
2006-01-04 1:36 ` Brad Midgley
2006-01-04 2:33 ` tom
2006-01-04 4:43 ` Brad Midgley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).