Page 1 of 1

error during make - Resolved

Posted: Thu Apr 30, 2015 1:45 am
by rainbows
Hi,

While compiling qbittorrent the following error occurs maybe someone can help ?
qbtsession.o: In function `libtorrent::fastresume_rejected_alert::message() const':
/usr/include/libtorrent/alert_types.hpp:1475: undefined reference to `libtorrent::convert_from_native(std::string const&)'
qbtsession.o: In function `libtorrent::storage_moved_failed_alert::message() const':
/usr/include/libtorrent/alert_types.hpp:931: undefined reference to `libtorrent::convert_from_native(std::string const&)'
qbtsession.o: In function `libtorrent::fastresume_rejected_alert::message() const':
/usr/include/libtorrent/alert_types.hpp:1475: undefined reference to `libtorrent::convert_from_native(std::string const&)'
qbtsession.o: In function `libtorrent::storage_moved_failed_alert::message() const':
/usr/include/libtorrent/alert_types.hpp:931: undefined reference to `libtorrent::convert_from_native(std::string const&)'

qbittorrent used to always compile no problems. i just made a clean system and probably am forgetting something.
Thank you

Re: error during make

Posted: Thu Apr 30, 2015 7:25 am
by Peter
- What OS do you have?
- Which version are you trying to compile?

Re: error during make

Posted: Thu Apr 30, 2015 7:46 am
by ciaobaby
And what libtorrent version?

Re: error during make

Posted: Thu Apr 30, 2015 8:06 pm
by rainbows
Hi,

thanks for helping and sorry i forgot to mention the other info.
using boost 1.58
libtorrent 1.04
qbittorrent fresh from git :)

I made another fresh fedora 21 and it works , it is on my new fedora 22 it seems to not work (exactly build everything same way)
I would appreciate if anyone could help me debug this and fix whatever the issue is ? (i know its not yet out however in 2-3 weeks it will be, i can try and debug whatever you wish  and the error seems to be clear what might be happening ?)

Thank you so much. (and yes i need it on a f22 box)

Re: error during make

Posted: Sat May 02, 2015 10:48 pm
by sledgehammer_999
That is a bug of libtorrent 1.0.x that is fixed (after 1.0.4) with this commit: http://sourceforge.net/p/libtorrent/code/10958/

Re: error during make

Posted: Mon May 04, 2015 12:52 am
by rainbows
thank you much appreciated,. I will go try that out.

Regards,

Re: error during make

Posted: Wed May 06, 2015 10:04 pm
by rainbows
Hi,

Just to confirm, that indeed fixed the problem by replacing the .h and .c file for alert_types.

Building the very latest version of libtorrent from svn however will not work with qbittorrent (just as fyi).

Regards,
and thanks