Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550252 - net-libs/rb_libtorrent-1.0.5 failed to build with USE="examples"
Summary: net-libs/rb_libtorrent-1.0.5 failed to build with USE="examples"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL: https://github.com/arvidn/libtorrent/...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2015-05-23 19:05 UTC by Kees Bergwerf
Modified: 2015-09-18 14:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kees Bergwerf 2015-05-23 19:05:10 UTC
net-libs/rb_libtorrent does not compile.
It stops with errors:

[...]
libtool: link: x86_64-pc-linux-gnu-g++ -march=core2 -O2 -pipe -ftemplate-depth=120 -fvisibility=hidden -fvisibility-inlines-hidden -Wl,-O1 -Wl,--as-needed -fvisibility=hidden -fvisibility-inlines-hidden -o .libs/parse_hash_fails parse_hash_fails.o  -L/usr/lib64 ../src/.libs/libtorrent-rasterbar.so -lboost_system-mt -lssl -lcrypto -lpthread
parse_hash_fails.o: In function `main':
parse_hash_fails.cpp:(.text.startup+0x6b): undefined reference to `libtorrent::directory::directory(std::string const&, boost::system::error_code&)'
parse_hash_fails.cpp:(.text.startup+0x101): undefined reference to `libtorrent::directory::~directory()'
parse_hash_fails.cpp:(.text.startup+0x17c): undefined reference to `libtorrent::directory::next(boost::system::error_code&)'
parse_hash_fails.cpp:(.text.startup+0x1b0): undefined reference to `libtorrent::directory::file() const'
parse_hash_fails.cpp:(.text.startup+0x270): undefined reference to `libtorrent::combine_path(std::string const&, std::string const&)'
parse_hash_fails.cpp:(.text.startup+0x360): undefined reference to `libtorrent::combine_path(std::string const&, std::string const&)'
parse_hash_fails.cpp:(.text.startup+0x51d): undefined reference to `libtorrent::directory::~directory()'
collect2: error: ld returned 1 exit status
Makefile:462: recipe for target 'parse_hash_fails' failed
make[1]: *** [parse_hash_fails] Error 1
make[1]: *** Waiting for unfinished jobs....
[...]

See also https://forums.gentoo.org/viewtopic-p-7752456.html
 
Finally it compiles with USE="-examples" so something is wrong
It might also be the case with earlier versions. I updates from net-libs/rb_libtorrent-0.16.17-r2 and haven't tried all in between versions.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-08-27 18:41:55 UTC
Latest version also fails to compile but this is really a problem you should report to the upstream project. could you do that please?
Comment 2 Kees Bergwerf 2015-09-06 23:12:56 UTC
I was away from home for two weeks, but now I could see for myself that 1.0.6 still does not build with use=examples

So I reported it to arvid@libtorrent.org and all I can do is wait... :-)
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2015-09-12 11:01:57 UTC
Thanks. Would it be better to open a bug here instead? https://github.com/arvidn/libtorrent/
Comment 4 Kees Bergwerf 2015-09-12 12:52:55 UTC
Ok I hope I did it right: https://github.com/arvidn/libtorrent/issues/157
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2015-09-12 13:03:02 UTC
Yes that looks good to me thanks.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2015-09-18 14:28:56 UTC
Fixed upstream and I backported the patches to the 1.0.6 ebuild. Thanks for the report!