New version qbittorrent for mageia6

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

New version qbittorrent for mageia6

Postby xlin » Jan 7th, '18, 21:14

The dependence for the quiltorrent is libtorrent-rasterbar. I try to collect it, but I get an error
Spoiler:
Code: Select all
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/crtbeginS.o  .libs/web_connection_base.o .libs/alert.o .libs/alert_manager.o .libs/allocator.o .libs/announce_entry.o .libs/assert.o .libs/bandwidth_limit.o .libs/bandwidth_manager.o .libs/bandwidth_queue_entry.o .libs/bdecode.o .libs/bitfield.o .libs/bloom_filter.o .libs/broadcast_socket.o .libs/block_cache.o .libs/bt_peer_connection.o .libs/chained_buffer.o .libs/choker.o .libs/close_reason.o .libs/ConvertUTF.o .libs/cpuid.o .libs/crc32c.o .libs/create_torrent.o .libs/disk_buffer_holder.o .libs/disk_buffer_pool.o .libs/disk_io_job.o .libs/disk_io_thread.o .libs/disk_job_pool.o .libs/entry.o .libs/enum_net.o .libs/error_code.o .libs/escape_string.o .libs/file.o .libs/file_pool.o .libs/file_storage.o .libs/fingerprint.o .libs/gzip.o .libs/hasher.o .libs/hex.o .libs/http_connection.o .libs/http_parser.o .libs/http_seed_connection.o .libs/http_stream.o .libs/http_tracker_connection.o .libs/i2p_stream.o .libs/identify_client.o .libs/instantiate_connection.o .libs/ip_filter.o .libs/ip_voter.o .libs/lazy_bdecode.o .libs/lsd.o .libs/lt_trackers.o .libs/magnet_uri.o .libs/merkle.o .libs/metadata_transfer.o .libs/natpmp.o .libs/parse_url.o .libs/part_file.o .libs/pe_crypto.o .libs/performance_counters.o .libs/peer_connection.o .libs/peer_connection_handle.o .libs/peer_class.o .libs/peer_class_set.o .libs/piece_picker.o .libs/platform_util.o .libs/packet_buffer.o .libs/proxy_base.o .libs/peer_list.o .libs/puff.o .libs/random.o .libs/receive_buffer.o .libs/request_blocks.o .libs/resolve_links.o .libs/resolver.o .libs/rss.o .libs/session.o .libs/session_call.o .libs/session_handle.o .libs/session_impl.o .libs/session_settings.o .libs/proxy_settings.o .libs/settings_pack.o .libs/smart_ban.o .libs/socket_io.o .libs/socket_type.o .libs/socks5_stream.o .libs/stat.o .libs/stat_cache.o .libs/storage.o .libs/session_stats.o .libs/string_util.o .libs/thread.o .libs/torrent.o .libs/torrent_handle.o .libs/torrent_info.o .libs/torrent_peer.o .libs/torrent_peer_allocator.o .libs/torrent_status.o .libs/time.o .libs/timestamp_history.o .libs/tracker_manager.o .libs/udp_socket.o .libs/udp_tracker_connection.o .libs/upnp.o .libs/ut_metadata.o .libs/ut_pex.o .libs/utf8.o .libs/utp_socket_manager.o .libs/utp_stream.o .libs/web_peer_connection.o .libs/xml_parse.o .libs/version.o .libs/file_progress.o kademlia/.libs/dht_storage.o kademlia/.libs/dht_tracker.o kademlia/.libs/find_data.o kademlia/.libs/put_data.o kademlia/.libs/msg.o kademlia/.libs/node.o kademlia/.libs/node_entry.o kademlia/.libs/node_id.o kademlia/.libs/refresh.o kademlia/.libs/routing_table.o kademlia/.libs/rpc_manager.o kademlia/.libs/traversal_algorithm.o kademlia/.libs/dos_blocker.o kademlia/.libs/get_peers.o kademlia/.libs/get_item.o kademlia/.libs/item.o ../ed25519/src/.libs/add_scalar.o ../ed25519/src/.libs/fe.o ../ed25519/src/.libs/ge.o ../ed25519/src/.libs/key_exchange.o ../ed25519/src/.libs/keypair.o ../ed25519/src/.libs/sc.o ../ed25519/src/.libs/seed.o ../ed25519/src/.libs/sha512.o ../ed25519/src/.libs/sign.o ../ed25519/src/.libs/verify.o   -O2 -g -fstack-protector -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags    -L/usr/lib64 -lboost_system -lssl -lcrypto -ltommath -lboost_chrono -lboost_random -lpthread -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0 -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/crtendS.o /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/crtn.o -Wl,-soname -Wl,libtorrent-rasterbar.so.9 -o .libs/libtorrent-rasterbar.so.9.0.0
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../libtommath.so when searching for -ltommath
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../libtommath.so when searching for -ltommath
/usr/bin/ld: skipping incompatible /lib/libtommath.so when searching for -ltommath
/usr/bin/ld: skipping incompatible /usr/lib/libtommath.so when searching for -ltommath
/usr/bin/ld: cannot find -ltommath
collect2: error: ld returned 1 exit status
Makefile:769: recipe for target 'libtorrent-rasterbar.la' failed
make[1]: *** [libtorrent-rasterbar.la] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/libtorrent-rasterbar-1.1.5/src'
Makefile:620: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.LG4Abx (%build)


Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.LG4Abx (%build)


Code: Select all
[root@localhost SOURCES]# rpm -qa | grep mmath
libtommath-devel-1.0.1-1.mga6
lib64tommath1-1.0.1-1.mga6
libtommath1-1.0.1-1.mga6
MRC: mageialinux.ru
Mageia Russia
xlin
 
Posts: 53
Joined: May 3rd, '14, 14:26

Re: New version qbittorrent for mageia6

Postby doktor5000 » Jan 7th, '18, 21:35

You seem to be missing some important information, like is this an x86_64 or i586 system? If the former, you're missing lib64tommath1-devel.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: New version qbittorrent for mageia6

Postby xlin » Jan 7th, '18, 21:47

I have Mageia 6 x86_64. I'll try to put lib64tommath1-devel
MRC: mageialinux.ru
Mageia Russia
xlin
 
Posts: 53
Joined: May 3rd, '14, 14:26

Re: New version qbittorrent for mageia6

Postby xlin » Jan 7th, '18, 22:52

Code: Select all
make[1]: Leaving directory '/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src'
make[1]: Entering directory '/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src'
compiling moc_abstractwebapplication.cpp
make[1]: Leaving directory '/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src'
make[1]: Entering directory '/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src'
linking qbittorrent-nox
session.o: In function `BitTorrent::Session::getPendingAlerts(std::vector<libtorrent::alert*, std::allocator<libtorrent::alert*> >&, unsigned long)':
/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src/base/bittorrent/session.cpp:3858: undefined reference to `libtorrent::session_handle::wait_for_alert(std::chrono::duration<long, std::ratio<1l, 1000000000l> >)'
collect2: error: ld returned 1 exit status
Makefile:483: recipe for target 'qbittorrent-nox' failed
make[1]: *** [qbittorrent-nox] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src'
Makefile:42: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.J2hzvl (%build)


Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.J2hzvl (%build)
MRC: mageialinux.ru
Mageia Russia
xlin
 
Posts: 53
Joined: May 3rd, '14, 14:26

Re: New version qbittorrent for mageia6

Postby xlin » Jan 7th, '18, 23:46

.
MRC: mageialinux.ru
Mageia Russia
xlin
 
Posts: 53
Joined: May 3rd, '14, 14:26

Re: New version qbittorrent for mageia6

Postby doktor5000 » Jan 8th, '18, 09:03

xlin wrote:
Code: Select all
/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src/base/bittorrent/session.cpp:3858: undefined reference to `libtorrent::session_handle::wait_for_alert(std::chrono::duration<long, std::ratio<1l, 1000000000l> >)


See https://wiki.mageia.org/en/Packaging_pr ... _.60xxx.27
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: New version qbittorrent for mageia6

Postby xlin » Jan 8th, '18, 18:02

doktor5000 wrote:
xlin wrote:
Code: Select all
/root/rpmbuild/BUILD/qbittorrent-4.0.3/qbittorrent-4.0.3/src/base/bittorrent/session.cpp:3858: undefined reference to `libtorrent::session_handle::wait_for_alert(std::chrono::duration<long, std::ratio<1l, 1000000000l> >)


See https://wiki.mageia.org/en/Packaging_pr ... _.60xxx.27

I do not know how to fix this mistake. Could you tell?
MRC: mageialinux.ru
Mageia Russia
xlin
 
Posts: 53
Joined: May 3rd, '14, 14:26

Re: New version qbittorrent for mageia6

Postby doktor5000 » Jan 9th, '18, 10:32

You can set
Code: Select all
%define _disable_ld_no_undefined 1

at the top of the SPEC.

To fix it you would need to change the build for libtorrent-rasterbar. If you google it you will find e.g.
https://github.com/qbittorrent/qBittorrent/issues/5265
https://github.com/qbittorrent/qBittorrent/issues/5394
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest