I try to install xorg-x11 on a uclibc system and get an error (see below) when compiling x11-apps/xrandr-1.2.2 (all other packages were installed without a problem). Reproducible: Always Steps to Reproduce: 1. Use a uclibc-stage 3 2. emerge xorg-x11 3. Actual Results: emerge -1 x11-apps/xrandr [...] configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands make all-am make[1]: Entering directory `/var/tmp/portage/x11-apps/xrandr-1.2.2/work/xrandr-1.2.2' if i686-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I. -Os -pipe -march=c3-2 -fomit-frame-pointer -MT xrandr.o -MD -MP -MF ".deps/xrandr.Tpo" -c -o xrandr.o xrandr.c; \ then mv -f ".deps/xrandr.Tpo" ".deps/xrandr.Po"; else rm -f ".deps/xrandr.Tpo"; exit 1; fi sed -e 's|__vendorversion__|"xrandr 1.2.2" "X Version 11"|' -e 's|__xorgversion__|"xrandr 1.2.2" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e 's|__appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < xrandr.man > xrandr.1 xrandr.c:192: error: 'clone' redeclared as different kind of symbol /usr/include/bits/sched.h:57: error: previous declaration of 'clone' was here make[1]: *** [xrandr.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-apps/xrandr-1.2.2/work/xrandr-1.2.2' make: *** [all] Error 2 * * ERROR: x11-apps/xrandr-1.2.2 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called x-modular_src_compile * x-modular.eclass, line 348: Called x-modular_src_make * x-modular.eclass, line 343: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-apps/xrandr-1.2.2/temp/build.log'. Expected Results: Package should compile fine. (build) hive mediamachine # emerge --info Portage 2.1.3.9 (uclibc/x86, gcc-4.1.2, uclibc-0.9.28.3-r0, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz Timestamp of tree: Thu, 25 Oct 2007 07:20:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-gentoo-linux-uclibc" CFLAGS="-Os -pipe -march=c3-2 -fomit-frame-pointer" CHOST="i686-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=c3-2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-z,relro" LINGUAS="de en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/my_ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X dri make-symlinks minimal multicall savedconfig uclibc unicode x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="imon" LINGUAS="de en" LIRC_DEVICES="imon_pad2keys" USERLAND="GNU" VIDEO_CARDS="via" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Its a nameclash. xrandr should't use the name "clone": #if HAS_RANDR_1_2 typedef enum _policy { clone, extend } policy_t;
Created attachment 134343 [details, diff] xrandr-1.2.2-clone-nameclash.patch patch should walk around problem for now. This should be reported upstream.
Please file an upstream bug at bugs.freedesktop.org in the xorg product, and post the URL here so we can track it. Thanks\!
(In reply to comment #3) > Please file an upstream bug at bugs.freedesktop.org in the xorg product, and > post the URL here so we can track it. Thanks\! Upstream bug can be found under http://bugs.freedesktop.org/show_bug.cgi?id=12958 Regards, Marc
Once it's fixed upstream, please reopen this bug.
*** Bug 206861 has been marked as a duplicate of this bug. ***
*** Bug 260051 has been marked as a duplicate of this bug. ***
Can we reopen this bug, there has been no activity on the xorg bug tracker about this since it was posted there in 2007... I recently brought this up on the xorg-devel mailing list and they say its a uclibc bug. uClibc doesnt see how its their fault. Can we just apply this patch when ELIBC="uclibc" so that we can have xrandr on uclibc utill either xorg or uclibc devs decide to do something about it upstream please!
Thing is, neither upstream won't do anything about it until you push them to. Do you have a link to uClibc's bugzilla or something? Thanks