Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448628 - [qt overlay] x11-libs/qt-declarative-5.0.0 USE=-accessibility - .obj/debug-shared/qquickitem.o: In function `QQuickItem::focusInEvent(QFocusEvent*)': qquickitem.cpp:(.text+0xe37): undefined reference to `vtable for QAccessibleEvent'
Summary: [qt overlay] x11-libs/qt-declarative-5.0.0 USE=-accessibility - .obj/debug-sh...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-26 01:56 UTC by Keith Rusler
Modified: 2013-01-25 09:26 UTC (History)
2 users (show)

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


Attachments
build log (build.log,662.52 KB, text/plain)
2012-12-26 03:17 UTC, Keith Rusler
Details
Patch for qt-gui ebuild to store accessibility flag (qt-gui-5.0.0.ebuild.patch,481 bytes, text/plain)
2013-01-11 20:20 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rusler 2012-12-26 01:56:31 UTC
Qt5 would crash if you used the accessibility use flag. So, I disabled it from qt-gui, qt-widgets and qt-declarative. Qt-gui and Qt-Widgets compiled fine with accessibility disabled but not Qt-Declarative.

anager_p.o  -L/usr/X11R6/lib64 -L/var/tmp/portage/x11-libs/qt-declarative-5.0.0/work/qtdeclarative-opensource-src-5.0.0_build/lib -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lpthread -lQt5Network -lQt5Core -lQt5V8 -lpthread -lGL 
.obj/debug-shared/qquickitem.o: In function `QQuickItem::focusInEvent(QFocusEvent*)':
qquickitem.cpp:(.text+0xe37): undefined reference to `vtable for QAccessibleEvent'
qquickitem.cpp:(.text+0xe61): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
.obj/debug-shared/qquickitem.o: In function `QQuickItemPrivate::setEffectiveVisibleRecur(bool)':
qquickitem.cpp:(.text+0x63f0): undefined reference to `vtable for QAccessibleEvent'
qquickitem.cpp:(.text+0x6422): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
.obj/debug-shared/qquickwindow.o: In function `QQuickWindow::accessibleRoot() const':
qquickwindow.cpp:(.text+0x2b1): undefined reference to `QAccessible::queryAccessibleInterface(QObject*)'
.obj/debug-shared/qquicktextinput.o: In function `QQuickTextInputPrivate::emitCursorPositionChanged()':
qquicktextinput.cpp:(.text+0x6018): undefined reference to `vtable for QAccessibleEvent'
qquicktextinput.cpp:(.text+0x605d): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
.obj/debug-shared/qquicktextinput.o: In function `QQuickTextInputPrivate::internalSetText(QString const&, int, bool)':
qquicktextinput.cpp:(.text+0x7bb3): undefined reference to `vtable for QAccessibleEvent'
qquicktextinput.cpp:(.text+0x7c63): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
.obj/debug-shared/qquicktextinput.o: In function `QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent()':
qquicktextinput.cpp:(.text._ZN26QAccessibleTextCursorEventD2Ev[_ZN26QAccessibleTextCursorEventD5Ev]+0x3): undefined reference to `vtable for QAccessibleEvent'
.obj/debug-shared/qquicktextinput.o: In function `QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent()':
qquicktextinput.cpp:(.text._ZN26QAccessibleTextCursorEventD0Ev[_ZN26QAccessibleTextCursorEventD5Ev]+0x3): undefined reference to `vtable for QAccessibleEvent'
.obj/debug-shared/qquicktextinput.o: In function `QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent()':
qquicktextinput.cpp:(.text._ZN26QAccessibleTextUpdateEventD2Ev[_ZN26QAccessibleTextUpdateEventD5Ev]+0x49): undefined reference to `vtable for QAccessibleEvent'
qquicktextinput.cpp:(.text._ZN26QAccessibleTextUpdateEventD2Ev[_ZN26QAccessibleTextUpdateEventD5Ev]+0x72): undefined reference to `vtable for QAccessibleEvent'
.obj/debug-shared/qquicktextinput.o: In function `QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent()':
qquicktextinput.cpp:(.text._ZN26QAccessibleTextUpdateEventD0Ev[_ZN26QAccessibleTextUpdateEventD5Ev]+0x49): undefined reference to `vtable for QAccessibleEvent'
.obj/debug-shared/qquicktextinput.o:(.data.rel.ro._ZTV26QAccessibleTextCursorEvent[vtable for QAccessibleTextCursorEvent]+0x20): undefined reference to `QAccessibleEvent::accessibleInterface() const'
.obj/debug-shared/qquicktextinput.o:(.data.rel.ro._ZTV26QAccessibleTextUpdateEvent[vtable for QAccessibleTextUpdateEvent]+0x20): undefined reference to `QAccessibleEvent::accessibleInterface() const'
.obj/debug-shared/qquicktextinput.o:(.data.rel.ro._ZTI26QAccessibleTextCursorEvent[typeinfo for QAccessibleTextCursorEvent]+0x10): undefined reference to `typeinfo for QAccessibleEvent'
.obj/debug-shared/qquickaccessibleattached.o: In function `QQuickAccessibleAttached::QQuickAccessibleAttached(QObject*)':
qquickaccessibleattached.cpp:(.text+0x5d): undefined reference to `vtable for QAccessibleEvent'
qquickaccessibleattached.cpp:(.text+0x82): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
.obj/debug-shared/moc_qquickaccessibleattached_p.o: In function `QQuickAccessibleAttached::qt_metacall(QMetaObject::Call, int, void**)':
moc_qquickaccessibleattached_p.cpp:(.text+0x33e): undefined reference to `vtable for QAccessibleEvent'
moc_qquickaccessibleattached_p.cpp:(.text+0x364): undefined reference to `QAccessible::updateAccessibility(QAccessibleEvent*)'
moc_qquickaccessibleattached_p.cpp:(.text+0x492): undefined reference to `vtable for QAccessibleEvent'
.obj/debug-shared/moc_qquickaccessibleattached_p.o:(.data.rel+0x0): undefined reference to `QAccessible::staticMetaObject'
collect2: ld returned 1 exit status
make[2]: *** [../../lib/libQt5Quick.so.5.0.0] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-declarative-5.0.0/work/qtdeclarative-opensource-src-5.0.0_build/src/quick'
make[1]: *** [sub-quick-make_first-ordered] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-declarative-5.0.0/work/qtdeclarative-opensource-src-5.0.0_build/src'
make: *** [sub-src-make_first] Error 2


Reproducible: Always

Steps to Reproduce:
1. Add Qt-Gui, Qt-Widgets and Qt-Declarative with -accessibility to package.use file
2. Recompile them
3. Qt-Declarative fails to compile.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-26 03:11:34 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Keith Rusler 2012-12-26 03:16:55 UTC
comawhite@narfxeon ~ $ emerge --info
Portage 2.1.11.38 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.6.8-gentoo x86_64)
=================================================================
System uname: Linux-3.6.8-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3440_@_2.53GHz-with-gentoo-2.2
Timestamp of tree: Tue, 25 Dec 2012 23:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo kde qt
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch parallel-install protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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/kde /var/lib/layman/qt"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X X509 a52 aac aalib accessibility ace acl acpi aften akonadi alac alsa amd64 ansi apng artworkextra assistant attica audio audioscrobbler auto-completion autoipd avahi bash-completion bashlogger bcmath berkdb big-tables bluetooth bonobo boost bootchart btrfs bullet bzip2 c++0x cairo calendar canna caps ccache cdb cdda cddax cdio cdparanoia cdr cdrdao cdrom charconv chardet charmap charset chasen cjk classic cleartype cli clucene cmake colors compat compress connection-sharing consolekit corefonts courier cpio cpudetection cpusets cracklib crypt css cups curl curlwrappers cxx daap dbus dcc declarative designer device-mapper dhcp dhcpcd dia dri dvd dvdarchive dvdchapjump dvdnav dvdr eds embedded emerald enchant encode exif extra extras fbcon fbcondecor fbdev fbsplash ffmpeg firefox3 flac flash fontconfig fortran ftp g3dvl gallium gd gdbm gdu gecko gensplash geoip geolocation gif git glew glib glsl gmp gnustep gnutls gpg gpm groupwise grub gs gstreamer gtk gtk3 gudev gui gzip h224 h281 handbook hddtemp hfs hpcups hpijs hwdb i18n ical icons iconsets iconv icu id3 id3tag idn imagemagick imap inifile inkjar innodb intl introspection ioctl ipc ipv6 irc jabber jfs joystick jpeg json kate kde kdm kdrive kismet kross lame lastfm lastfmradio lcms libnotify libssh2 libv4l libv4l2 llvm lm_sensors logviewer lvm lyrics lyrics-screen lzma lzo mac mad madwifi masquerade mcap mdnsresponder-compat meanwhile mmx mmxext mng modules mono monolithic mp3 mp3rtp mp3tunes mp4 mpi mpris msn mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nat nat-transport ncurses neXt nfs nfsv3 nfsv4 nls nntp nowlistening nowplaying nptl nsplugin ntfs ntp oauth objc objc++ objc-gc offensive ogg openal opencl openexr opengl openid openmp openntpd openssl oscar otr pam parted pch pcre pdf perl plasma png policykit portage portmon pppd prediction private-headers pulseaudio pygrub python python2 python3 q16 q32 q8 qml qq qt-dbus qt-webkit qt3support qt4 qthelp qtscript rar raster readline redland reiser4 reiserfs replaygain reviewboard rss samba sasl schroedinger scrobbler sdl sdl-image sdl-sound sdlaudio semantic-desktop session sha1 sha512 shorten shout silc sip smbclient smbkrb5passwd smbsharemodes smp sms soap sockets socks socks5 songs soundex sox spell sql sqlite sqlite3 sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification stl subversion svg symlink system-cxx-headers szip taglib tcpd tga themedesigner themes theora threads tiff timezone tk tls toolame tracker traits tray trayicon truetype tta tts twisted uml unicode unlock-notify unzip upnp usb uuid v4l v4l2 valgrind vcd vcdinfo vcdx vga vhosts video videos virtuoso vorbis wav wavpack webcam webkit wifi winbind winetriks wireshark wma wma-fixed wmf wxwidgets x264 xcomposite xine xinerama xml xmlpatterns xmlreader xmlrpc xmlwriter xpm xrandr xrender xsl xslt xv xvid xvmc yahoo youtube zephyr zeroconf zip zlib" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB de ru es es_LA" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, USE_PYTHON
Comment 3 Keith Rusler 2012-12-26 03:17:53 UTC
Created attachment 333368 [details]
build log
Comment 4 Eugene Shalygin 2013-01-09 13:56:39 UTC
Indeed, as accessibility use flag is enabled by default, one would expect it to work. At least a message that user has to run accessibility D-BUS agent (otherwise any Qt5 app crashes) would be helpful, or, please, do not enable it by default
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2013-01-09 23:50:58 UTC
(In reply to comment #4)
> Indeed, as accessibility use flag is enabled by default, one would expect it
> to work. At least a message that user has to run accessibility D-BUS agent
> (otherwise any Qt5 app crashes) would be helpful, or, please, do not enable
> it by default

This is completely unrelated to this bug. Please file a new report, thanks.
Comment 6 Eugene Shalygin 2013-01-11 20:20:25 UTC
Created attachment 335250 [details]
Patch for qt-gui ebuild to store accessibility flag

QT_NO_ACCESSIBILITY seems to be required in gentoo-config.h to compile all other modules, that depend on qt-gui, without accessibility support
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2013-01-25 09:07:55 UTC
Should be fixed now. Please re-emerge qt-gui:5 before re-trying.
Thanks!
Comment 8 Eugene Shalygin 2013-01-25 09:26:39 UTC
(In reply to comment #7)
> Should be fixed now. Please re-emerge qt-gui:5 before re-trying.
> Thanks!
Thank you! Since I went the same way (in my private overlay), I can point that there has to be code to remove QT_NO_ACCESSIBILITY from config. Also, ebuild shall remove "accessibility" from QT_CONFIG in /usr/lib64/qt5/mkspecs/qconfig.pri. And, naturally, put it back in case of recompilation. Otherwise compilation of, at least, qt-webkit fails