strigi compile errors

Jos van den Oever jvdoever at gmail.com
Sat Mar 17 07:51:48 GMT 2007


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?

Cheers,
Jos




More information about the kde-core-devel mailing list