-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(2013-09-08 21:47:23) claudiu: LRN : do you have a bluetooth device? If yes,
could you please try to compile and run this sample
http://pastebin.com/GcaeQqjd (you should use -lws2_32 flag). I don't know why
but when I run it on the evironment created by sbuild I receive a
WSAEADDRNOTAVAIL error when it tries to bind the socket. (on a different
environment it works).
(2013-09-08 21:57:32) LRN: i've never used bluetooth, and i'm not sure i have
any BT devices
(2013-09-08 21:59:01) LRN: on my machine i get: Failed to create RFCOMM
socket: An address incompatible with the requested protocol was used.
(2013-09-08 21:59:21) LRN: so yeah, that's earlier than bind()
(2013-09-08 22:00:13) LRN: I could probably try it on my laptop, it should
have bluetooth
(2013-09-08 22:00:43) claudiu: I would be of great help
(2013-09-08 22:01:24) LRN: claudiu, have you read
http://msdn.microsoft.com/en-us/library/windows/desktop/aa362899%28v=vs.85%29.aspx
?
(2013-09-08 22:03:05) claudiu: yes I did
(2013-09-08 22:04:07) LRN: ok...
(2013-09-08 22:05:38) LRN: i don't have any dev tools on my laptop, so i'll
compile the sample here, transfer it there, and then run it
(2013-09-08 22:07:43) LRN: failed to bind the socket: The requested address
is not valid in its context
(2013-09-08 22:08:00) claudiu: yep..I got the same error
(2013-09-08 22:09:46) claudiu: the thing is that if I copy the ws2bth ,
bthdef, bthsdpdef headers (from the microsoft sdk 7.1) over the mingw ones,
it works
(2013-09-08 22:10:57) LRN: h-m-mm-
(2013-09-08 22:24:22) LRN: claudiu, try running sizeof on addr (when
compiling against ms headers) and printing it
(2013-09-08 22:24:30) LRN: then see if it matches sizeof for mingw
(2013-09-08 22:30:13) claudiu: LRN: they don't match. One is 30, and the
other is 40
(2013-09-08 22:31:01) LRN: \o/
(2013-09-08 22:33:02) LRN: ok, found the problem
(2013-09-08 22:33:19) LRN: SOCKADDR_BTH must be packed (1 byte)
(2013-09-08 22:40:58) claudiu: is it ok if I replace the ws2bth header with a
new one?
(2013-09-08 22:41:06) LRN: um...
(2013-09-08 22:41:13) LRN: this should be fixed upstream, IMO
(2013-09-08 22:41:20) LRN: i'll talk to the devs
(2013-09-08 22:41:48) LRN: meanwhile - go ahead, fix ws2bth.h (add #pragma
pack(push, 1), #pragma pack(pop))


Apparently, i forgot to report this.


- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJT1BobAAoJEOs4Jb6SI2Cw5S4IANfAHsrQK0UQU2U2Lj4bf/oL
qTkxP50EBPb+FISH9oKOp+nJGvaPmNfaALc+LblVBCZpGZ3JsbJ7HRanYnQy+18l
Pl6Z5eQj1y+0NVIX+wIFJTq3wR/BoFsWY+cQN+8pwqfmbi3pYyoU+Fl1s4F211J8
lwE763lRhvL8fTMqIDodMvdbXksyvdmnj3mFgBfufFEuiG6jsqAP7iKee/hkP1Hz
IIkv0kl7eq94HZ+zlwfc3JP9Em3OwLxOficIRNrUsg61Y3DZf2ZpjQRcblPHkPSg
CxgBoSDifwx3v531wVpj55cODNs/wco2Y/jcE8iR/QBYadJXphOHUQeqmUSIwnk=
=ccmC
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to