strigi compile errors
Jason Harris
jharris at 30doradus.org
Sat Mar 17 06:23:41 GMT 2007
Hello,
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!
thanks,
Jason
PS-
uname -a: Linux bender 2.6.12-gentoo-r6 #7 SMP Sun Nov 13 15:45:37 MST 2005
i686 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
gcc -v: 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
--
KStars: http://edu.kde.org/kstars
Community Forums: http://kstars.30doradus.org
More information about the kde-core-devel
mailing list