Mailinglist Archive: opensuse-packaging (99 mails)

< Previous Next >
[opensuse-packaging] libtorrent-rasterbar (0.16.5) examples fail to build with boost 1.49
  • From: Mariusz Fik <fisiu82@xxxxxxxxxx>
  • Date: Wed, 31 Oct 2012 16:44:42 +0100
  • Message-id: <19902971.Lggi2jC6LA@pendrak>
Hi,

I wanted to update libtorrent-rasterbar package in devel:libraries:c_c++.
Libray is building fine but examples fail:

[ 24s] Making all in examples
[ 24s] make[1]: Entering directory
`/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples'
[ 24s] g++ -DPACKAGE_NAME=\"libtorrent-rasterbar\"
-DPACKAGE_TARNAME=\"libtorrent-rasterbar\" -DPACKAGE_VERSION=\"0.16.5\"
-DPACKAGE_STRING=\"libtorrent-rasterbar\ 0.16.5\"
-DPACKAGE_BUGREPORT=\"arvid@xxxxxxxxx\"
-DPACKAGE_URL=\"http://www.libtorrent.org\"; -DPACKAGE=\"libtorrent-rasterbar\"
-DVERSION=\"0.16.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DHAVE_BOOST=1 -DHAVE_BOOST_SYSTEM=1
-DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTBYNAME_R=1 -DGETHOSTBYNAME_R_RETURNS_INT=1
-DHAVE_LIBRT=1 -DNDEBUG=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_PYTHON=\"2.7\"
-DHAVE_BOOST_PYTHON=1 -DHAVE_LINUX_FIEMAP_H=1 -DBOOST_ASIO_HASH_MAP_BUCKETS21
-DBOOST_EXCEPTION_DISABLE=1 -DBOOST_ASIO_ENABLE_CANCELIO=1
-DBOOST_ASIO_DYN_LINK=1 -DTORRENT_BUILDING_SHARED=1 -I. -ftemplate-depth-50
-I../include -Os -I/usr/include -fmessage-length=0 -O2 -
Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -fvisibility=hidden -fno-strict-aliasing
-fvisibility-inlines-hidden -c -o client_test.o client_test.cpp
[ 24s] client_test.cpp: In function 'int main(int, char**)':
[ 24s] client_test.cpp:1645:28: warning: ignoring return value of 'int
scanf(const char*, ...)', declared with attribute warn_unused_result
[-Wunused-result]
[ 24s] client_test.cpp:1761:25: warning: ignoring return value of 'int
scanf(const char*, ...)', declared with attribute warn_unused_result
[-Wunused-result]
[ 24s] /bin/sh ../libtool --tag=CXX --mode=link g++ -fmessage-length=0
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -fvisibility=hidden -fno-strict-aliasing
-fvisibility-inlines-hidden -lboost_system-mt -L/usr/lib64 -fmessage-length=0
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -lrt -o client_test client_test.o
../src/libtorrent-rasterbar.la -lGeoIP -lrt -lpthread
[ 24s] libtool: link: g++ -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
-fvisibility=hidden -fno-strict-aliasing -fvisibility-inlines-hidden
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -o .libs/client_test
client_test.o -L/usr/lib64 ../src/.libs/libtorrent-rasterbar.so
-lboost_system-mt -lssl -lcrypto -lGeoIP -lrt -lpthread -Wl,-rpath
-Wl,/usr/lib64
[ 25s] client_test.o: In function `libtorrent::block_info::peer() const':
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/../include/libtorrent/torrent_handle.hpp:120:
undefined reference to
`boost::asio::ip::address_v4::address_v4(boost::array<unsigned char, 4ul>
const&)'
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/../include/libtorrent/torrent_handle.hpp:120:
undefined reference to
`boost::asio::ip::address::address(boost::asio::ip::address_v4 const&)'
[ 25s] client_test.o: In function `basic_endpoint':
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:91: undefined reference
to `boost::asio::ip::detail::endpoint::endpoint(boost::asio::ip::address
const&, unsigned short)'
[ 25s] client_test.o: In function `libtorrent::block_info::peer() const':
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/../include/libtorrent/torrent_handle.hpp:117:
undefined reference to
`boost::asio::ip::address_v6::address_v6(boost::array<unsigned char, 16ul>
const&, unsigned long)'
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/../include/libtorrent/torrent_handle.hpp:117:
undefined reference to
`boost::asio::ip::address::address(boost::asio::ip::address_v6 const&)'
[ 25s] client_test.o: In function `basic_endpoint':
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:91: undefined reference
to `boost::asio::ip::detail::endpoint::endpoint(boost::asio::ip::address
const&, unsigned short)'
[ 25s] client_test.o: In function `handle_alert(libtorrent::session&,
libtorrent::alert*, std::multimap<std::string, libtorrent::torrent_handle,
std::less<std::string>, std::allocator<std::pair<std::string const,
libtorrent::torrent_handle> > >&, std::set<libtorrent::torrent_handle,
std::less<libtorrent::torrent_handle>,
std::allocator<libtorrent::torrent_handle> >&, int*,
boost::unordered::unordered_set<libtorrent::torrent_status,
boost::hash<libtorrent::torrent_status>,
std::equal_to<libtorrent::torrent_status>,
std::allocator<libtorrent::torrent_status> >&,
std::vector<libtorrent::torrent_status const*,
std::allocator<libtorrent::torrent_status const*> >&, bool&)':
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/client_test.cpp:949:
undefined reference to `boost::asio::ip::address::from_string(char const*,
boost::system::error_code&)'
[ 25s] client_test.o: In function `basic_endpoint':
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:91: undefined reference
to `boost::asio::ip::detail::endpoint::endpoint(boost::asio::ip::address
const&, unsigned short)'
[ 25s] client_test.o: In function `operator==':
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:193: undefined reference
to `boost::asio::ip::detail::operator==(boost::asio::ip::detail::endpoint
const&, boost::asio::ip::detail::endpoint const&)'
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:193: undefined reference
to `boost::asio::ip::detail::operator==(boost::asio::ip::detail::endpoint
const&, boost::asio::ip::detail::endpoint const&)'
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:193: undefined reference
to `boost::asio::ip::detail::operator==(boost::asio::ip::detail::endpoint
const&, boost::asio::ip::detail::endpoint const&)'
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:193: undefined reference
to `boost::asio::ip::detail::operator==(boost::asio::ip::detail::endpoint
const&, boost::asio::ip::detail::endpoint const&)'
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:193: undefined reference
to `boost::asio::ip::detail::operator==(boost::asio::ip::detail::endpoint
const&, boost::asio::ip::detail::endpoint const&)'
[ 25s] client_test.o: In function
`boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>::address() const':
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:180: undefined reference
to `boost::asio::ip::detail::endpoint::address() const'
[ 25s] /usr/include/boost/asio/ip/basic_endpoint.hpp:180: undefined reference
to `boost::asio::ip::detail::endpoint::address() const'
[ 25s] client_test.o: In function `main':
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/client_test.cpp:1343:
undefined reference to
`boost::asio::ip::address::address(boost::asio::ip::address_v4 const&)'
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/client_test.cpp:1343:
undefined reference to
`boost::asio::ip::address::address(boost::asio::ip::address_v4 const&)'
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/client_test.cpp:1339:
undefined reference to `boost::asio::ip::address_v4::address_v4(unsigned long)'
[ 25s]
/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples/client_test.cpp:1340:
undefined reference to `boost::asio::ip::address_v4::address_v4(unsigned long)'
[ 25s] client_test.o: In function `__static_initialization_and_destruction_0':
[ 25s] /usr/include/boost/asio/error.hpp:247: undefined reference to
`boost::asio::error::get_netdb_category()'
[ 25s] /usr/include/boost/asio/error.hpp:249: undefined reference to
`boost::asio::error::get_addrinfo_category()'
[ 25s] /usr/include/boost/asio/error.hpp:251: undefined reference to
`boost::asio::error::get_misc_category()'
[ 25s] client_test.o: In function `posix_tss_ptr':
[ 25s] /usr/include/boost/asio/detail/posix_tss_ptr.hpp:42: undefined
reference to `boost::asio::detail::posix_tss_ptr_create(unsigned int&)'
[ 25s] collect2: error: ld returned 1 exit status
[ 25s] make[1]: *** [client_test] Error 1
[ 25s] make[1]: Leaving directory
`/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-0.16.5/examples'
[ 25s] make: *** [all-recursive] Error 1
[ 25s] error: Bad exit status from /var/tmp/rpm-tmp.GFxL96 (%build)

I'm not sure about the cause. Do we need first update boost to newer version?
Any hints?
--
Pozdrawiam / Best regards,
Mariusz Fik
openSUSE Community Member
GPG: 5FCE 7241 B3B9 32FD 455B C30E 42D6 6C88 9E83 7C3D
< Previous Next >
List Navigation
This Thread
  • No further messages