[oe] opkg-sdk_svn build failure

Graham Gower graham.gower at gmail.com
Sun Dec 27 08:21:59 UTC 2009


2009/12/27 Khem Raj <raj.khem at gmail.com>:
> On (25/11/09 07:49), Graham Gower wrote:
>> sizeof returns long unsigned int on x86_64. This is fixed in r365.
>
> sizeof return size_t which is a type in itself so if you want
> portability between 32-bit and 64-bit systems you should probably
> use 'z' length modifier in printf formats. '%zd' would work correctly
> irrespective of word lenght of the processor. You need C99 compliant
> compiler though.
>
> Thanks
>
> -Khem

You're right. r365 casts it to an int instead, in an attempt to
maintain portability.




More information about the Openembedded-devel mailing list