FS#28789 - [bluez] header makes compilation of C++ apps fail

Attached to Project: Arch Linux
Opened by Ike Devolder (BlackEagle) - Monday, 05 March 2012, 12:10 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 05 March 2012, 13:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

example: xbmc-git or xbmc-eden-git
install bluez and try to build

output:
CPP xbmc/network/TCPServer.o
In file included from TCPServer.cpp:42:0:
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_le64(void*)’:
/usr/include/bluetooth/bluetooth.h:131:113: error: invalid conversion from ‘void*’ to ‘bt_get_le64(void*)::<anonymous struct>*’ [-fpermissive]
In file included from TCPServer.cpp:42:0:
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_be64(void*)’:
/usr/include/bluetooth/bluetooth.h:136:166: error: invalid conversion from ‘void*’ to ‘bt_get_be64(void*)::<anonymous struct>*’ [-fpermissive]
In file included from TCPServer.cpp:42:0:
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_le32(void*)’:
/usr/include/bluetooth/bluetooth.h:141:113: error: invalid conversion from ‘void*’ to ‘bt_get_le32(void*)::<anonymous struct>*’ [-fpermissive]
In file included from TCPServer.cpp:42:0:
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_be32(void*)’:
/usr/include/bluetooth/bluetooth.h:146:165: error: invalid conversion from ‘void*’ to ‘bt_get_be32(void*)::<anonymous struct>*’ [-fpermissive]
In file included from TCPServer.cpp:42:0:
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_le16(void*)’:
/usr/include/bluetooth/bluetooth.h:151:113: error: invalid conversion from ‘void*’ to ‘bt_get_le16(void*)::<anonymous struct>*’ [-fpermissive]
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_be16(void*)’:
/usr/include/bluetooth/bluetooth.h:156:192: error: invalid conversion from ‘void*’ to ‘bt_get_be16(void*)::<anonymous struct>*’ [-fpermissive]
make[1]: *** [TCPServer.o] Error 1
make: *** [xbmc/network/network.a] Error 2


bluez-4.98-3

this issue has been solved in gentoo and debian and is already proposed in the mailinglist, but seems not yet accepted
https://bugs.gentoo.org/show_bug.cgi?id=403341

gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluez-4.98-fix-header.patch
debian: http://patch-tracker.debian.org/patch/series/dl/bluez/4.98-3/09_fix_compile_with_C++.patch



Steps to reproduce:
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 05 March 2012, 13:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  bluez 4.98-4

Loading...