[bt-devel] change in search algo

Martin Gruner mg.pub at gmx.net
Mon Oct 23 08:50:06 MST 2006


Hi Stephen,

> > I believe this is caused by a different order in linker flags. In the
> > first example you have:
> >
> > -L/usr/local/kde-svn-fc5/lib -L/usr/local/qt-src/lib -L/usr/lib
> > -L/usr/lib -L/usr/lib
> > -R /usr/local/kde-svn-fc5/20061006-bibletime-1.6/lib
> > -R /usr/local/kde-svn-fc5/lib -R /usr/local/qt-src/lib -R /usr/lib
> >
> > in the second (functional one):
> >
> > -L/usr/lib/qt-3.3//lib -L/usr/lib    -L/usr/lib -L/usr/lib
> > -R /usr/lib -R /usr/lib -R /usr/lib/qt-3.3//lib -R /usr/lib
> >
> > Maybe the linker needs /usr/lib (for sword) earlier or later.
>
> But, I don't know how to change the order of the linker flags to see if
> that is the problem.  So any help that you can give me to accomplish
> that would be greatly appreciated.

Ok. I don't know what caused the change in linker flags, and I don't even know 
if it causes your trouble, but this is what I'd suggest at a first start:

After "make" failed, copy & paste the failing linker command to your favorite 
editor. This would be

/bin/sh ../libtool --silent --mode=link --tag=CXX 
g++  -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 -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fexceptions    -o 
bibletime  -L/usr/local/kde-svn-fc5/lib -L/usr/local/qt-src/lib -L/usr/lib    -L/usr/lib -L/usr/lib -R /usr/local/kde-svn-fc5/20061022-bibletime-1.6/lib -R /usr/local/kde-svn-fc5/lib -R /usr/local/qt-src/lib -R /usr/lib 
bibletime_init.o bibletime_slots.o bibletime.o bibletimeapp.o main.o 
bibletime_dcop.o bibletimeinterface_skel.o 
bibletime.moc.o  ./frontend/displaywindow/libdisplaywindow.a ./frontend/display/libdisplay.a ./frontend/keychooser/libkeychooser.a ./frontend/mainindex/libmainindex.a ./frontend/searchdialog/libsearchdialog.a ./frontend/libfrontend.a ./frontend/util/libfrontendutil.a ./backend/libbackend.a ./util/libutil.a -lXext -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -lkdecore -lkdeui -lkdeprint -lkio -lkhtml -lX11  -lsword -lclucene

Then you can change  the order of linker flags to play with it. Try shifting 
them around to see if some setting works. Then you might be able to get it to 
compile with just that command line on the console, in the 
bibletime/bibletime dir.

If it works, the next step is to try and see where things get mixed up in 
Makefile and perhaps configure, so that we can fix Makefile generation as 
well.

Let us know what you find. Good luck. ;)

mg



More information about the bt-devel mailing list