Re: bluez: Build fail with -std=c99 on using bluez application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <maggu2810@xxxxxxxxxxxxxx>:
> See also: http://comments.gmane.org/gmane.linux.bluez.kernel/22306
>
>
> 2012/3/8 Markus Rathgeb <maggu2810@xxxxxxxxxxxxxx>:
>> I think, it is the same problem I reported here:
>> http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
>>
>> 2012/3/8 Nobuhiro Iwamatsu <iwamatsu@xxxxxxxxxxx>:
>>> 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 majordomo@xxxxxxxxxxxxxxx
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux