[bt-devel] [ bibletime-Bugs-1621418 ] cswordmoduleinfo fails to compile on SUSE 10.1

SourceForge.net noreply at sourceforge.net
Sun Jan 14 10:15:45 MST 2007


Bugs item #1621418, was opened at 2006-12-23 20:52
Message generated for change (Comment added) made by mgruner
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1621418&group_id=954

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Backend / SWORD
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Martin Gruner (mgruner)
Summary: cswordmoduleinfo fails to compile on SUSE 10.1

Initial Comment:
rcbell at linuxdell:~/Downloads/bibletime-1.6.2> make
make  all-recursive
make[1]: Entering directory `/home/rcbell/Downloads/bibletime-1.6.2'
Making all in bibletime
make[2]: Entering directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime'
Making all in display-templates
make[3]: Entering directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime/display-templates'
perl ../../bibletime/display-templates/create_code.pl ../../bibletime/display-templates/*.tmpl
Found Default
Found Crazy
Found Green
Found High contrast
Found Simple
make[3]: Leaving directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime/display-templates'
Making all in backend
make[3]: Entering directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime/backend'
g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include  -I/usr/include/sword -I/usr/include -I/usr/lib -I/usr/include/sword  -DQT_THREAD_SUPPORT  -D_REENTRANT -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -Wall -I../../ -I../../bibletime -I../../bibletime  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fexceptions  -MT cswordmoduleinfo.o -MD -MP -MF .deps/cswordmoduleinfo.Tpo -c -o cswordmoduleinfo.o cswordmoduleinfo.cpp
/usr/include/sword/swbuf.h: In member function ‘bool sword::SWBuf::endsWith(const char*) const’:
/usr/include/sword/swbuf.h:341: warning: comparison between signed and unsigned integer expressions
/usr/include/sword/swmodule.h: At global scope:
/usr/include/sword/swmodule.h:402: warning: unused parameter ‘path’
/usr/include/sword/swmodule.h:406: warning: unused parameter ‘inbuf’
/usr/include/sword/swmodule.h:406: warning: unused parameter ‘len’
/usr/include/sword/swmodule.h:411: warning: unused parameter ‘sourceKey’
cswordmoduleinfo.cpp: In member function ‘virtual void CSwordModuleInfo::buildIndex()’:
cswordmoduleinfo.cpp:230: error: invalid conversion from ‘const wchar_t**’ to ‘wchar_t**’
cswordmoduleinfo.cpp:230: error:   initializing argument 1 of ‘lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(wchar_t**)’
cswordmoduleinfo.cpp:256: warning: unused variable ‘isVerseModule’
cswordmoduleinfo.cpp: In member function ‘virtual const bool CSwordModuleInfo::searchIndexed(const QString&, sword::ListKey&)’:
cswordmoduleinfo.cpp:384: error: expected initializer before ‘*’ token
cswordmoduleinfo.cpp:385: error: ‘stop_words’ was not declared in this scope
cswordmoduleinfo.cpp:374: warning: unused variable ‘isVerseModule’
make[3]: *** [cswordmoduleinfo.o] Error 1
make[3]: Leaving directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime/backend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rcbell/Downloads/bibletime-1.6.2/bibletime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rcbell/Downloads/bibletime-1.6.2'
make: *** [all] Error 2

I removed the "const" chars in lines 229 & 384 and this resolved the compile error.

I am compiling on openSUSE 10.1 (gcc-4.1.0-25 and glib-1.2.10-607). The gcc-4 compiler is stricter and has caused those at my job a lot of compile errors that formerly slipped by.

Craig Bell
rcbell at cox.net

----------------------------------------------------------------------

>Comment By: Martin Gruner (mgruner)
Date: 2007-01-14 18:15

Message:
Logged In: YES 
user_id=169722
Originator: NO

This is a known problem. You either have to upgrade to clucene 0.9.16 or
use our binary packages.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1621418&group_id=954



More information about the bt-devel mailing list