[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: strigi compile errors
From: "Jos van den Oever" <jvdoever () gmail ! com>
Date: 2007-03-17 7:51:48
Message-ID: c2dbc4260703170051n1d0db97cw8fc6e5948740d2ba () mail ! gmail ! com
[Download RAW message or body]
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?
Cheers,
Jos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic