Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517756 - net-libs/libtorrent-0.13.4 - ld: ../src/.libs/libtorrent.so: undefined reference to symbol 'gzwrite'
Summary: net-libs/libtorrent-0.13.4 - ld: ../src/.libs/libtorrent.so: undefined refere...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 08:11 UTC by Jason Zaman
Modified: 2017-08-19 07:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,96.02 KB, text/plain)
2014-07-22 08:12 UTC, Jason Zaman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Zaman gentoo-dev 2014-07-22 08:11:59 UTC
libtorrent-0.13.4 fails to build.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/.libs/libtorrent.so: undefined reference to symbol 'gzwrite'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'gzwrite' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation



Reproducible: Always

Steps to Reproduce:
1. emerge libtorrent
2.
3.



emerge --info:
Portage 2.2.8-r1 (hardened/linux/amd64/selinux, gcc-4.7.3, glibc-2.17, 3.14.12-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.14.12-hardened-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2
KiB Mem:     4049392 total,    806280 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 21 Jul 2014 21:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gamerlay x-portage
Installed sets: @selinux
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi
-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap
.d /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11/xkb"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs 4 --load-average 5 --buildpkg-exclude "virtual/* sys-kernel/*-sources""
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetc
h preserve-libs protect-owned sandbox selinux sesandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xat
tr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://archive.mmu.edu.my/gentoo http://gentoo.aditsu.net/ http://distfiles.gentoo.org/"
LANG="en_GB.UTF8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --ex
clude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="256-color X a52 aac aalib acl acpi aio alsa alt-font-width amd64 apache2 applet audit autoipd avahi bash-completion berkdb blink bzip2 cairo caps cdparanoia cgi cli 
consolekit contrast corefonts cracklib crypt cryptsetup cscope cups curl cvs cxx daap dbus device-mapper divx dri dvdr dvdread dvi encode exif faac faad fading-colors fam
 ffmpeg flac flickr fpm ftp fts3 fuse g3dvl gcj gcrypt gd gdbm gdu geoip gif gimp git gmail gmp gnome-keyring gnutls gpg gphoto2 gpm gstreamer gtk gtk3 gudev hal hardened
 hdri highlight hotpixel hotpixels hpn hwdb iconv idn imagemagick imap infinality inotify introspection ipod iptc ipv6 isdnlog java java5 javascript jpeg justify kerberos
 keymap kpathsea krb4 lame laptop lcms lensfun libcaca libextractor libkms libnotify libsexy live lm_sensors lua lzma mad mako matroska mdnsresponder-compat midi mmx mmxe
xt mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz mysql mysqli nautilus ncat ncurses ndiff networking nls nping nptl nptlonly nvidia oav offensive ogg ope
n_perms openexr opengl pam pax_kernel pcap pcre pdf perl pixbuf png policykit pop pppd python quicktime raw readline realmedia reflection rrdcgi sasl sdl selinux session 
sidebar smp smtp spell spl sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads threadsafe thumbnail thunar tiff timezone tools truetyp
e tty-helpers twolame udev udisks unicode unit-mm upnp urandom usb utils v4l v4l2 vdpau vim-pager vim-syntax vorbis wcwidth webdav wmp wps x264 xattr xcb xft xinerama xml
 xmlrpc xmlwriter xmp xtpax xulrunner xv xvfb xvid xvmc zeroconf zip zippy zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic authn_alias
 authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock deflate 
dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique
_id userdir usertrack vhost_alias proxy proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets
 stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivd
m earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate t
nt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncur
ses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en en_US sv sv_SE" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset
 fancyindex fastcgi geo gzip limit_req limit_zone map memcached proxy realip referer rewrite scgi spdy split_clients ssi upstream_check upstream_ip_hash userid uwsgi" OFF
ICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" UW
SGI_PLUGINS="cache carbon cheaper_busyness corerouter fastrouter http logfile logsocket mongodblog ping rawrouter router_basicauth router_cache router_expires router_hash
 router_http router_memcached router_metrics router_redirect router_rewrite router_static router_uwsgi rpc rrdtool signal spooler sslrouter symcall syslog transformation_
chunked transformation_gzip transformation_offload transformation_tofile ugreen zergpool" VIDEO_CARDS="nouveau nv modesetting" XTABLES_ADDONS="quota2 psd pknock lscan len
gth2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jason Zaman gentoo-dev 2014-07-22 08:12:48 UTC
Created attachment 381324 [details]
build.log
Comment 2 Manuel Lauss 2014-07-30 12:55:05 UTC
Judging from the last line, you should rebuild zlib first then build libtorrent again