2012-03-08 00:43:56

by Nobuhiro Iwamatsu

[permalink] [raw]
Subject: bluez: Build fail with -std=c99 on using bluez application

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 <bluetooth/bluetooth.h>
$ 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 <anonymous>?
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 <anonymous>?
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 <anonymous>?
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 <anonymous>?
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 <anonymous>?
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 <anonymous>?
has no member named ?__v?
-----


2012-03-09 02:57:34

by Nobuhiro Iwamatsu

[permalink] [raw]
Subject: Re: bluez: Build fail with -std=c99 on using bluez application

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 <[email protected]>:
> See also: http://comments.gmane.org/gmane.linux.bluez.kernel/22306
>
>
> 2012/3/8 Markus Rathgeb <[email protected]>:
>> I think, it is the same problem I reported here:
>> http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
>>
>> 2012/3/8 Nobuhiro Iwamatsu <[email protected]>:
>>> 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 <bluetooth/bluetooth.h>
>>> $ 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 <anonymous>?
>>> 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 <anonymous>?
>>> 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 <anonymous>?
>>> 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 <anonymous>?
>>> 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 <anonymous>?
>>> 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 <anonymous>?
>>> has no member named ?__v?
>>> -----
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>>> the body of a message to [email protected]
>>> More majordomo info at ?http://vger.kernel.org/majordomo-info.html

2012-03-08 10:05:28

by Markus Rathgeb

[permalink] [raw]
Subject: Re: bluez: Build fail with -std=c99 on using bluez application

See also: http://comments.gmane.org/gmane.linux.bluez.kernel/22306


2012/3/8 Markus Rathgeb <[email protected]>:
> I think, it is the same problem I reported here:
> http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
>
> 2012/3/8 Nobuhiro Iwamatsu <[email protected]>:
>> 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 <bluetooth/bluetooth.h>
>> $ 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 <anonymous>’
>> 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 <anonymous>’
>> 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 <anonymous>’
>> 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 <anonymous>’
>> 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 <anonymous>’
>> 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 <anonymous>’
>> has no member named ‘__v’
>> -----
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
>> the body of a message to [email protected]
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

2012-03-08 10:04:06

by Markus Rathgeb

[permalink] [raw]
Subject: Re: bluez: Build fail with -std=c99 on using bluez application

I think, it is the same problem I reported here:
http://permalink.gmane.org/gmane.linux.bluez.kernel/22294

2012/3/8 Nobuhiro Iwamatsu <[email protected]>:
> 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 <bluetooth/bluetooth.h>
> $ 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 <anonymous>’
> 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 <anonymous>’
> 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 <anonymous>’
> 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 <anonymous>’
> 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 <anonymous>’
> 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 <anonymous>’
> has no member named ‘__v’
> -----
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html