Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 472378

Summary: x11-base/xorg-server-1.14.1.901[-udev] - xf86Events.c:(.text+0xf14): undefined reference to `xf86platformVTProbe'
Product: Gentoo Linux Reporter: Frank Peters <frank.peters>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: che, slashbeast
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Copy of problem description and patch

Description Frank Peters 2013-06-05 08:25:47 UTC
Emerge xorg-server-1.14.1.901 fails with USE="-udev" because of the following error:

common/.libs/libcommon.a(xf86Events.o): In function `xf86Wakeup':
xf86Events.c:(.text+0xf14): undefined reference to `xf86platformVTProbe'

The problem is desrcibed in the following link:

http://permalink.gmane.org/gmane.comp.freedesktop.xorg.devel/35490

Basically, xf86platformVTProbe() should not be called unless it is defined and apparently it is *not* defined with USE="-udev".

The link provides a patch to fix this problem on non-udev systems but this patch has not been applied to the xorg-server-1.14.1.901 source package that is used by Gentoo.  The patch described in the link should be included in the portage tree and ebuild.

Here is output of emerge --info

Portage 2.1.12.2 (default/linux/amd64/13.0/no-multilib, gcc-4.7.3, glibc-2.17, 3.9.0 x86_64)
=================================================================
System uname: Linux-3.9.0-x86_64-Intel-R-_Core-TM-_i7_CPU_870_@_2.93GHz-with-gentoo-2.2
KiB Mem:     8163828 total,   6472624 free
KiB Swap:   11719380 total,  11719380 free
Timestamp of tree: Wed, 05 Jun 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3, 4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -mfpmath=sse --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -U_FORTIFY_SOURCE"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /root /usr/etc /usr/libexec/mc /usr/local/etc /usr/share/mc"
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"
CPPFLAGS="-U_FORTIFY_SOURCE"
CXXFLAGS="-O2 -pipe -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -mfpmath=sse --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -U_FORTIFY_SOURCE"
DISTDIR="/tmp/portage-acc/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://lug.mtu.edu/gentoo/ http://mirrors.cs.wmich.edu/gentoo ftp://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j9"
PKGDIR="/tmp/portage-acc/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/tmp/portage-acc/tmp"
PORTDIR="/tmp/portage"
PORTDIR_OVERLAY="/tmp/portage-acc/overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb blas bzip2 cairo cli css cxx dri exif fftw fontconfig fortran gdbm gif gmp gpm iconv idn imlib jpeg lame lcms mmx modules motif mudflap ncurses nptl opengl openmp pcre png readline smp sndfile spell sse sse2 sse3 svg tcpd threads tiff truetype unicode vdpau xcb zlib" ABI_X86="64" ALSA_CARDS="dummy ice1712 intel-hda" 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" 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" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en-US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia svga 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:  CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Frank Peters 2013-06-05 08:30:22 UTC
Created attachment 350186 [details]
Copy of problem description and patch

A description of the problem and patch copied from:

http://permalink.gmane.org/gmane.comp.freedesktop.xorg.devel/35490

[PATCH] Only call xf86platformVTProbe() when it's defined
Fixes build on non-udev systems, since XSERVER_PLATFORM_BUS is only
defined in configure.ac if $CONFIG_UDEV_KMS is true.

Signed-off-by: Alan Coopersmith <alan.coopersmith@...>
---
 hw/xfree86/common/xf86Events.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index ea18420..7a949fd 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
 <at>  <at>  -561,8 +561,10  <at>  <at>  xf86VTSwitch(void)
         for (ih = InputHandlers; ih; ih = ih->next)
             xf86EnableInputHandler(ih);

+#ifdef XSERVER_PLATFORM_BUS
         /* check for any new output devices */
         xf86platformVTProbe();
+#endif

         OsReleaseSIGIO();
     }
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-05 11:30:51 UTC
If you want this fixed in next 1.14 release, then add it to the nominations in the X.org wiki:
http://www.x.org/wiki/Server14Branch
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-05 14:37:11 UTC
Please disregard comment 2, there is no nomination page for xorg-server-1.14 branch.
Comment 4 Piotr Karbowski (RETIRED) gentoo-dev 2013-06-23 21:23:16 UTC
@Chí-Thanh Christopher Nguyễn: Why don't you just commit this patch to portage? Its so damn simple fix yet its been two weeks and still there's no fix in portage.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-23 21:28:28 UTC
It will be fixed in 1.14.2 which is due for release tomorrow or so.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-25 18:09:56 UTC
Fixed in 1.14.2