Return-Path: MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 8 Mar 2012 11:04:06 +0100 Message-ID: Subject: Re: bluez: Build fail with -std=c99 on using bluez application From: Markus Rathgeb To: Nobuhiro Iwamatsu Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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