Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445180 - net-p2p/bitcoin-qt-{0.6.3,0.7.2_rc2} - ld: cannot find -lboost_system-1_52
Summary: net-p2p/bitcoin-qt-{0.6.3,0.7.2_rc2} - ld: cannot find -lboost_system-1_52
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 446316 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-29 12:01 UTC by Eugene Volchek
Modified: 2013-02-12 03:34 UTC (History)
6 users (show)

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


Attachments
build log (build.log,74.09 KB, text/plain)
2012-11-29 12:01 UTC, Eugene Volchek
Details
build.log from net-p2p/bitcoind-0.7.2_rc2 (build.log,17.88 KB, text/plain)
2013-01-06 04:06 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Volchek 2012-11-29 12:01:44 UTC
Created attachment 330918 [details]
build log

Portage 2.1.11.31 (default/linux/amd64/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2760QM_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 29 Nov 2012 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo laurentb science
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth AdobeFlash-10.3 TeamViewer Oracle-BCLA-JavaSE skype-4.0.0.7-copyright skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=9"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.iteam.net.ua/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.opteamax.de/gentoo/"
LANG="be_BY.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbzip2 -d -n8"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/laurentb /var/lib/layman/science"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus dri dts dvd dvdr emboss encode exif fam fbcondecor firefox flac fortran gdbm gif gnome-keyring gpm gtk iconv idn ipv6 jpeg lcms libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support qt4 readline sdl session smp spell sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xcb xcomposite xft xinerama xml xv xvid xvmc zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" NETBEANS_MODULES="profiler java" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip proxy rewrite uwsgi" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

> emerge -pqv '=net-p2p/bitcoin-qt-0.6.3'
[ebuild  N    ] net-p2p/bitcoin-qt-0.6.3  USE="dbus eligius qrcode -1stclassmsg -upnp" LINGUAS="en -ca_ES -cs -da -de -es -es_CL -et -eu_ES -fa -fa_IR -fi -fr_CA -fr_FR -he -hr -hu -it -lt -nb -nl -pl -pt_BR -ro_RO -ru -sk -sr -sv -tr -uk -zh_CN -zh_TW"
Comment 1 MZ 2012-12-06 12:00:11 UTC
same problem bitcoin-qt-0.7.2_rc2
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-07 11:40:09 UTC
*** Bug 446316 has been marked as a duplicate of this bug. ***
Comment 3 PM 2012-12-07 11:42:30 UTC
Not that this was fixed in 0.7.1 and broken again in 0.7.2_rc2.
Comment 4 Luke-Jr 2012-12-08 17:29:34 UTC
Does this problem affect the bitcoin overlay ebuilds too?
Comment 5 PM 2012-12-09 12:57:00 UTC
No, the overlay has been fixed.
Comment 6 Matt Whitlock 2012-12-17 12:16:39 UTC
This also affects net-p2p/bitcoind-0.7.2_rc2.
Comment 7 Yaron Tausky 2013-01-06 02:27:38 UTC
This happens to me with bitcoin-qt-0.7.2 too. Does someone keep revbumping ebuilds without bothering to make sure they actually work?
Comment 8 Anthony Basile gentoo-dev 2013-01-06 03:48:06 UTC
(In reply to comment #7)
> This happens to me with bitcoin-qt-0.7.2 too. Does someone keep revbumping
> ebuilds without bothering to make sure they actually work?

I test every ebuild I move from the overlay to the tree.  We need to narrow down what's going on with boost because its succeeding for me.  Is this only an issue with boost 1.52?  If so I can limit the dependency in the ebuild.
Comment 9 Yaron Tausky 2013-01-06 03:56:50 UTC
In that case, I apologise for the implied accusing tone. I've only tried it with the latest version of boost in the tree (1.52.0-r5). Which one are you using?
Comment 10 Matt Whitlock 2013-01-06 04:06:39 UTC
Created attachment 334590 [details]
build.log from net-p2p/bitcoind-0.7.2_rc2

# emerge -pqtv boost bitcoind
[ebuild     U ] net-p2p/bitcoind-0.7.2_rc2 [0.7.1] USE="eligius ipv6 -examples -logrotate -upnp" 
[ebuild   R   ]  dev-libs/boost-1.52.0-r5  USE="icu threads -debug -doc -mpi -nls -python -static-libs -tools" PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1 (-python3_3)" 

# qlist boost | fgrep '.so'
/usr/lib64/libboost_wserialization-mt.so
/usr/lib64/libboost_wave-mt.so
/usr/lib64/libboost_unit_test_framework-mt.so
/usr/lib64/libboost_timer-mt.so
/usr/lib64/libboost_thread-mt.so
/usr/lib64/libboost_system-mt.so
/usr/lib64/libboost_signals-mt.so
/usr/lib64/libboost_serialization-mt.so
/usr/lib64/libboost_regex-mt.so
/usr/lib64/libboost_random-mt.so
/usr/lib64/libboost_program_options-mt.so
/usr/lib64/libboost_prg_exec_monitor-mt.so
/usr/lib64/libboost_math_tr1-mt.so
/usr/lib64/libboost_math_tr1l-mt.so
/usr/lib64/libboost_math_tr1f-mt.so
/usr/lib64/libboost_math_c99-mt.so
/usr/lib64/libboost_math_c99l-mt.so
/usr/lib64/libboost_math_c99f-mt.so
/usr/lib64/libboost_iostreams-mt.so
/usr/lib64/libboost_graph-mt.so
/usr/lib64/libboost_filesystem-mt.so
/usr/lib64/libboost_date_time-mt.so
/usr/lib64/libboost_chrono-mt.so
/usr/lib64/libboost_wave.so
/usr/lib64/libboost_unit_test_framework.so
/usr/lib64/libboost_timer.so
/usr/lib64/libboost_thread.so
/usr/lib64/libboost_wave.so.1.52.0
/usr/lib64/libboost_timer.so.1.52.0
/usr/lib64/libboost_thread.so.1.52.0
/usr/lib64/libboost_prg_exec_monitor.so
/usr/lib64/libboost_unit_test_framework.so.1.52.0
/usr/lib64/libboost_signals.so
/usr/lib64/libboost_wserialization.so
/usr/lib64/libboost_prg_exec_monitor.so.1.52.0
/usr/lib64/libboost_serialization.so
/usr/lib64/libboost_program_options.so
/usr/lib64/libboost_signals.so.1.52.0
/usr/lib64/libboost_random.so
/usr/lib64/libboost_wserialization.so.1.52.0
/usr/lib64/libboost_math_c99l.so
/usr/lib64/libboost_serialization.so.1.52.0
/usr/lib64/libboost_random.so.1.52.0
/usr/lib64/libboost_program_options.so.1.52.0
/usr/lib64/libboost_math_c99f.so
/usr/lib64/libboost_math_c99l.so.1.52.0
/usr/lib64/libboost_math_tr1l.so
/usr/lib64/libboost_math_c99.so
/usr/lib64/libboost_math_tr1f.so
/usr/lib64/libboost_math_c99f.so.1.52.0
/usr/lib64/libboost_math_tr1.so
/usr/lib64/libboost_math_c99.so.1.52.0
/usr/lib64/libboost_regex.so
/usr/lib64/libboost_math_tr1l.so.1.52.0
/usr/lib64/libboost_graph.so
/usr/lib64/libboost_math_tr1f.so.1.52.0
/usr/lib64/libboost_iostreams.so
/usr/lib64/libboost_math_tr1.so.1.52.0
/usr/lib64/libboost_iostreams.so.1.52.0
/usr/lib64/libboost_graph.so.1.52.0
/usr/lib64/libboost_regex.so.1.52.0
/usr/lib64/libboost_filesystem.so
/usr/lib64/libboost_date_time.so
/usr/lib64/libboost_system.so
/usr/lib64/libboost_chrono.so
/usr/lib64/libboost_filesystem.so.1.52.0
/usr/lib64/libboost_date_time.so.1.52.0
/usr/lib64/libboost_chrono.so.1.52.0
/usr/lib64/libboost_system.so.1.52.0
Comment 11 Anthony Basile gentoo-dev 2013-01-06 05:50:18 UTC
(In reply to comment #9)
> In that case, I apologise for the implied accusing tone. I've only tried it
> with the latest version of boost in the tree (1.52.0-r5). Which one are you
> using?

I'm using boost-1.49.0-r2.  I always test against current stable.  Looks like some API change between the two versions.  Let me see what I can do.
Comment 12 Dennis Schridde 2013-01-06 11:53:08 UTC
(In reply to comment #11)
> I'm using boost-1.49.0-r2.  I always test against current stable.  Looks
> like some API change between the two versions.  Let me see what I can do.
I think what we see here is the move from slotted/versioned boost libraries to slot0/unversioned boost libraries. Before the move they were named libboost_system-1_52.so and now they are named libboost_system.so.1.52.0.
Comment 13 404 Error 2013-01-07 23:59:30 UTC
Manually removing the version numbers in the Makefile seems to do the job and the package compiles without errors (boost 1.52), a way to prevent qmake to do "wrong" assumption?
Comment 14 Sergey Fionov 2013-01-08 00:30:42 UTC
Just for note. If I bump bitcoin-qt-0.7.1 ebuild to 0.7.2 and replace WORKDIR, it builds ok.
Comment 15 Anthony Basile gentoo-dev 2013-01-08 01:31:54 UTC
(In reply to comment #13)
> Manually removing the version numbers in the Makefile seems to do the job
> and the package compiles without errors (boost 1.52), a way to prevent qmake
> to do "wrong" assumption?

Yeah that's it.  The problem is this line:

    OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")

in the ebuild which sets a suffix to boost's version.  The unslotted version only has one boost verions installed, so I don't see the point.  I don't know how that got in there, I think Diego took it out.  I'll check the cvs logs and if so, I'll remove it from bitcoin-qt-0.7.2, have you guys test and then punt it from all bitcoin-qt ebuilds.
Comment 16 Anthony Basile gentoo-dev 2013-01-08 01:33:31 UTC
(In reply to comment #14)
> Just for note. If I bump bitcoin-qt-0.7.1 ebuild to 0.7.2 and replace
> WORKDIR, it builds ok.

Yeah thanks, that's the confirmation I wanted!  (I had a mid-air while posting the previous.)

0.7.1 is the correct way of doing it.  All versioning of boost needs to go.

Give me a few minutes and I'll have it fixed.
Comment 17 Anthony Basile gentoo-dev 2013-01-08 02:17:54 UTC
(In reply to comment #16)
> (In reply to comment #14)
> > Just for note. If I bump bitcoin-qt-0.7.1 ebuild to 0.7.2 and replace
> > WORKDIR, it builds ok.
> 
> Yeah thanks, that's the confirmation I wanted!  (I had a mid-air while
> posting the previous.)
> 
> 0.7.1 is the correct way of doing it.  All versioning of boost needs to go.
> 
> Give me a few minutes and I'll have it fixed.

Okay I fixed this for net-p2p/bitcoind-0.7.* and net-p2p/bitcoin-qt-0.7* although all the versions could probably use this.

Moving forward I will make sure all boost versioning is gone.  Let's leave this bug open as a reminder that I should backport this to all bitcoind and bitcoin-qt versions.  I just want to move slowly to make sure I'm not breaking everything.

Please test!!!!  It works for me, but we want it working for everyone.
Comment 18 Luke-Jr 2013-01-08 02:38:52 UTC
(In reply to comment #15)
> (In reply to comment #13)
> > Manually removing the version numbers in the Makefile seems to do the job
> > and the package compiles without errors (boost 1.52), a way to prevent qmake
> > to do "wrong" assumption?
> 
> Yeah that's it.  The problem is this line:
> 
>     OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")
> 
> in the ebuild which sets a suffix to boost's version.  The unslotted version
> only has one boost verions installed, so I don't see the point.  I don't
> know how that got in there, I think Diego took it out.  I'll check the cvs
> logs and if so, I'll remove it from bitcoin-qt-0.7.2, have you guys test and
> then punt it from all bitcoin-qt ebuilds.

That line was removed from all versions in the overlay a month ago - including the maintree branch until you sync'd with the real main tree. Weird that somehow it snuck back in O.o
Comment 19 Anthony Basile gentoo-dev 2013-01-13 22:44:35 UTC
Okay I've removed the following lines from all bitcoind and bitcoin-qt ebuilds:

-	local BOOST_PKG BOOST_VER BOOST_INC

-	BOOST_PKG="$(best_version 'dev-libs/boost')"
-	BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
-	BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
-	BOOST_INC="/usr/include/boost-${BOOST_VER}"
-	OPTS+=("BOOST_INCLUDE_PATH=${BOOST_INC}")
-	OPTS+=("BOOST_LIB_SUFFIX=-${BOOST_VER}")


Also, I've force the following dependency:

        >=dev-libs/boost-1.41.0[threads(+)]

with USE=threads being pushed down too boost.

This bug should be fixed.  Reopen if its still a problem.