Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573838 - net-misc/dropbox-3.12.6 - fails to start due to ImportError: /opt/dropbox/PyQt5.QtGui.so: undefined symbol: _ZTI18QOpenGLTimeMonitor
Summary: net-misc/dropbox-3.12.6 - fails to start due to ImportError: /opt/dropbox/PyQ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-04 14:23 UTC by Marinus Schraal
Modified: 2016-03-30 02:50 UTC (History)
1 user (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 Marinus Schraal 2016-02-04 14:23:12 UTC
dropbox 3.12.6 fails to start with the following crash log :

<snip>
Traceback (most recent call last):
  File "dropbox/client/main.py", line 4065, in main_startup
  File "dropbox/client/main.py", line 1980, in run
  File "ui/common/uikit.py", line 383, in create_ui_kit
  File "dropbox/client/ui/qt/__init__.py", line 31, in <module>
  File "PyQt5/QtWidgets.py", line 14, in <module>
  File "PyQt5/QtGui.py", line 14, in <module>
ImportError: /opt/dropbox/PyQt5.QtGui.so: undefined symbol: _ZTI18QOpenGLTimeMonitor

The dropbox internal PyQt5 is apparently compiled a slight bit different than mine.

I have a local build of 3.12.4 that does work.

Reproducible: Always
Comment 1 Jason Zaman gentoo-dev 2016-02-04 15:43:22 UTC
what version of dev-qt/qtgui? and what useflags on it?

emerge --info dev-qt/qtgui
Comment 2 Marinus Schraal 2016-02-04 23:23:39 UTC
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.2.0, glibc-2.21-r1, 4.4.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     3938548 total,     63000 free
KiB Swap:    8386556 total,   7294360 free
Timestamp of repository gentoo: Thu, 04 Feb 2016 09:30:01 +0000
sh bash 4.3_p42-r1
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.2.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

rancor-local
    location: /home/foser/overlay
    masters: gentoo
    priority: 0

bumblebee
    location: /var/lib/layman/bumblebee
    sync-type: laymansync
    sync-uri: git://github.com/Bumblebee-Project/bumblebee-gentoo
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/gnome.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/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/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://gentoo.tiscali.nl/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l1.5"
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 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acl acpi aes afp alsa amd64 archive avahi avx berkdb bluetooth branding btrfs bzip2 cairo caps cdda cdr clang cli clutter colord cracklib crypt cryptsetup cue cups cxx dbus device-mapper dnssec dri dts dvd dvdr eds egl emboss encode epoll evo exif fam fat ffmpeg fftw firefox flac fontconfig foomaticdb fortran fuse gbm gdbm gdm gdu geoclue gif gles2 gmp gnome gnome-keyring gnome-online-accounts gnutls gold google gphoto2 gsf gstreamer gtk gtk3 harfbuzz http iconv introspection ios ipv6 irc jabber jemalloc jpeg jpeg2k lame lcms libnotify libsecret lldb lvm lzo mad map mdnsresponder-compat minizip mms mmx mmxext mng modules mp3 mp4 mpeg msn mtp multilib nautilus ncurses network networkmanager nls nptl obex ogg opencl opengl openmp opus orc pam pango pcre pdf playlist png policykit popcnt ppds pulseaudio pwquality quvi raw readline realtime rtmp s3tc samba scrypt sdl seccomp secure-delete session speex spell spice sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 startup-notification steamgames_source_engine steamgames_trine2 subtitles svg systemd taglib tcpd telepathy theora thetvdb threads tiff timezone tracker transcode truetype twolame udev udisks unicode upnp upnp-av upower usb uvm v4l vaapi vala virgl vorbis vpx wayland wayland-compositor webp wxwidgets x264 x265 xattr xcb xlib-xcb xml xmp xv xvid xwayland zeroconf zlib" ABI_X86="64" 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" 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" APACHE2_MPMS="prefork" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_1 sse4_2 avx aes popcnt" DRACUT_MODULES="crypt lvm systemd caps btrfs" 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 ublox ubx" INPUT_DEVICES="wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nouveau" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-python/PyQt5-5.5::gentoo was built with the following:
USE="dbus declarative gles2 gui network opengl printsupport sql svg widgets xmlpatterns -debug -designer -doc -examples -help -multimedia (-positioning) (-sensors) (-serialport) -testlib (-webchannel) -webkit (-websockets) -x11extras" ABI_X86="64" PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5"
Comment 3 Jason Zaman gentoo-dev 2016-02-05 08:52:22 UTC
Do you get the same output as me when you run this command?

# objdump -T /usr/lib64/libQt5Gui.so | grep _ZTI18QOpenGLTimeMonitor    
0000000000503b90  w   DO .data.rel.ro	0000000000000018  Base        _ZTI18QOpenGLTimeMonitor

What useflags do you have on dev-qt/qtgui?
Can you confirm that 
# ldd /opt/dropbox/PyQt5.QtGui.so
has these same lines (The rest of the lines do not seem relevant):
	libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x0000038c95949000)
	libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x0000038c9547d000)
	libGL.so.1 => /usr/lib64/libGL.so.1 (0x0000038c951db000)
Comment 4 Marinus Schraal 2016-02-05 20:10:35 UTC
objdump is empty

libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x00007f83bca8d000)
libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x00007f83bc62b000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f83bc5a4000)

dev-qt/qtgui-5.4.2-r1:5::gentoo  USE="dbus egl evdev gif gles2 harfbuzz jpeg png udev xcb -accessibility -debug -eglfs -gtkstyle -ibus {-test}"
Comment 5 Jason Zaman gentoo-dev 2016-02-06 06:13:47 UTC
I have exactly the same version and I have that symbol, but our USEflags differ
WORKUSE="dbus gif harfbuzz jpeg png udev xcb -accessibility -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus {-test}"
FAILUSE="dbus egl evdev gif gles2 harfbuzz jpeg png udev xcb -accessibility -debug -eglfs -gtkstyle -ibus {-test}"

The only differences are:
WORKUSE="-egl -evdev -gles2"
FAILUSE="egl evdev gles2"

I also have: dev-qt/qtopengl-5.4.2:5::gentoo  USE="-debug -gles2 {-test}"

Can you try switching the useflags one by one on qtgui and objdump and see which one makes the symbol appear?

I suspect this flag needs to be disabled: gles2: Use GLES 2.0 or later instead of full OpenGL

I cannot figure out how to make dropbox load the system's version of PyQt5 instead of using their precompiled version :(
Comment 6 Marinus Schraal 2016-02-09 21:16:53 UTC
Dropping gles2 seems to do the trick, had to drop it on some more packages as well :

dev-qt/qtgui:5 -gles2
dev-qt/qtdeclarative -gles2
dev-qt/qtopengl -gles2
dev-qt/qtwidgets -gles2
dev-qt/qtprintsupport -gles2

I guess the main ones are qtgui and qtopengl.
Comment 7 Marinus Schraal 2016-02-13 12:27:35 UTC
However, it started, it didn't actually work with the system librsync. It started but it never synced.

Needed to install with USE=+librsync-bundled to get it working.
Comment 8 Jason Zaman gentoo-dev 2016-03-30 02:50:01 UTC
Fixed this in the new version bump

commit 46997da28c533d1692f26c19c958f7d7ce6c0a56
Author: Jason Zaman <perfinion@gentoo.org>
Date:   Wed Mar 30 10:47:23 2016

    net-misc/dropbox: version bump to 3.17.31
    
    Also fix the [-gles2] dep in QT5, thanks to Marinus Schraal
    
    Package-Manager: portage-2.2.26