|
Boost Users : |
From: Bernard Marnaud (caesar_8_at_[hidden])
Date: 2007-09-07 04:18:39
Hi,
I tried to installed the Metaproxy with make on solaris 9, but i have some
errors due to Boost library.
The YAZ and YAZPP libraries are installed successfully.
The Boost compilation (bjam --build-dir=/usr/local/Boost --toolset=gcc
stage) gives the following linkage errors:
...failed gcc.link.dll
/opt/Boost/boost/bin.v2/libs/program_options/build/gcc-3.4.6/release/threading-multi/libboost_program_options-gcc34-mt-1_34_1.so.1.34.1...
...failed gcc.link.dll
/opt/Boost/boost/bin.v2/libs/filesystem/build/gcc-3.4.6/release/threading-multi/libboost_filesystem-gcc34-mt-1_34_1.so.1.34.1...
...failed gcc.link.dll
/opt/Boost/boost/bin.v2/libs/graph/build/gcc-3.4.6/release/threading-multi/libboost_graph-gcc34-mt-1_34_1.so.1.34.1...
...
You can see below the output of Meataproxy compilation (./configure"
'--with-yazpp=/usr/local/src/yazpp-1.0.3/) :
./configure --with-yazpp=/usr/local/src/yazpp-1.0.3/
Make
Making all in xml
make[1]: Entering directory `/usr/local/src/metaproxy-1.0.11/xml'
Making all in schema
make[2]: Entering directory `/usr/local/src/metaproxy-1.0.11/xml/schema'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/metaproxy-1.0.11/xml/schema'
Making all in xslt
make[2]: Entering directory `/usr/local/src/metaproxy-1.0.11/xml/xslt'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/metaproxy-1.0.11/xml/xslt'
make[2]: Entering directory `/usr/local/src/metaproxy-1.0.11/xml'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/local/src/metaproxy-1.0.11/xml'
make[1]: Leaving directory `/usr/local/src/metaproxy-1.0.11/xml'
Making all in src
make[1]: Entering directory `/usr/local/src/metaproxy-1.0.11/src'
make all-am
make[2]: Entering directory `/usr/local/src/metaproxy-1.0.11/src'
/bin/bash ../libtool --tag=CXX --mode=link g++ -pthread
-I/usr/local/src/boost_1_34_1 -g -O2 -L/usr/local/src/boost_1_34_1/stage/lib
/usr/local/src/yazpp-1.0.3/src/libyazpp.la
/usr/local/src/yaz-3.0.10/src/libyaz.la -L/usr/local/lib -R/usr/local/lib
-lxslt -lxml2 -lz -lpthread -liconv -lsocket -lnsl -lm -lsocket -lnsl
-liconv -lpthread -o metaproxy metaproxy_prog.o libmetaproxy.la -lm -ldl
g++ -pthread -I/usr/local/src/boost_1_34_1 -g -O2 -o .libs/metaproxy
metaproxy_prog.o -L/usr/local/src/boost_1_34_1/stage/lib
-L/sol10/SOURCES/S9/gcc-3.4.6/objdir/sparc-sun-solaris2.9/libstdc++-v3/src
-L/sol10/SOURCES/S9/gcc-3.4.6/objdir/sparc-sun-solaris2.9/libstdc++-v3/src/.libs
-L/sol10/SOURCES/S9/gcc-3.4.6/objdir/gcc -L/usr/local/lib -L/usr/lib
-L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
./.libs/libmetaproxy.so /usr/local/src/yazpp-1.0.3/src/.libs/libyazpp.so
/usr/local/src/yaz-3.0.10/src/.libs/libyaz.so /usr/local/lib/libxslt.so
/usr/local/lib/libxml2.so -lz -lsocket -lnsl /usr/local/lib/libiconv.so
-lpthread /usr/local/lib/libstdc++.so -lm -ldl -Wl,-R -Wl,/usr/local/lib
g++: unrecognized option `-pthread'
ld: warning: file /usr/local/lib/libstdc++.so: attempted multiple inclusion
of file
Undefined first referenced
symbol in file
boost::program_options::invalid_option_value::invalid_option_value(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)metaproxy_prog.o
boost::program_options::positional_options_description::add(char const*,
int)metaproxy_prog.o
boost::program_options::validation_error::what() constmetaproxy_prog.o
boost::detail::condition_impl::notify_all() ./.libs/libmetaproxy.so
boost::lock_error::~lock_error() ./.libs/libmetaproxy.so
boost::lock_error::lock_error() ./.libs/libmetaproxy.so
boost::detail::condition_impl::notify_one() ./.libs/libmetaproxy.so
boost::program_options::options_description_easy_init::operator()(char
const*, boost::program_options::value_semantic const*, char
const*)metaproxy_prog.o
boost::program_options::detail::cmdline::run() metaproxy_prog.o
boost::xtime_get(boost::xtime*, int)./.libs/libmetaproxy.so
typeinfo for boost::program_options::validation_errormetaproxy_prog.o
vtable for boost::program_options::validation_errormetaproxy_prog.o
boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description
const&)metaproxy_prog.o
boost::thread_group::add_thread(boost::thread*) ./.libs/libmetaproxy.so
boost::program_options::detail::cmdline::set_positional_options(boost::program_options::positional_options_description
const&)metaproxy_prog.o
boost::program_options::notify(boost::program_options::variables_map&)metaproxy_prog.o
boost::program_options::store(boost::program_options::basic_parsed_options<char>
const&, boost::program_options::variables_map&, bool)metaproxy_prog.o
boost::program_options::detail::cmdline::cmdline(std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&)metaproxy_prog.o
boost::mutex::~mutex() ./.libs/libmetaproxy.so
boost::mutex::mutex() ./.libs/libmetaproxy.so
boost::mutex::do_lock(boost::mutex::cv_state&)./.libs/libmetaproxy.so
boost::thread_group::join_all() ./.libs/libmetaproxy.so
typeinfo for
boost::program_options::value_semantic_codecvt_helper<char>metaproxy_prog.o
boost::program_options::to_internal(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)metaproxy_prog.o
boost::thread::sleep(boost::xtime const&)./.libs/libmetaproxy.so
boost::program_options::options_description::options_description(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned
int)metaproxy_prog.o
boost::program_options::abstract_variables_map::operator[](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) constmetaproxy_prog.o
boost::program_options::arg metaproxy_prog.o
boost::mutex::do_unlock() ./.libs/libmetaproxy.so
boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&,
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > const&, bool)
constmetaproxy_prog.o
boost::program_options::operator<<(std::basic_ostream<char,
std::char_traits<char> >&, boost::program_options::options_description
const&)metaproxy_prog.o
boost::program_options::options_description_easy_init::operator()(char
const*, char const*)metaproxy_prog.o
boost::thread_group::~thread_group()./.libs/libmetaproxy.so
boost::thread_group::thread_group() ./.libs/libmetaproxy.so
boost::program_options::options_description::add_options()
metaproxy_prog.o
typeinfo for boost::lock_error ./.libs/libmetaproxy.so
boost::detail::condition_impl::~condition_impl()./.libs/libmetaproxy.so
boost::detail::condition_impl::condition_impl()./.libs/libmetaproxy.so
boost::detail::condition_impl::do_wait(_pthread_mutex*)
./.libs/libmetaproxy.so
boost::mutex::do_unlock(boost::mutex::cv_state&)./.libs/libmetaproxy.so
boost::program_options::variables_map::variables_map()metaproxy_prog.o
boost::thread::thread(boost::function0<void,
std::allocator<boost::function_base> > const&)./.libs/libmetaproxy.so
boost::mutex::do_lock() ./.libs/libmetaproxy.so
vtable for boost::program_options::variables_mapmetaproxy_prog.o
boost::program_options::positional_options_description::positional_options_description()metaproxy_prog.o
ld: fatal: Symbol referencing errors. No output written to .libs/metaproxy
collect2: ld returned 1 exit status
make[2]: *** [metaproxy] Error 1
make[2]: Leaving directory `/usr/local/src/metaproxy-1.0.11/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/metaproxy-1.0.11/src'
make: *** [all-recursive] Error 1
Could you investigate why the compilation doesn't work ?
Do you need more informations ?
Thans for your cooperation.
Best regards.
Stéphan.
_________________________________________________________________
A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de
vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net