[Xapian-devel] build error : xapian-core-0.9.4_svn6707 with UTF-8
patch
Sungsoo Kim
xingshou at gmail.com
Wed Apr 5 15:58:05 BST 2006
This is another error different from the previous posting.
I want to compile xapian-core-0.9.4_svn6707 with UTF-8 patch.
But I failed to compile it due to the following errors.
Environment : CentOS 4.3 x86_64
Sungsoo Kim
----------------------------------
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../common -I../api
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -Wredundant-decls
-Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long
-fno-gnu-keywords -g -O2 -MT queryparser_internal.lo -MD -MP -MF
.deps/queryparser_internal.Tpo -c queryparser_internal.cc -fPIC -DPIC -o
.libs/queryparser_internal.o
In file included from /usr/include/glib-2.0/glib/gquark.h:30,
from /usr/include/glib-2.0/glib/gerror.h:24,
from /usr/include/glib-2.0/glib/gunicode.h:25,
from accentnormalisingitor.h:22,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/include/glib-2.0/glib/gtypes.h:30:24: glibconfig.h: No such file or
directory
In file included from /usr/include/glib-2.0/glib/gquark.h:30,
from /usr/include/glib-2.0/glib/gerror.h:24,
from /usr/include/glib-2.0/glib/gunicode.h:25,
from accentnormalisingitor.h:22,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/include/glib-2.0/glib/gtypes.h:41: error: expected constructor,
destructor, or type conversion before "typedef"
/usr/include/glib-2.0/glib/gtypes.h:341:5: warning: "G_BYTE_ORDER" is not
defined
/usr/include/glib-2.0/glib/gtypes.h:361:7: warning: "G_BYTE_ORDER" is not
defined
/usr/include/glib-2.0/glib/gtypes.h:382:2: #error unknown ENDIAN type
In file included from /usr/include/glib-2.0/glib/gerror.h:24,
from /usr/include/glib-2.0/glib/gunicode.h:25,
from accentnormalisingitor.h:22,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/include/glib-2.0/glib/gtypes.h:393: error: `G_END_DECLS' does not name
a type
/usr/include/glib-2.0/glib/gquark.h:38: error: `GQuark' does not name a type
/usr/include/glib-2.0/glib/gquark.h:39: error: `GQuark' does not name a type
/usr/include/glib-2.0/glib/gquark.h:40: error: `GQuark' does not name a type
/usr/include/glib-2.0/glib/gquark.h:41: error: `G_CONST_RETURN' does not
name a type
In file included from /usr/include/glib-2.0/glib/gunicode.h:25,
from accentnormalisingitor.h:22,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/include/glib-2.0/glib/gquark.h:43: error: `G_END_DECLS' does not name a
type
/usr/include/glib-2.0/glib/gerror.h:32: error: `GQuark' does not name a type
/usr/include/glib-2.0/glib/gerror.h:34: error: ISO C++ forbids declaration
of `gchar' with no type
/usr/include/glib-2.0/glib/gerror.h:34: error: expected `;' before '*' token
/usr/include/glib-2.0/glib/gerror.h:37: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gerror.h:42: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gerror.h:46: error: variable or field
`g_error_free' declared void
/usr/include/glib-2.0/glib/gerror.h:46: error: `GError' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:46: error: `error' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:47: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gerror.h:49: error: expected `,' or `...' before
'*' token
/usr/include/glib-2.0/glib/gerror.h:51: error: ISO C++ forbids declaration
of `GError' with no type
/usr/include/glib-2.0/glib/gerror.h:56: error: variable or field
`g_set_error' declared void
/usr/include/glib-2.0/glib/gerror.h:56: error: `GError' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:56: error: `err' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:57: error: `GQuark' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:58: error: expected primary-expression
before "code"
/usr/include/glib-2.0/glib/gerror.h:59: error: expected primary-expression
before "const"
/usr/include/glib-2.0/glib/gerror.h:60: error: expected primary-expression
before '...' token
/usr/include/glib-2.0/glib/gerror.h:60: error: initializer expression list
treated as compound expression
/usr/include/glib-2.0/glib/gerror.h:60: error: expected `,' or `;' before
"G_GNUC_PRINTF"
/usr/include/glib-2.0/glib/gerror.h:64: error: variable or field
`g_propagate_error' declared void
/usr/include/glib-2.0/glib/gerror.h:64: error: `GError' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:64: error: `dest' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:65: error: `GError' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:65: error: `src' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:65: error: initializer expression list
treated as compound expression
/usr/include/glib-2.0/glib/gerror.h:68: error: variable or field
`g_clear_error' declared void
/usr/include/glib-2.0/glib/gerror.h:68: error: `GError' was not declared in
this scope
/usr/include/glib-2.0/glib/gerror.h:68: error: `err' was not declared in
this scope
In file included from accentnormalisingitor.h:22,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/include/glib-2.0/glib/gerror.h:71: error: `G_END_DECLS' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:31: error: `guint16' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:114: error: `G_CONST_RETURN' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:118: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:118: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:119: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:119: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:120: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:120: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:121: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:121: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:122: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:122: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:123: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:123: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:124: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:124: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:125: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:125: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:126: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:126: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:127: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:127: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:128: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:128: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:129: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:129: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:130: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:130: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:131: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:131: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:135: error: `gunichar' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:136: error: `gunichar' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:137: error: `gunichar' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:141: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:141: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:143: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:143: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:146: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:146: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:149: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:149: error: expected `,' or `;' before
"G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:155: error: variable or field
`g_unicode_canonical_ordering' declared void
/usr/include/glib-2.0/glib/gunicode.h:155: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:155: error: `string' was not declared
in this scope
/usr/include/glib-2.0/glib/gunicode.h:156: error: `gsize' was not declared
in this scope
/usr/include/glib-2.0/glib/gunicode.h:156: error: initializer expression
list treated as compound expression
/usr/include/glib-2.0/glib/gunicode.h:161: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:166: error: expected initializer
before '*' token
/usr/include/glib-2.0/glib/gunicode.h:170: error: `gunichar' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:171: error: `gunichar' does not name a
type
/usr/include/glib-2.0/glib/gunicode.h:174: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:176: error: expected `,' or `...'
before '*' token
/usr/include/glib-2.0/glib/gunicode.h:177: error: ISO C++ forbids
declaration of `gchar' with no type
/usr/include/glib-2.0/glib/gunicode.h:178: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:179: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:181: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:184: error: expected `,' or `...'
before '*' token
/usr/include/glib-2.0/glib/gunicode.h:185: error: ISO C++ forbids
declaration of `gchar' with no type
/usr/include/glib-2.0/glib/gunicode.h:188: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:194: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:197: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:200: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:203: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:208: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:213: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:216: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:221: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:226: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:231: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:241: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:242: error: `gchar' was not declared
in this scope
/usr/include/glib-2.0/glib/gunicode.h:242: error: `outbuf' was not declared
in this scope
/usr/include/glib-2.0/glib/gunicode.h:242: error: initializer expression
list treated as compound expression
/usr/include/glib-2.0/glib/gunicode.h:248: error: expected `,' or `...'
before '*' token
/usr/include/glib-2.0/glib/gunicode.h:250: error: ISO C++ forbids
declaration of `gchar' with no type
/usr/include/glib-2.0/glib/gunicode.h:253: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:255: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:257: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:259: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:273: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:277: error: expected `,' or `...'
before '*' token
/usr/include/glib-2.0/glib/gunicode.h:278: error: ISO C++ forbids
declaration of `gchar' with no type
/usr/include/glib-2.0/glib/gunicode.h:279: error: expected constructor,
destructor, or type conversion before '*' token
/usr/include/glib-2.0/glib/gunicode.h:282: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:283: error: `gunichar' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:283: error: `mirrored_ch' was not
declared in this scope
/usr/include/glib-2.0/glib/gunicode.h:283: error: initializer expression
list treated as compound expression
In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/string:45,
from accentnormalisingitor.h:24,
from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/c++config.h:57:
error: expected constructor, destructor, or type conversion before
"namespace"
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/c++config.h:61:
error: `__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/c++config.h:61:
error: expected namespace-name before ';' token
In file included from
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:24:
accentnormalisingitor.h:29: error: `gunichar' does not name a type
accentnormalisingitor.h:36: error: `char_type' does not name a type
accentnormalisingitor.h:38: error: expected `)' before "ch_"
accentnormalisingitor.h:39: error: ISO C++ forbids declaration of
`char_type' with no type
accentnormalisingitor.h:39: error: expected `;' before "operator"
accentnormalisingitor.h:40: error: expected `;' before '}' token
accentnormalisingitor.h:44: error: ISO C++ forbids declaration of `gchar'
with no type
accentnormalisingitor.h:44: error: expected `;' before '*' token
accentnormalisingitor.h:45: error: ISO C++ forbids declaration of `gchar'
with no type
accentnormalisingitor.h:45: error: expected `;' before '*' token
accentnormalisingitor.h:47: error: `char_type' does not name a type
accentnormalisingitor.h:72: error: ISO C++ forbids declaration of
`char_type' with no type
accentnormalisingitor.h:72: error: expected `;' before "operator"
accentnormalisingitor.h:82: error: expected `;' before
"AccentNormalisingItor"
accentnormalisingitor.h: In constructor
`AccentNormalisingItor::AccentNormalisingItor()':
accentnormalisingitor.h:52: error: class `AccentNormalisingItor' does not
have any field named `itor'
accentnormalisingitor.h:52: error: class `AccentNormalisingItor' does not
have any field named `queued'
accentnormalisingitor.h: In constructor
`AccentNormalisingItor::AccentNormalisingItor(const char*)':
accentnormalisingitor.h:54: error: class `AccentNormalisingItor' does not
have any field named `itor'
accentnormalisingitor.h:54: error: class `AccentNormalisingItor' does not
have any field named `end'
accentnormalisingitor.h:54: error: class `AccentNormalisingItor' does not
have any field named `queued'
accentnormalisingitor.h: In constructor
`AccentNormalisingItor::AccentNormalisingItor(const char*, const char*)':
accentnormalisingitor.h:56: error: class `AccentNormalisingItor' does not
have any field named `itor'
accentnormalisingitor.h:56: error: class `AccentNormalisingItor' does not
have any field named `end'
accentnormalisingitor.h:56: error: class `AccentNormalisingItor' does not
have any field named `queued'
accentnormalisingitor.h: In member function `bool
AccentNormalisingItor::operator==(const AccentNormalisingItor&) const':
accentnormalisingitor.h:67: error: `queued' was not declared in this scope
accentnormalisingitor.h:67: error: 'const class AccentNormalisingItor' has
no member named 'queued'
accentnormalisingitor.h:67: error: `itor' was not declared in this scope
accentnormalisingitor.h:67: error: 'const class AccentNormalisingItor' has
no member named 'itor'
accentnormalisingitor.h:67: warning: unused variable 'queued'
accentnormalisingitor.h:67: warning: unused variable 'itor'
accentnormalisingitor.h: In member function `AccentNormalisingItor&
AccentNormalisingItor::operator++()':
accentnormalisingitor.h:83: error: `queued' was not declared in this scope
accentnormalisingitor.h:86: error: `char_type' was not declared in this
scope
accentnormalisingitor.h:86: error: expected `;' before "ch"
accentnormalisingitor.h:87: error: `ch' was not declared in this scope
accentnormalisingitor.h:86: warning: unused variable 'char_type'
accentnormalisingitor.h:101: error: `g_utf8_skip' was not declared in this
scope
accentnormalisingitor.h:101: error: `itor' was not declared in this scope
accentnormalisingitor.h:102: error: `end' was not declared in this scope
accentnormalisingitor.h:101: warning: unused variable 'g_utf8_skip'
accentnormalisingitor.h: In member function `CharWrapper
AccentNormalisingItor::operator++(int)':
accentnormalisingitor.h:110: error: `char_type' was not declared in this
scope
accentnormalisingitor.h:110: error: expected `;' before "tmp"
accentnormalisingitor.h:112: error: `tmp' was not declared in this scope
accentnormalisingitor.h:110: warning: unused variable 'char_type'
accentnormalisingitor.h:112: warning: unused variable 'tmp'
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:
At global scope:
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:40:
error: `U_isupper' declared as an `inline' variable
...
...
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:549:
error: no match for 'operator*' in '*it'
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:549:
error: `g_unichar_isalnum' cannot be used as a function
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:194:
warning: unused variable 'gchar'
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:
In function `_InputIterator std::find_if(_InputIterator, _InputIterator,
_Predicate, std::input_iterator_tag) [with _InputIterator =
AccentNormalisingItor, _Predicate = bool]':
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:336:
instantiated from `_InputIterator std::find_if(_InputIterator,
_InputIterator, _Predicate) [with _InputIterator = AccentNormalisingItor,
_Predicate = bool]'
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:216:
instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:187:
error: no match for 'operator*' in '*__first'
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:187:
error: `__pred' cannot be used as a function
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:
At global scope:
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:55:
warning: 'U_isalnum' defined but not used
/u1/olly/xapian-svn-snapshot/trunk/xapian/xapian-core/queryparser/queryparser.lemony:60:
warning: 'U_isnotalnum' defined but not used
make[3]: *** [queryparser_internal.lo] Error 1
make[3]: Leaving directory
`/home/kiss/download/xapian-0.9.4/xapian-core-0.9.4_svn6707/queryparser'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/kiss/download/xapian-0.9.4/xapian-core-0.9.4_svn6707/queryparser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/kiss/download/xapian-0.9.4/xapian-core-0.9.4_svn6707'
make: *** [all] Error 2
More information about the Xapian-devel
mailing list