[Xapian-discuss] Xapian 1.2.0 build fails on libxapian.la target - Solaris 9 (SunOS 5.9) sun4u SPARC

James Aylett james-xapian at tartarus.org
Mon Jun 7 11:27:58 BST 2010


On 5 Jun 2010, at 00:57, Craig Talbert wrote:

[Solaris 9, gcc 3.3.2, Xapian 1.2.0]
> http://tinypaste.com/901db


This looks to me like either:

a) you've compiled against headers that aren't compatible with the libraries you're linking against

or

b) you're missing some libraries that you should be linking against

I'm concerned about the missing symbol:

strtoull                            0x28      	/usr/local/gcc-3.3.2/lib/./libstdc++.a(c++locale.o)

(and some around it). I don't have a Sol9 box any more to check, but it's possible you're missing -lc from your link line (which I've copied below since it's difficult to see it amongst the paste). However that probably won't fix the algo/container stuff (all the basic_string, char_traits and alloc template calls), so there's almost certainly something more serious wrong.

It might be worth pasting your configure output somewhere so we know which STL headers you're using and can check that off the list?

J

g++ -shared -nostdlib  /usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/crti.o /usr/ccs/lib/values-Xa.o /usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/crtbegin.o  api/.libs/decvalwtsource.o api/.libs/documentvaluelist.o api/.libs/editdistance.o api/.libs/emptypostlist.o api/.libs/error.o api/.libs/errorhandler.o api/.libs/expanddecider.o api/.libs/keymaker.o api/.libs/leafpostlist.o api/.libs/matchspy.o api/.libs/omdatabase.o api/.libs/omdocument.o api/.libs/omenquire.o api/.libs/ompositionlistiterator.o api/.libs/ompostlistiterator.o api/.libs/omquery.o api/.libs/omqueryinternal.o api/.libs/omtermlistiterator.o api/.libs/postingsource.o api/.libs/postlist.o api/.libs/registry.o api/.libs/replication.o api/.libs/sortable-serialise.o api/.libs/termlist.o api/.libs/valueiterator.o api/.libs/valuerangeproc.o api/.libs/valuesetmatchdecider.o api/.libs/version.o backends/.libs/alltermslist.o backends/.libs/database.o backends/.libs/databasereplicator.o backends/.libs/dbfactory.o backends/.libs/slowvaluelist.o backends/.libs/valuelist.o backends/.libs/dbfactory_remote.o backends/.libs/contiguousalldocspostlist.o backends/.libs/flint_lock.o backends/brass/.libs/brass_alldocspostlist.o backends/brass/.libs/brass_alltermslist.o backends/brass/.libs/brass_btreebase.o backends/brass/.libs/brass_cursor.o backends/brass/.libs/brass_database.o backends/brass/.libs/brass_databasereplicator.o backends/brass/.libs/brass_dbstats.o backends/brass/.libs/brass_document.o backends/brass/.libs/brass_inverter.o backends/brass/.libs/brass_io.o backends/brass/.libs/brass_metadata.o backends/brass/.libs/brass_positionlist.o backends/brass/.libs/brass_postlist.o backends/brass/.libs/brass_record.o backends/brass/.libs/brass_spelling.o backends/brass/.libs/brass_spellingwordslist.o backends/brass/.libs/brass_synonym.o backends/brass/.libs/brass_table.o backends/brass/.libs/brass_termlist.o backends/brass/.libs/brass_termlisttable.o backends/brass/.libs/brass_valuelist.o backends/brass/.libs/brass_values.o backends/brass/.libs/brass_version.o backends/chert/.libs/chert_alldocsmodifiedpostlist.o backends/chert/.libs/chert_alldocspostlist.o backends/chert/.libs/chert_alltermslist.o backends/chert/.libs/chert_btreebase.o backends/chert/.libs/chert_cursor.o backends/chert/.libs/chert_database.o backends/chert/.libs/chert_databasereplicator.o backends/chert/.libs/chert_dbstats.o backends/chert/.libs/chert_document.o backends/chert/.libs/chert_metadata.o backends/chert/.libs/chert_modifiedpostlist.o backends/chert/.libs/chert_positionlist.o backends/chert/.libs/chert_postlist.o backends/chert/.libs/chert_record.o backends/chert/.libs/chert_spelling.o backends/chert/.libs/chert_spellingwordslist.o backends/chert/.libs/chert_synonym.o backends/chert/.libs/chert_table.o backends/chert/.libs/chert_termlist.o backends/chert/.libs/chert_termlisttable.o backends/chert/.libs/chert_valuelist.o backends/chert/.libs/chert_values.o backends/chert/.libs/chert_version.o backends/flint/.libs/flint_alldocspostlist.o backends/flint/.libs/flint_alltermslist.o backends/flint/.libs/flint_btreebase.o backends/flint/.libs/flint_cursor.o backends/flint/.libs/flint_database.o backends/flint/.libs/flint_databasereplicator.o backends/flint/.libs/flint_document.o backends/flint/.libs/flint_metadata.o backends/flint/.libs/flint_modifiedpostlist.o backends/flint/.libs/flint_positionlist.o backends/flint/.libs/flint_postlist.o backends/flint/.libs/flint_record.o backends/flint/.libs/flint_spelling.o backends/flint/.libs/flint_spellingwordslist.o backends/flint/.libs/flint_synonym.o backends/flint/.libs/flint_table.o backends/flint/.libs/flint_termlist.o backends/flint/.libs/flint_termlisttable.o backends/flint/.libs/flint_values.o backends/flint/.libs/flint_version.o backends/inmemory/.libs/inmemory_alltermslist.o backends/inmemory/.libs/inmemory_database.o backends/inmemory/.libs/inmemory_document.o backends/inmemory/.libs/inmemory_positionlist.o backends/multi/.libs/multi_alltermslist.o backends/multi/.libs/multi_postlist.o backends/multi/.libs/multi_termlist.o backends/multi/.libs/multi_valuelist.o backends/remote/.libs/remote-document.o backends/remote/.libs/net_postlist.o backends/remote/.libs/net_termlist.o backends/remote/.libs/remote-database.o common/.libs/bitstream.o common/.libs/const_database_wrapper.o common/.libs/debuglog.o common/.libs/fileutils.o common/.libs/io_utils.o common/.libs/msvc_dirent.o common/.libs/msvc_posix_wrapper.o common/.libs/omdebug.o common/.libs/replicate_utils.o common/.libs/safe.o common/.libs/serialise-double.o common/.libs/socket_utils.o common/.libs/str.o common/.libs/stringutils.o common/.libs/utils.o expand/.libs/esetinternal.o expand/.libs/expandweight.o expand/.libs/ortermlist.o languages/.libs/danish.o languages/.libs/dutch.o languages/.libs/english.o languages/.libs/finnish.o languages/.libs/french.o languages/.libs/german2.o languages/.libs/german.o languages/.libs/hungarian.o languages/.libs/italian.o languages/.libs/kraaij_pohlmann.o languages/.libs/lovins.o languages/.libs/norwegian.o languages/.libs/porter.o languages/.libs/portuguese.o languages/.libs/romanian.o languages/.libs/russian.o languages/.libs/spanish.o languages/.libs/swedish.o languages/.libs/turkish.o languages/.libs/stem.o languages/.libs/steminternal.o matcher/.libs/remotesubmatch.o matcher/.libs/andmaybepostlist.o matcher/.libs/andnotpostlist.o matcher/.libs/branchpostlist.o matcher/.libs/collapser.o matcher/.libs/exactphrasepostlist.o matcher/.libs/externalpostlist.o matcher/.libs/localmatch.o matcher/.libs/mergepostlist.o matcher/.libs/msetcmp.o matcher/.libs/msetpostlist.o matcher/.libs/multiandpostlist.o matcher/.libs/multimatch.o matcher/.libs/orpostlist.o matcher/.libs/phrasepostlist.o matcher/.libs/queryoptimiser.o matcher/.libs/rset.o matcher/.libs/selectpostlist.o matcher/.libs/synonympostlist.o matcher/.libs/valuegepostlist.o matcher/.libs/valuerangepostlist.o matcher/.libs/valuestreamdocument.o matcher/.libs/xorpostlist.o net/.libs/progclient.o net/.libs/remoteconnection.o net/.libs/remoteserver.o net/.libs/remotetcpclient.o net/.libs/remotetcpserver.o net/.libs/replicatetcpclient.o net/.libs/replicatetcpserver.o net/.libs/serialise.o net/.libs/tcpclient.o net/.libs/tcpserver.o queryparser/.libs/queryparser.o queryparser/.libs/queryparser_internal.o queryparser/.libs/termgenerator.o queryparser/.libs/termgenerator_internal.o unicode/.libs/tclUniData.o unicode/.libs/utf8itor.o weight/.libs/bm25weight.o weight/.libs/boolweight.o weight/.libs/tradweight.o weight/.libs/weight.o weight/.libs/weightinternal.o   -lrt -lz -luuid -lnsl -lsocket -L/usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../.. /usr/local/gcc-3.3.2/lib/./libstdc++.a -L/Net/cnssrc/usr/cns/src/unsupported/gnu/gcc/gcc-3.3.2-build/S8-w.gcc322/sparc-sun-solaris2.8/libstdc++-v3/src -L/Net/cnssrc/usr/cns/src/unsupported/gnu/gcc/gcc-3.3.2-build/S8-w.gcc322/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/Net/cnssrc/usr/cns/src/unsupported/gnu/gcc/gcc-3.3.2-build/S8-w.gcc322/gcc -lm -lgcc /usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/crtend.o /usr/local/gcc-3.3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/crtn.o    -Wl,-h -Wl,libxapian.so.22 -o .libs/libxapian.so.22.0.0


-- 
 James Aylett
 talktorex.co.uk - xapian.org - devfort.com




More information about the Xapian-discuss mailing list