Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276119 - x11-drivers/linuxwacom-0.8.2 fails with "/usr/lib64/libxf86config.a: could not read symbols"
Summary: x11-drivers/linuxwacom-0.8.2 fails with "/usr/lib64/libxf86config.a: could no...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard: treecleaned
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 20:09 UTC by Aric
Modified: 2010-10-18 11:47 UTC (History)
0 users

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


Attachments
build.log for linuxwacom-0.8.2 (build.log,18.42 KB, text/plain)
2009-07-05 10:43 UTC, Aric
Details
build.log for linuxwacom-0.8.3_p6 (build.log,23.17 KB, text/plain)
2009-07-05 11:40 UTC, Kyle Evans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aric 2009-07-01 20:09:53 UTC
Every time I try to emerge linuxwacom it fails with the error "emake failed".  I tried this with different versions (0.8.2 and 0.8.3-p2) and I get the same failure.  More details below under "actual results".

Reproducible: Always

Steps to Reproduce:
emerge -v linuxwacom
Actual Results:  
builds fine until this point:
...
/bin/sh ../../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -pedantic -I/usr/include/xorg  -march=core2 -O2 -pipe -D__amd64__ -no-undefined -version-info 0:1:0 -Wl,-O1 -o libwacomcfg.la -rpath /usr/lib64 wacomcfg.lo -L/usr/lib64 -lX11 -lXi -lxf86config -lm
x86_64-pc-linux-gnu-gcc -Wall -pedantic -I/usr/include/xorg -march=core2 -O2 -pipe -D__amd64__ -Wl,-O1 -o xidump xidump.o wacscrn.o  -L/usr/lib64 /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXi.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl -lm -lncurses
x86_64-pc-linux-gnu-gcc -shared  .libs/wacomcfg.o  -L/usr/lib64 /usr/lib64/libX11.so /usr/lib64/libXi.so -lxf86config -lm  -march=core2 -Wl,-O1 -Wl,-soname -Wl,libwacomcfg.so.0 -o .libs/libwacomcfg.so.0.0.1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libxf86config.a(read.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libxf86config.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libwacomcfg.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/linuxwacom-0.8.2/work/linuxwacom-0.8.2/src/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/linuxwacom-0.8.2/work/linuxwacom-0.8.2/src'
make: *** [all-recursive] Error 1
 *
 * ERROR: x11-drivers/linuxwacom-0.8.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3795:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed."
 *  The die message:
 *   emake failed.


Expected Results:  
Build and install successfully.

if it helps, from /etc/make.conf:

CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2 -gnome -kde intel alsa apache2 audiofile bluetooth bzip2 cdr dri dts dvd dvdr exif ffmpeg flac fltk fontconfig gd gimp glut gphoto2 imagemagick imap innodb ipod java java6 javascript lame libnotify lm_sensors mbox mp3 -multilib musicbrainz mysql mysqli ogg openal php perl pdf pda samba sasl rss win32codecs spell usb unicode truetype wxwidgets xcomposite xml -xulrunner xvid qt3 qt4 gtk x86 oss apm arts avi berkdb bitmap-fonts crypt cups encode fortran f77 foomaticdb gdbm gif gpm imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis vorbis opengl pam pdflib png python qt quicktime readline sdl spell ssl svga tcpd truetype X xml2 xmms xv zlib svg sasl xcb wacom"
MAKEOPTS="-j3"
VIDEO_CARDS="intel"
INPUT_DEVICES="evdev wacom"

GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "

SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
Comment 1 Kyle Evans 2009-07-03 11:30:02 UTC
What version of xorg-server are you using? I can build linuxwacom-0.8.3_p2 fine with xorg-server-1.5.3-r6, but not when I upgrade to 1.6. Haven't tried 0.8.2 with 1.6.
Comment 2 Aric 2009-07-03 11:39:36 UTC
I have xorg-server 1.6.1.901-r4, had to mask this in order to get latest intel drivers working.
Comment 3 Kyle Evans 2009-07-05 03:00:40 UTC
(In reply to comment #0)
> /usr/lib64/libxf86config.a(read.o): relocation R_X86_64_32 against `a local
> symbol' can not be used when making a shared object; recompile with -fPIC
> /usr/lib64/libxf86config.a: could not read symbols: Bad value

Did some research and found this 
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

I'm not sure what this means for us, or where the fault lies, but it appears to be an issue with x-server 1.6 and not 1.5 in the case of linuxwacom.

p.s. linuxwacom-0.8.3_p6 was just released 6/28. It's not in portage yet, and copying the ebuild with the new version number yields the same build error.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-05 08:27:17 UTC
Please post your "emerge --info" and attach the build.log file of the failed emerge to this bug.
Comment 5 Aric 2009-07-05 10:43:03 UTC
Created attachment 196724 [details]
build.log for linuxwacom-0.8.2
Comment 6 Aric 2009-07-05 10:44:30 UTC
# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6850_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Thu, 02 Jul 2009 21:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 apm arts audiofile avi berkdb bitmap-fonts bluetooth bzip2 cdr cli cracklib crypt cups dri dts dvd dvdr encode exif f77 ffmpeg flac fltk fontconfig foomaticdb fortran gd gdbm gif gimp glut gphoto2 gpm gtk iconv imagemagick imap imlib innodb intel ipod ipv6 isdnlog java java6 javascript jpeg lame libg++ libnotify libwww lm_sensors mad mbox midi mikmod mmx motif mp3 mpeg mudflap musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp oss pam pcre pda pdf pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection rss samba sasl sdl session spell spl sse sse2 ssl svg sysfs tcpd truetype unicode usb vorbis wacom wxwidgets xcb xcomposite xml xml2 xorg xv xvid 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Kyle Evans 2009-07-05 11:40:01 UTC
Created attachment 196755 [details]
build.log for linuxwacom-0.8.3_p6
Comment 8 Kyle Evans 2009-07-05 11:41:59 UTC
# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Turion-tm-_X2_Ultra_Dual-Core_Mobile_ZM-80-with-glibc2.2.5
Timestamp of tree: Thu, 02 Jul 2009 07:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j7"
PKGDIR="/usr/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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl amd64 berkdb bzip2 cleartype cli cracklib crypt cups dri fortran gdbm gnome gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection samba session spl sse sse2 ssl sysfs tcpd truetype unicode xorg 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 9 Mike Auty (RETIRED) gentoo-dev 2009-07-05 12:15:24 UTC
Hiya guys,

Bug 222683 might be related.  It appears to be an xorg problem because /usr/lib64/libxf86config.a doesn't actually exist.  Could you please verify whether that file exists, and also let me know if you have USE="minimal" set when you emerge xorg-server?
Comment 10 Aric 2009-07-05 13:42:15 UTC
Hi:

# ls -l /usr/lib64/libxf86config.a
-rw-r--r-- 1 root root 175578 Jul  2 20:20 /usr/lib64/libxf86config.a

# equery belongs /usr/lib64/libxf86config.a
[ Searching for file(s) /usr/lib64/libxf86config.a in *... ]
x11-base/xorg-server-1.6.1.901-r4 (/usr/lib64/libxf86config.a)

And I was not using USE="minimal" when I emerge xorg and X11.

Thank you
Comment 11 Mike Auty (RETIRED) gentoo-dev 2009-07-05 13:47:13 UTC
CCing X11 for help with this one (since I can't receate this problem myself, and it appears to be an issue with libxf86config.a rather than linuxwacom)...
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-07-05 18:25:08 UTC
Basically, libxf86config.a is a RedHat hack/patch we also ship (but it's not in upstream Xorg) to make xorg-server install Xorg's config file parsing lib available on disk.

My gut feeling here is that linuxwacom shouldn't be using it. In fact, no-one should be using this, even HAL stop using it :)

What's linuxwacom's reason for using this lib? Can it be disabled/avoided?

Thanks
Comment 13 Mike Auty (RETIRED) gentoo-dev 2009-07-05 20:01:41 UTC
Well, from what I can tell it does appear to be an automagical dependency, in that there seems to be no harm if it isn't there.  I've produced a patch that adds a --disable-xf86config option, but I'm not sure it's worth sending upstream.  Either way, there's a 0.8.3_p6 version available in the ikelos overlay (which you can get using layman) which specifically always disables xf86config support.  Please could you test this out and let me know how it works?
Comment 14 Aric 2009-07-05 20:26:58 UTC
linuxwacom from the ikelos overlay works!

Thank you!
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2009-07-05 21:37:52 UTC
Mike, please send it upstream, your patch looks good, and it defaults to the old behavior.

Thanks :)
Comment 16 Mike Auty (RETIRED) gentoo-dev 2009-07-05 23:18:45 UTC
Ok, patch upstream at http://sourceforge.net/tracker/index.php?func=detail&aid=2817192&group_id=69596&atid=525126.  Give me a prod in a day or two if I haven't pushed this out to the tree by then...  5:)
Comment 17 Mike Auty (RETIRED) gentoo-dev 2010-08-18 21:10:15 UTC
Reassigning since I can't look after linuxwacom any more.
Comment 18 Tomáš Chvátal (RETIRED) gentoo-dev 2010-10-18 11:47:27 UTC
linuxwacom was removed from main tree.