[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: strigi compile errors
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2007-03-17 8:15:34
Message-ID: 45FBA3A6.9050007 () gmx ! de
[Download RAW message or body]


Jos van den Oever schrieb:
> 2007/3/17, Jason Harris <jharris@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


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic