Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578054 - dev-libs/weston - weston-launch fails: failed to load module: /usr/lib64/weston/drm-backend.so: undefined symbol: launcher_logind_iface
Summary: dev-libs/weston - weston-launch fails: failed to load module: /usr/lib64/west...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 08:52 UTC by Philipp Middendorf
Modified: 2016-06-06 08:15 UTC (History)
0 users

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


Attachments
weston-1.10-launcher_logind_iface.patch (weston-1.10-launcher_logind_iface.patch,450 bytes, patch)
2016-04-08 17:03 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Middendorf 2016-03-23 08:52:43 UTC
Launching weston-launcher, I get the following error:

Date: 2016-03-22 CET
[12:11:04.460] weston 1.10.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.10.0
               Build: 1.9.93-2-gd45de28 configure.ac: bump to version 1.10.0 for the official release (2016-02-16 12:37:43 -0800)
[12:11:04.460] OS: Linux, 4.4.5, #7 SMP Thu Mar 17 10:14:16 CET 2016, x86_64
[12:11:04.460] Starting with no config file.
[12:11:04.460] Output repaint window is 7 ms maximum.
[12:11:04.460] Loading module '/usr/lib64/weston/drm-backend.so'
[12:11:04.495] Failed to load module: /usr/lib64/weston/drm-backend.so: undefined symbol: launcher_logind_iface
[12:11:04.495] fatal: failed to create compositor backend

Output of emerge --info wayland weston:

Portage 2.2.28 (python 2.7.11-final-0, default/linux/amd64/13.0/systemd, gcc-5.3.0, glibc-2.22-r2, 4.4.5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.5-x86_64-Intel-R-_Core-TM-_i5-3470_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:     7978864 total,   2156656 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 23 Mar 2016 08:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks 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="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl systemd tcpd udev unicode wayland xattr 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" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="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:  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-libs/wayland-1.10.0-r1::gentoo was built with the following:
USE="static-libs -doc" ABI_X86="64 -32 -x32"


dev-libs/weston-1.10.0::gentoo was built with the following:
USE="X drm gles2 launch resize-optimization static-libs suid systemd xwayland -colord -dbus -editor -examples -fbdev -headless -ivi -lcms -rdp (-rpi) -screen-sharing -test -unwind -wayland-compositor" ABI_X86="64" VIDEO_CARDS="intel -v4l"
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-07 22:28:42 UTC
Might be an --as-needed problem. Possibly fallout from https://lists.freedesktop.org/archives/wayland-devel/2015-March/020701.html

Can you try building weston with --no-as-needed ?
Comment 2 Philipp Middendorf 2016-04-08 06:56:35 UTC
I copied the ebuild and added "append-ldflags "--no-as-needed"" and later even "append-flags "--no-as-needed"" before the econf line but to no avail.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-08 09:03:24 UTC
create a file /etc/portage/env/no-as-needed containing
LDFLAGS="-Wl,-O1 -Wl,--no-as-needed"
and then add the line
dev-libs/weston no-as-needed
to /etc/portage/package.env

https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package
Comment 4 Philipp Middendorf 2016-04-08 09:25:12 UTC
Okay, thank you. I did that and I could see the linker command line being used while linking. However, the problem persists.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-08 16:55:58 UTC
Can you set EXTRA_ECONF="--enable-systemd-login" and try again?

I don't fully understand how drm-backend.so gets to require the launcher_logind_iface symbol, but it seems that symbol will only exist if that option is passed to configure.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-08 17:03:31 UTC
Created attachment 429930 [details, diff]
weston-1.10-launcher_logind_iface.patch

or try this patch
Comment 7 Philipp Middendorf 2016-04-11 07:44:23 UTC
I've tried both, in all combinations, still the same issue (I see the patch being applied before configure and I also see the system-login configure flag being used, so that works in principle).
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-11 08:16:24 UTC
Then I don't know. Best report a bug upstream at https://bugs.freedesktop.org/ so they can have a look.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-05-29 20:51:06 UTC
removing blocker to Xorg stabilization in bug 579266
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-04 11:42:11 UTC
Can you try again with weston-1.11.0?
Comment 11 Philipp Middendorf 2016-06-04 20:13:17 UTC
I can on monday. Stay tuned.
Comment 12 Philipp Middendorf 2016-06-06 08:15:33 UTC
Seems to be fixed.