Return-Path: MIME-Version: 1.0 In-Reply-To: References: From: Nobuhiro Iwamatsu Date: Fri, 9 Mar 2012 11:57:34 +0900 Message-ID: Subject: Re: bluez: Build fail with -std=c99 on using bluez application To: Markus Rathgeb Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=windows-1252 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, Thanks. When I applied this patch, the problem was settled. I hope that this patch is committed to git repository. Best regards, Nobuhiro 2012/3/8 Markus Rathgeb : > See also: http://comments.gmane.org/gmane.linux.bluez.kernel/22306 > > > 2012/3/8 Markus Rathgeb : >> I think, it is the same problem I reported here: >> http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 >> >> 2012/3/8 Nobuhiro Iwamatsu : >>> Hi, >>> >>> When I built application using bluez with -std=c99 option, build failed. >>> It can build, when not checking c99. I tested with bluez 4.99. >>> Do you recommend not to checking c99? >>> >>> Best regards, >>> ?Nobuhiro >>> ----- >>> $ cat t.c >>> #include >>> $ gcc -std=c99 -c t.c >>> In file included from t.c:1:0: >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_le64?: >>> /usr/include/bluetooth/bluetooth.h:159:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:159:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:159:9: error: ?struct ? >>> has no member named ?__v? >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_be64?: >>> /usr/include/bluetooth/bluetooth.h:164:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:164:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:164:9: error: ?struct ? >>> has no member named ?__v? >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_le32?: >>> /usr/include/bluetooth/bluetooth.h:169:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:169:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:169:9: error: ?struct ? >>> has no member named ?__v? >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_be32?: >>> /usr/include/bluetooth/bluetooth.h:174:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:174:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:174:9: error: ?struct ? >>> has no member named ?__v? >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_le16?: >>> /usr/include/bluetooth/bluetooth.h:179:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:179:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:179:9: error: ?struct ? >>> has no member named ?__v? >>> /usr/include/bluetooth/bluetooth.h: In function ?bt_get_be16?: >>> /usr/include/bluetooth/bluetooth.h:184:9: error: expected >>> specifier-qualifier-list before ?typeof? >>> /usr/include/bluetooth/bluetooth.h:184:9: error: called object >>> ?typeof(__p)? is not a function >>> /usr/include/bluetooth/bluetooth.h:184:9: error: ?struct ? >>> has no member named ?__v? >>> ----- >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at ?http://vger.kernel.org/majordomo-info.html