strigi compile errors

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Mar 17 08:15:34 GMT 2007


Jos van den Oever schrieb:
> 2007/3/17, Jason Harris <jharris at 30doradus.org>:
>> I'm trying to compile strigi for the first time, and I'm getting a lot of
>> compile errors in src/streams/textutils.h like the following:
>>
>> /home/jharris/kde4svn/kdesupport/strigi/src/streams/textutils.h:68: 
>> error:
>> syntax
>>    error before `(' token
>> /home/jharris/kde4svn/kdesupport/strigi/src/streams/textutils.h:74: 
>> error:
>> syntax
>>    error before `(' token
>>
>> The common feature to all of the lines throwing syntax errors is that 
>> they
>> each contain a "uint[16|32|64]_t" typedef.  These are supposed to be 
>> defined
>> in src/streams/compat/jstreamsconfig.h (in the builddir), but this 
>> file only
>> contains blocks like:
>>
>> #if !1
>>  #define HAVE_UINT16_T 1
>>  #if 2==2 //is short 2bits?
>>   typedef unsigned short uint16_t;
>>  #else
>>   #error Could not determine type for uint16_t!
>>  #endif
>> #endif
>>
>> So there's obviously nothing being parsed there (#if !1 is always false).
>> This file is generated by cmake from
>> src/streams/compat/jstreamconfig.h.cmake, where the same block looks like
>> this:
>>
>> #if !@HAVE_UINT16_T@
>>  #define HAVE_UINT16_T 1
>>  #if ${SIZEOF_SHORT}==2 //is short 2bits?
>>   typedef unsigned short uint16_t;
>>  #else
>>   #error Could not determine type for uint16_t!
>>  #endif
>> #endif
>>
>> So, apparently cmake thinks that my system already knows about uint16_t
>> (because "@HAVE_UINT16_T@" gets replaced with "1" in jstreamconfig.h), 
>> but
>> gcc doesn't actually know what it is.
>>
>> If anyone could provide a clue how to fix this, I'd appreciate it!
> 
> Hi Jason,
> 
> Include stdint.h in textutils.h should fix the problem. Can you test this?
> 
Maybe not in textutils.h but in jstreamsconfig.h so it can get included 
conditionally.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070317/638d0e86/attachment.sig>


More information about the kde-core-devel mailing list