[bt-devel] [ bibletime-Bugs-1574196 ] Configure failed to include Sword (non-standard) location

SourceForge.net noreply at sourceforge.net
Tue Oct 10 21:09:35 MST 2006


Bugs item #1574196, was opened at 2006-10-09 19:23
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=1574196&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: General
Group: in progress
Status: Pending
Resolution: None
Priority: 7
Submitted By: reubendb (reubendb)
Assigned to: Martin Gruner (mgruner)
Summary: Configure failed to include Sword (non-standard) location 

Initial Comment:
Here is my configure line:
./configure
--with-clucene-dir=/usr/local/clucene-0.9.15
--with-sword-dir=/usr/local/sword-1.5.9
--prefix=/usr/local/bibletime-1.6

This configure failed with the following message:
"Failed to compile the test program to check the
CLucene version! Please have a look at config.log!
Report this to the BibleTime developers!"

Checking the config.log, I found the line that's used
for testing Clucene:

configure:32576: /bin/sh ./libtool --silent --mode=link
g++ -o conftest -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
-I$ -I/usr/include/kde -I/usr/lib64/qt-3.3/include
-I/usr/X11R6/include
-I/usr/local/sword-1.5.9/include/sword
-I/usr/local/clucene-0.9.15/include
-I/usr/local/clucene-0.9.15/lib  -DQT_THREAD_SUPPORT  
-D_REENTRANT -DQT_NO_ASCII_CAST -DQT_NO_COMPAT
-DQT_CLEAN_NAMESPACE -Wall -I$(top_srcdir)/
-I$(top_srcdir)/bibletime -I$(top_builddir)/bibletime  
-L/usr/local/clucene-0.9.15/lib conftest.cc -lclucene
-lz -lsword 1>&5

So I believe, configure failed because it did not
include something like: "-L/usr/local/sword-1.5.9/lib",
which is the location of my sword installation that I
specified.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2006-10-10 21:09

Message:
Logged In: NO 


Hi Martin,
Was I supposed to regenerate the configure script from the
new "clucene.m4" file somehow ? Please forgive my ignorance,
but I'm not sure how to do that. Just re-running ./configure
(with same options) with the new clucene.m4 checked out from
CVS gave me the same errror. 

So I played with the configure script directly, and the
following changes work for me, if it's any help: 
------------------------------------------------------
# diff -u configure configure.rdb 
--- configure   2006-09-22 08:56:04.000000000 -0400
+++ configure.rdb       2006-10-10 23:54:00.000000000 -0400
@@ -32142,7 +32142,7 @@
 if test "x$ac_static_sword" = "xYES"; then
        LIB_SWORD="$ac_cv_sword_libdir/libsword.a";
 else
-       LIB_SWORD="-lsword";
+       LIB_SWORD="-L$ac_cv_sword_libdir -lsword";
 fi
 
 
@@ -32549,7 +32549,7 @@
 
 CXXFLAGS="$CXXFLAGS -I$"
 LDFLAGS="$LDFLAGS -L$ac_cv_clucene_libdir"
-LIBS="$LIB_CLUCENE -lz -lsword"
+LIBS="$LIB_CLUCENE -lz $LIB_SWORD"
 LD_LIBRARY_PATH="$ac_cv_clucene_libdir"
 export LD_LIBRARY_PATH
 LIBRARY_PATH=

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

Thanks for your quick responds!

RDB

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

Comment By: Martin Gruner (mgruner)
Date: 2006-10-10 09:23

Message:
Logged In: YES 
user_id=169722

Hi reubendb.
Could you please check out cvs or apply the patch below? I 
cannot test conclusively, but I believe this fixes your 
bug. If it does, please close this report.

--mg


Index: clucene.m4
===================================================================
RCS file: /cvsroot/bibletime/bibletime/clucene.m4,v
retrieving revision 1.5
diff -u -3 -p -u -r1.5 clucene.m4
--- clucene.m4  26 Jul 2006 16:36:29 -0000      1.5
+++ clucene.m4  10 Oct 2006 16:20:54 -0000
@@ -74,7 +74,7 @@ fi

 CLUCENE_INCLUDES="-I$ac_cv_clucene_incdir"
 AC_SUBST(CLUCENE_INCLUDES)
-all_includes="$all_includes -I$ac_cv_clucene_incdir -I$ac_cv_clucene_libdir" 
#$ac_cv_clucene_libdir needed for Clucene/clucene-config.h
+all_includes="$all_includes -I$ac_cv_clucene_incdir -I$ac_cv_clucene_libdir -I$ac_cv_sword_incdir" 
#$ac_cv_clucene_libdir needed for Clucene/clucene-config.h

 AC_MSG_RESULT([$ac_cv_clucene_incdir])

@@ -95,7 +95,7 @@ ac_ldflags_safe="$LDFLAGS"
 ac_libs_safe="$LIBS"

 CXXFLAGS="$CXXFLAGS -I$"
-LDFLAGS="$LDFLAGS -L$ac_cv_clucene_libdir"
+LDFLAGS="$LDFLAGS -L$ac_cv_clucene_libdir -L$ac_cv_sword_libdir"
 LIBS="$LIB_CLUCENE -lz -lsword"
 LD_LIBRARY_PATH="$ac_cv_clucene_libdir"
 export LD_LIBRARY_PATH


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

Comment By: reubendb (reubendb)
Date: 2006-10-10 05:25

Message:
Logged In: YES 
user_id=1056312

Hi Martin,
I think I already uploaded config.log to sourceforge's bug
reporting. Also, a bit more about the system I'm using:
qt-3.3.4
kde-3.5.3
Fedora Core 4 x86-64 on AMD64
Let me know if there's anything else that would help. Thanks
for looking into it. 
 

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

Comment By: Martin Gruner (mgruner)
Date: 2006-10-09 23:19

Message:
Logged In: YES 
user_id=169722

Hi reubendb. I'll try to look at it this afternoon when I come back home. Can you please attach/paste your complete config.log, as well as other possibly relevant information? Thanks.

--mg

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

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



More information about the bt-devel mailing list