On 21/01/2012 21:34, Jakub Wilk wrote:
> * peter green <plugw...@p10link.net>, 2012-01-21, 09:31:
>> ../../../Source/ZenLib/Ztring.h:201:13: error: 'ZenLib::Ztring&
>> ZenLib::Ztring::From_Number(size_t, ZenLib::int8u)' cannot be overloaded
>> ../../../Source/ZenLib/Ztring.h:186:13: error: with 'ZenLib::Ztring&
>> ZenLib::Ztring::From_Number(ZenLib::int32u, ZenLib::int8u)'
>> ../../../Source/ZenLib/Ztring.h:318:19: error: 'static ZenLib::Ztring
>> ZenLib::Ztring::ToZtring(size_t, ZenLib::int8u)' cannot be overloaded
>> ../../../Source/ZenLib/Ztring.h:310:19: error: with 'static ZenLib::Ztring
>> ZenLib::Ztring::ToZtring(ZenLib::int32u, ZenLib::int8u)'
>>
>>
>> *Strangely s390 succeeded, I dunno why.
> 
> This is possibly related to the fact that size_t is typedefed as "unsigned 
> long"
> on s390 (just like on all 64-bit architectures), but it's "unsigned int" on
> other 32-bit architectures.

The FTBFS is caused by a rather hacky patch[1] I included in -3 to fix an FTBFS
in s390[2].

Is there a better way of doing this without rewriting the parts of the library
that use the NEED_SIZET macro to use templates? Specifically, it looks like I
would need a preprocessor conditional to check whether size_t is unsigned int or
unsigned long.


[1]
http://anonscm.debian.org/gitweb/?p=pkg-multimedia/libzen.git;a=blob;f=debian/patches/0003-Amend-conditions-for-NEED_SIZET.patch;h=766a83b087a88459142e5144dc2499a23505654e;hb=HEAD

[2]
https://buildd.debian.org/status/fetch.php?pkg=libmediainfo&arch=s390&ver=0.7.52-1&stamp=1327034587

-- 
Kind regards,
Loong Jin

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to