Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164161 - net-libs/libtorrent-0.11.2 fails to compile
Summary: net-libs/libtorrent-0.11.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-28 06:11 UTC by Matthew Hamilton
Modified: 2007-01-28 13:54 UTC (History)
2 users (show)

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


Attachments
libtorrent-0.11.2-r1.ebuild (libtorrent-0.11.2-r1.ebuild,1.28 KB, text/plain)
2007-01-28 06:13 UTC, Matthew Hamilton
Details
libtorrent-0.11.2.ebuild diff (libtorrent-0.11.2.diff,385 bytes, patch)
2007-01-28 09:12 UTC, Matthew Hamilton
Details | Diff
libtorrent-0.11.2.ebuild diff (libtorrent-0.11.2.diff,385 bytes, patch)
2007-01-28 09:14 UTC, Matthew Hamilton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Hamilton 2007-01-28 06:11:45 UTC
libtorrent-0.11.2 fails to compile with errors like this:

<snip>
(cd .libs/libtorrent.lax/libsub_tracker.a && x86_64-pc-linux-gnu-ar x /var/tmp/portage/net-libs/libtorrent-0.11.2/work/libtorrent-0.11.2/src/../src/tracker/.libs/libsub_tracker.a)
rm -fr .libs/libtorrent.lax/libsub_utils.a
mkdir .libs/libtorrent.lax/libsub_utils.a
(cd .libs/libtorrent.lax/libsub_utils.a && x86_64-pc-linux-gnu-ar x /var/tmp/portage/net-libs/libtorrent-0.11.2/work/libtorrent-0.11.2/src/../src/utils/.libs/libsub_utils.a)
x86_64-pc-linux-gnu-g++ -shared /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginS.o  .libs/globals.o .libs/manager.o .libs/resource_manager.o .libs/libtorrent.lax/libsub_torrent.a/object_stream.o .libs/libtorrent.lax/libsub_torrent.a/rate.o .libs/libtorrent.lax/libsub_torrent.a/download.o .libs/libtorrent.lax/libsub_torrent.a/tracker_list.o .libs/libtorrent.lax/libsub_torrent.a/http.o .libs/libtorrent.lax/libsub_torrent.a/connection_manager.o .libs/libtorrent.lax/libsub_torrent.a/object.o .libs/libtorrent.lax/libsub_torrent.a/chunk_manager.o .libs/libtorrent.lax/libsub_torrent.a/resume.o .libs/libtorrent.lax/libsub_torrent.a/poll_kqueue.o .libs/libtorrent.lax/libsub_torrent.a/error.o .libs/libtorrent.lax/libsub_torrent.a/poll_epoll.o .libs/libtorrent.lax/libsub_torrent.a/tracker.o .libs/libtorrent.lax/libsub_torrent.a/exceptions.o .libs/libtorrent.lax/libsub_torrent.a/torrent.o .libs/libtorrent.lax/libsub_torrent.a/poll_select.o .libs/libtorrent.lax/libsub_torrent.a/bitfield.o .libs/libtorrent.lax/libsub_torrent.a/path.o  .libs/libtorrent.lax/libsub_torrentdata.a/file_list.o .libs/libtorrent.lax/libsub_torrentdata.a/block_list.o .libs/libtorrent.lax/libsub_torrentdata.a/file_utils.o .libs/libtorrent.lax/libsub_torrentdata.a/file.o .libs/libtorrent.lax/libsub_torrentdata.a/file_manager.o .libs/libtorrent.lax/libsub_torrentdata.a/file_list_iterator.o .libs/libtorrent.lax/libsub_torrentdata.a/transfer_list.o .libs/libtorrent.lax/libsub_torrentdata.a/block.o  .libs/libtorrent.lax/libsub_torrentpeer.a/client_info.o .libs/libtorrent.lax/libsub_torrentpeer.a/peer_list.o .libs/libtorrent.lax/libsub_torrentpeer.a/peer_info.o .libs/libtorrent.lax/libsub_torrentpeer.a/client_list.o .libs/libtorrent.lax/libsub_torrentpeer.a/peer.o  .libs/libtorrent.lax/libsub_data.a/hash_queue.o .libs/libtorrent.lax/libsub_data.a/chunk.o .libs/libtorrent.lax/libsub_data.a/socket_file.o .libs/libtorrent.lax/libsub_data.a/hash_torrent.o .libs/libtorrent.lax/libsub_data.a/chunk_part.o .libs/libtorrent.lax/libsub_data.a/memory_chunk.o .libs/libtorrent.lax/libsub_data.a/chunk_list.o .libs/libtorrent.lax/libsub_data.a/hash_queue_node.o .libs/libtorrent.lax/libsub_data.a/hash_chunk.o  .libs/libtorrent.lax/libsub_download.a/download_constructor.o .libs/libtorrent.lax/libsub_download.a/chunk_selector.o .libs/libtorrent.lax/libsub_download.a/connection_list.o .libs/libtorrent.lax/libsub_download.a/download_main.o .libs/libtorrent.lax/libsub_download.a/available_list.o .libs/libtorrent.lax/libsub_download.a/delegator.o .libs/libtorrent.lax/libsub_download.a/download_wrapper.o .libs/libtorrent.lax/libsub_download.a/download_manager.o .libs/libtorrent.lax/libsub_download.a/choke_manager.o .libs/libtorrent.lax/libsub_download.a/chunk_statistics.o  .libs/libtorrent.lax/libsub_net.a/throttle_list.o .libs/libtorrent.lax/libsub_net.a/socket_stream.o .libs/libtorrent.lax/libsub_net.a/throttle_manager.o .libs/libtorrent.lax/libsub_net.a/socket_base.o .libs/libtorrent.lax/libsub_net.a/socket_datagram.o .libs/libtorrent.lax/libsub_net.a/socket_fd.o .libs/libtorrent.lax/libsub_net.a/socket_set.o .libs/libtorrent.lax/libsub_net.a/listen.o  .libs/libtorrent.lax/libsub_protocol.a/handshake_encryption.o .libs/libtorrent.lax/libsub_protocol.a/request_list.o .libs/libtorrent.lax/libsub_protocol.a/peer_connection_leech.o .libs/libtorrent.lax/libsub_protocol.a/handshake_manager.o .libs/libtorrent.lax/libsub_protocol.a/handshake.o .libs/libtorrent.lax/libsub_protocol.a/peer_connection_base.o .libs/libtorrent.lax/libsub_protocol.a/peer_connection_seed.o .libs/libtorrent.lax/libsub_protocol.a/peer_factory.o  .libs/libtorrent.lax/libsub_tracker.a/tracker_manager.o .libs/libtorrent.lax/libsub_tracker.a/tracker_container.o .libs/libtorrent.lax/libsub_tracker.a/tracker_control.o .libs/libtorrent.lax/libsub_tracker.a/tracker_http.o .libs/libtorrent.lax/libsub_tracker.a/tracker_udp.o  .libs/libtorrent.lax/libsub_utils.a/diffie_hellman.o .libs/libtorrent.lax/libsub_utils.a/sha_fast.o   -lcrypto /usr/lib64/libsigc-2.0.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crtn.o  -mtune=athlon64 -o .libs/libtorrent.so.10.0.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o: In function `_init':
/var/tmp/portage/sys-libs/glibc-2.5/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crti.S:25: multiple definition of `_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o:/var/tmp/portage/sys-libs/glibc-2.5/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crti.S:25: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o: In function `_fini':
/var/tmp/portage/sys-libs/glibc-2.5/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crti.S:37: multiple definition of `_fini'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o:/var/tmp/portage/sys-libs/glibc-2.5/work/build-amd64-x86_64-pc-linux-gnu-nptl/csu/crti.S:37: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginS.o:(.data.rel+0x0): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginS.o:(.data.rel+0x0): first defined here
collect2: ld returned 1 exit status
make[3]: *** [libtorrent.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.11.2/work/libtorrent-0.11.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.11.2/work/libtorrent-0.11.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/libtorrent-0.11.2/work/libtorrent-0.11.2'
make: *** [all] Error 2

autogen.sh needs to be run before elibtoolize / econf

Reproducible: Always
Comment 1 Matthew Hamilton 2007-01-28 06:13:02 UTC
Created attachment 108343 [details]
libtorrent-0.11.2-r1.ebuild

libtorrent ebuild with corrected src_compile() section.  Compiles on ~amd64 and ~x86
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-28 08:50:14 UTC
(In reply to comment #1)
> libtorrent ebuild with corrected src_compile() section.  Compiles on ~amd64 and
> ~x86

Don't silently change unrelated stuff; replace-flags -Os -O2 should _not_ be commented out, it's there for a reason.
Comment 3 Matthew Hamilton 2007-01-28 09:12:25 UTC
Created attachment 108354 [details, diff]
libtorrent-0.11.2.ebuild diff

My apologies, I'd left that line commented out while I was debugging the ebuild.  This diff should be more helpful.
Comment 4 Matthew Hamilton 2007-01-28 09:14:29 UTC
Created attachment 108356 [details, diff]
libtorrent-0.11.2.ebuild diff

I'm a bonehead, I did my `diff -u` in the wrong order.
Comment 5 Maarten Maathuis 2007-01-28 09:50:46 UTC
Edit: The tarballs were messed up due to some weird autoconf magic going
wrong. Also, fixed the version number in the topic.

This is in the release note, maybe just replace the tarballs?
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 11:12:52 UTC
Comment on attachment 108356 [details, diff]
libtorrent-0.11.2.ebuild diff

_Never_ use autogen scripts, as they are out of Portage scope. autotools.eclass is the proper way to fix this kind of problems.

Anyway, thanks for reporting, will fix this right away.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 13:54:56 UTC
Thanks Matt for reporting, solved now with an eautoreconf.

Maarten: the ebuilds already use the latest tarball available on libtorrent's site.