Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319147 - x11-drivers/xf86-input-tslib-0.0.6-r1 (stable) fails to compile on arm
Summary: x11-drivers/xf86-input-tslib-0.0.6-r1 (stable) fails to compile on arm
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Angelo Arrifano (RETIRED)
Depends on:
Reported: 2010-05-10 13:31 UTC by Marat Radchenko
Modified: 2010-07-11 11:52 UTC (History)
6 users (show)

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

emerge --info output (emerge-info.txt,3.50 KB, text/plain)
2010-05-10 13:32 UTC, Marat Radchenko
build log (build.log,8.57 KB, text/plain)
2010-05-10 13:33 UTC, Marat Radchenko
avoid InputDriverRec TSLIB to be overriden by TSLIB from /include/xorg-server.h (fix-overlapped-variable.patch,485 bytes, patch)
2010-05-26 15:10 UTC, Bruno 'brubru' Tarquini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marat Radchenko 2010-05-10 13:31:46 UTC
build.log attached.
`emerge --info` attached.

xorg-server version: 1.7.6
Comment 1 Marat Radchenko 2010-05-10 13:32:10 UTC
Created attachment 230951 [details]
emerge --info output
Comment 2 Marat Radchenko 2010-05-10 13:33:40 UTC
Created attachment 230953 [details]
build log
Comment 3 Marat Radchenko 2010-05-10 17:22:41 UTC
tslib version: 1.0-r1
Comment 4 Marat Radchenko 2010-05-11 04:10:17 UTC
clearing ccache cache and rebuilding tslib doesn't help.
Same problem happens on another box with xorg-server-1.6.5-r1
Comment 5 Bruno 'brubru' Tarquini 2010-05-26 15:10:03 UTC
Created attachment 233005 [details, diff]
avoid InputDriverRec TSLIB to be overriden by TSLIB from /include/xorg-server.h

Attached patch should fix the bug.

When xorg-server is compiled with USE="tslib", /usr/include/xorg-server.h have a #define TSLIB 1; but src/tslib.c (wich include some xorg headers) has a variable named TSLIB, which will be replaced to 1 by the preprocessor. Renaming it to TSLIB_DRIVER fixes the failure.
Comment 6 renato gallo 2010-06-18 14:46:04 UTC
same bug here

 emerge --info
Portage (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.35-rc3 x86_64)
System uname: Linux-2.6.35-rc3-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 18 Jun 2010 13:45:03 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     9999
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.8-r1
virtual/os-headers:  2.6.30-r1
CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi addns ads aio akonadi alisp alsa amd64 amr archive autoipd avahi bash-completion beagle berkdb bidi big-tables bl blender-game bluetooth bonjour bookmarks bs2b bzip2 c3p0 cairo caps cdda cdparanoia cli cluster consolekit contrast cracklib crypt cscope cups curl cxx daap dbus derby device-mapper dga dhcp dhcpcd dirac directfb disk-partition djvu dri dvb dvd dxr3 eap-sim eds emacs examples exchange exif expat extraengine faac faad fasteap fbcon ffmpeg fftw fits flac fontforge fortran fpx ftp fuse gcj gconf gdal gdbm gdu ggi gif gimp gnome gnome-keyring google-gadgets gpc gphoto2 gpm gps graphite graphviz gs gsm gstreamer gtk gunit gzip-el hal hardware-carrier hdri hesiod hotpixels iconv ieee1394 imagemagick imlib ipod ipv6 irda java javascript jbig jce joystick jpeg jpeg2k kde kdrive kismet ladspa lame lastfm latex lcms ldap ldb lensfun libcaca libgda libnotify lirc log4j lqr lua lzo m17n-lib mad madwifi mapnik md5sum mmap mmx mmxext mng modules motif mp3 mp3tunes mpeg mtp mudflap multilib multimedia mysql mythtv nas nautilus ncurses network networkmanager nis nls nptl nptlonly nsplugin nut objc objc++ objc-gc odbc odbcmanual odk ogg okular openal openexr opengl openmp pam pbxt pch pcre pda pdf perl phonon plotutils png pnm policykit pppd pulseaudio pvr python q32 q8 qimageblitz qscintilla qt3support qt4 quota qwt radio raster raw readline reflection rle ruby samba schroedinger scripts sdk sdl secure-delete session slang smbsharemodes smp soap sound soup speech speex spl sql sqlite sse sse2 ssl ssse3 startup-notification svg swat swig sysfs syslog system-sqlite taglib tcl tcpd tdbtest teletext templates tga theora thumbnail tiff timezone tk toolkit-scroll-bars tools trace tracker transmitter truetype tslib unicode usb util v4l v4l2 vcd vdpau verse vim-pager vim-syntax vorbis wavpack webkit wicd wifi winbind wmf wps wxwidgets x264 xanim xemacs xft xinerama xml xmp xorg xtradb xv xvid xvmc zlib zoran" 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z topfield toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse acecad aiptek joystick penmount synaptics tslib void wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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" 
Comment 7 Christoph Mende (RETIRED) gentoo-dev 2010-06-25 22:14:24 UTC
why are we CCed here? this is not amd64 specific.
Comment 8 Marat Radchenko 2010-07-10 18:58:10 UTC
Confirming that patch from #6 fixes compilation.
Comment 9 solar (RETIRED) gentoo-dev 2010-07-11 03:20:54 UTC
Sorry for the delay. Please test -r2

Using commit message:
- Bug 319147 avoid conflicting headers :    Marat Radchenko <>

/var/cvsroot/gentoo-x86/x11-drivers/xf86-input-tslib/ChangeLog,v  <--  ChangeLog
new revision: 1.27; previous revision: 1.26
/var/cvsroot/gentoo-x86/x11-drivers/xf86-input-tslib/xf86-input-tslib-0.0.6-r2.ebuild,v  <--  xf86-input-tslib-0.0.6-r2.ebuild
initial revision: 1.1
/var/cvsroot/gentoo-x86/x11-drivers/xf86-input-tslib/files/fix-overlapped-variable.patch,v  <--  files/fix-overlapped-variable.patch
initial revision: 1.1
>>> Creating Manifest for /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-tslib
/var/cvsroot/gentoo-x86/x11-drivers/xf86-input-tslib/Manifest,v  <--  Manifest
new revision: 1.28; previous revision: 1.27

Comment 10 Marat Radchenko 2010-07-11 09:26:54 UTC
Confirming 0.0.6-r2 has this bug fixed. Thanks
Comment 11 solar (RETIRED) gentoo-dev 2010-07-11 11:52:47 UTC