Sorry if this is a repost .. I have edited my query a little bit and my
previous post was too long and so was waiting approval(I cancelled it)
Ok. Another question..
I have installed the Search ::Xapian on my local machine. Now I'm trying to
install it on a machine where i dont have root access. So while running
configure of the Xapian library I gave the -prefix option and everything
installed properly. now when I try to install the Search Xapian library, I'm
get lots of warnings while usage of "make "
Xapian.c:13110: warning: 'RETVAL' may be used uninitialized in this
function
Xapian.c: In function 'void XS_Search__Xapian__
WritableDatabase_postlist_end(PerlInterpreter*, CV*)':
Xapian.c:1226: warning: 'RETVAL' may be used uninitialized in this
function
Xapian.c: In function 'void
XS_Search__Xapian__Database_postlist_begin(PerlInterpreter*, CV*)':
Xapian.c:13068: warning: 'RETVAL' may be used uninitialized in this
function
Xapian.c: In function 'void
XS_Search__Xapian__WritableDatabase_postlist_begin(PerlInterpreter*, CV*)':
Xapian.c:1184: warning: 'RETVAL' may be used uninitialized in this
function
Xapian.c: In function 'void
XS_Search__Xapian__Database_allterms_end(PerlInterpreter*, CV*)':
Xapian.c:13022: warning: 'RETVAL' may be used uninitialized in this
function
Xapian.c: In function 'void
XS_Search__Xapian__WritableDatabase_allterms_end(PerlInterpreter*, CV*)':
Xapian.c:1138: warning: 'RETVAL' may be used uninitialized in this
function
libtool: compile: g++ -c
-I/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/include -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DVERSION=\"1.2.5.0\" -DXS_VERSION=\"1.2.5.0\" -fPIC
-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE Xapian.c -o
Xapian.o >/dev/null 2>&1
/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/libtool --tag=CXX
--mode=compile g++ -c
-I/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/include -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DVERSION=\"1.2.5.0\" -DXS_VERSION=\"1.2.5.0\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE"
handle_exception.cc
libtool: compile: g++ -c
-I/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/include -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DVERSION=\"1.2.5.0\" -DXS_VERSION=\"1.2.5.0\" -fPIC
-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE
handle_exception.cc -fPIC -DPIC -o .libs/handle_exception.o
handle_exception.cc: In function 'void handle_exception()':
handle_exception.cc:20: warning: null argument where non-null required
(argument 1)
handle_exception.cc:24: warning: null argument where non-null required
(argument 1)
handle_exception.cc:28: warning: null argument where non-null required
(argument 1)
handle_exception.cc:32: warning: null argument where non-null required
(argument 1)
handle_exception.cc:36: warning: null argument where non-null required
(argument 1)
handle_exception.cc:40: warning: null argument where non-null required
(argument 1)
handle_exception.cc:44: warning: null argument where non-null required
(argument 1)
handle_exception.cc:48: warning: null argument where non-null required
(argument 1)
handle_exception.cc:52: warning: null argument where non-null required
(argument 1)
handle_exception.cc:56: warning: null argument where non-null required
(argument 1)
handle_exception.cc:60: warning: null argument where non-null required
(argument 1)
handle_exception.cc:64: warning: null argument where non-null required
(argument 1)
handle_exception.cc:68: warning: null argument where non-null required
(argument 1)
handle_exception.cc:72: warning: null argument where non-null required
(argument 1)
handle_exception.cc:76: warning: null argument where non-null required
(argument 1)
handle_exception.cc:80: warning: null argument where non-null required
(argument 1)
handle_exception.cc:84: warning: null argument where non-null required
(argument 1)
handle_exception.cc:88: warning: null argument where non-null required
(argument 1)
handle_exception.cc:92: warning: null argument where non-null required
(argument 1)
libtool: compile: g++ -c
-I/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/include -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DVERSION=\"1.2.5.0\" -DXS_VERSION=\"1.2.5.0\" -fPIC
-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE handle_exception.cc
-o handle_exception.o >/dev/null 2>&1
Running Mkbootstrap for Search::Xapian ()
chmod 644 Xapian.bs
rm -f blib/arch/auto/Search/Xapian/Xapian.la
/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/libtool --tag=CXX
--mode=link g++ -avoid-version -module -rpath
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/auto/Search/Xapian -shrext
.so -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Xapian.lo
handle_exception.lo -o blib/arch/auto/Search/Xapian/Xapian.la \
/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/libxapian.la \
libtool: link: rm -fr blib/arch/auto/Search/Xapian/.libs/Xapian.la
blib/arch/auto/Search/Xapian/.libs/Xapian.lai
blib/arch/auto/Search/Xapian/.libs/Xapian.so
libtool: link: g++ -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/crtbeginS.o .libs/Xapian.o
.libs/handle_exception.o -Wl,-rpath
-Wl,/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/.libs -Wl,-rpath
-Wl,/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/BUILD/lib
/localtemp/amit/rohit/FinalProj/xapian-core-1.2.5/.libs/libxapian.so -lz
-luuid -L/usr/lib/gcc/x86_64-redhat-linux/4.4.1
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../..
-lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.4.1/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/crtn.o -O2 -m64
-mtune=generic -Wl,-soname -Wl,Xapian.so -o
blib/arch/auto/Search/Xapian/.libs/Xapian.so
libtool: link: ( cd "blib/arch/auto/Search/Xapian/.libs" && rm
-f
"Xapian.la" && ln -s "../Xapian.la"
"Xapian.la" )
chmod 755 blib/arch/auto/Search/Xapian/Xapian.la
cp Xapian.bs blib/arch/auto/Search/Xapian/Xapian.bs
chmod 644 blib/arch/auto/Search/Xapian/Xapian.bs
Manifying blib/man3/Search::Xapian::Database.3pm
Manifying blib/man3/Search::Xapian.3pm
Manifying blib/man3/Search::Xapian::NetworkError.3pm
Manifying blib/man3/Search::Xapian::NetworkTimeoutError.3pm
Manifying blib/man3/Search::Xapian::RangeError.3pm
Manifying blib/man3/Search::Xapian::BM25Weight.3pm
Manifying blib/man3/Search::Xapian::WritableDatabase.3pm
Manifying blib/man3/Search::Xapian::SerialisationError.3pm
Manifying blib/man3/Search::Xapian::DatabaseCreateError.3pm
Manifying blib/man3/Search::Xapian::UnimplementedError.3pm
Manifying blib/man3/Search::Xapian::InvalidArgumentError.3pm
Manifying blib/man3/Search::Xapian::DatabaseModifiedError.3pm
Manifying blib/man3/Search::Xapian::ValueIterator.3pm
Manifying blib/man3/Search::Xapian::Error.3pm
Manifying blib/man3/Search::Xapian::DatabaseLockError.3pm
Manifying blib/man3/Search::Xapian::RuntimeError.3pm
Manifying blib/man3/Search::Xapian::TermIterator.3pm
Manifying blib/man3/Search::Xapian::TradWeight.3pm
Manifying blib/man3/Search::Xapian::DatabaseCorruptError.3pm
Manifying blib/man3/Search::Xapian::BoolWeight.3pm
Manifying blib/man3/Search::Xapian::DocNotFoundError.3pm
Manifying blib/man3/Search::Xapian::LogicError.3pm
Manifying blib/man3/Search::Xapian::Stem.3pm
Manifying blib/man3/Search::Xapian::PostingIterator.3pm
Manifying blib/man3/Search::Xapian::PositionIterator.3pm
Manifying blib/man3/Search::Xapian::MultiValueSorter.3pm
Manifying blib/man3/Search::Xapian::FeatureUnavailableError.3pm
Manifying blib/man3/Search::Xapian::DatabaseVersionError.3pm
Manifying blib/man3/Search::Xapian::DatabaseOpeningError.3pm
Manifying blib/man3/Search::Xapian::DatabaseError.3pm
Manifying blib/man3/Search::Xapian::InvalidOperationError.3pm
Manifying blib/man3/Search::Xapian::Enquire.3pm
Manifying blib/man3/Search::Xapian::AssertionError.3pm
Manifying blib/man3/Search::Xapian::Document.3pm
Manifying blib/man3/Search::Xapian::QueryParserError.3pm
Manifying blib/man3/Search::Xapian::QueryParser.3pm
Manifying blib/man3/Search::Xapian::InternalError.3pm
Manifying blib/man3/Search::Xapian::Weight.3pm
Manifying blib/man3/Search::Xapian::TermGenerator.3pm
(makefile ran correctly). Am i doing something wrong.
I know my installation is not correct because I'm not able to use the
library in my code .
In fact the erro i get while trying to use the library is Can't locate
loadable object for module Search::Xapian
I managed to get this to run successfulyy on my local.
Any help would be appreciated. I'm sorry for the huge error logs.
Thanks,
Rohit