Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382711 - net-p2p/deluge-1.3* fails to start due undefined symbols in boost
Summary: net-p2p/deluge-1.3* fails to start due undefined symbols in boost
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
: 397815 (view as bug list)
Depends on: 312155
Blocks:
  Show dependency tree
 
Reported: 2011-09-12 15:11 UTC by Pacho Ramos
Modified: 2012-03-19 21:00 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2011-09-12 15:11:29 UTC
When I run "deluge" a window is opened showing me an error and deluge doesn't work:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 294, in _on_reactor_start
    client.start_classic_mode()
  File "/usr/lib64/python2.7/site-packages/deluge/ui/client.py", line 559, in start_classic_mode
    self._daemon_proxy = DaemonClassicProxy(self.__event_handlers)
  File "/usr/lib64/python2.7/site-packages/deluge/ui/client.py", line 432, in __init__
    self.__daemon = deluge.core.daemon.Daemon(classic=True)
  File "/usr/lib64/python2.7/site-packages/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib64/python2.7/site-packages/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/lib64/python2.7/site-packages/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: /usr/lib64/libboost_python-mt-1_46.so.1.46.1: undefined symbol: PyBytes_Size


Not sure what is wrong with my boost installation, I have already tried to recompile it without success :(


[ebuild   R    ] dev-libs/boost-1.46.1-r1  USE="eselect python -debug -doc -icu -mpi -static-libs -test -tools" 0 kB


Reproducible: Always




Portage 2.1.10.15 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.3
Timestamp of tree: Mon, 12 Sep 2011 12:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdinstall cdr cdrom cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif git gnome gnome-keyring gpm gstreamer gtk gtk3 hddtemp iconv java jpeg kpathsea latex lcdfilter lcms libnotify lm_sensors lyx lzma mad mms mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nfs nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reiserfs scanner sdl session sound spell sse sse2 sse3 ssl startup-notification subversion svg sysfs t1lib tcpd threads tiff truetype udev unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" 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="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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Luther (few) 2011-09-12 16:13:14 UTC
Did you rebuild net-libs/rb_libtorrent and net-p2p/deluge?
Comment 2 Pacho Ramos gentoo-dev 2011-09-12 16:14:47 UTC
Yes, but will re-rebuild them
Comment 3 Rafał Mużyło 2011-09-12 16:24:10 UTC
Well, it's just a guess, as my google query is inconclusive, but I suspect that the problem does lie in boost, though indirectly.

In python 2.7:
#define PyBytes_Size PyString_Size
I suspect (python 3.x not installed here yet, that in 3.x it's a real function.

So, boost probably builds with 3.x, but you're running it with 2.7, so it fails.

boost still isn't ported to multiple python abi and I suspect it would be a minor horror, due to bjam (and the likely disk size reqs increase, unless we somehow manage to avoid copying the sources).
Comment 4 Pacho Ramos gentoo-dev 2011-09-12 16:35:51 UTC
It works again after rebuilding the three with python2.7 instead of python3 :D
Comment 5 Rafał Mużyło 2011-09-12 17:04:29 UTC
(In reply to comment #4)
> It works again after rebuilding the three with python2.7 instead of python3 :D

Well, I'd say that it still means it's broken.

Now, that I've read a bit more on http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html, I think that with just a little work in boost ebuild and a few changes to eselect-boost, building boost-python for multiple abi should be possible (even if bit annoying in the ebuild) without duplicating sources - though I haven't made any tests yet.
Comment 6 Pacho Ramos gentoo-dev 2012-01-06 12:12:33 UTC
*** Bug 397815 has been marked as a duplicate of this bug. ***
Comment 7 Mike Gilbert gentoo-dev 2012-01-30 03:37:19 UTC
As pointed out by Arfrever, this should be resolved with rb_libtorrent-0.15.9-r1, which utilizes the support for multiple python abis which has been added to boost-1.48-r1.

So, I believe the test would be to eselect python3 and rebuild everything with the versions mentioned above. Anyone interested in testing that?
Comment 8 CT 2012-02-26 21:46:53 UTC
(In reply to comment #7)
> As pointed out by Arfrever, this should be resolved with
> rb_libtorrent-0.15.9-r1, which utilizes the support for multiple python abis
> which has been added to boost-1.48-r1.
> 
> So, I believe the test would be to eselect python3 and rebuild everything with
> the versions mentioned above. Anyone interested in testing that?

Done as suggested: unmasked rb_libtorrent-0.15.9-r1 and boost-1.48-r1 and rebuilt all three packages, can confirm that this seems to fix the issue. Everything else seems to be stable, as well.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2012-03-19 21:00:20 UTC
Thanks for testing