Hi, I try to install xorg-x11 on a uclibc Gentoo system and get an error (see below) when compiling x11-apps/xrandr-1.2.2 (all other packages were installed without a problem). The bug and a patch is already posted under: http://bugs.gentoo.org/show_bug.cgi?id=197013 Regards, Marc Error: 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'.
Created attachment 12214 [details] [review] xrandr-1.2.2-clone-nameclash.patch Here is the patch from: http://bugs.gentoo.org/show_bug.cgi?id=197013 Regards, Marc
its 2009 now... a year and a half later and this bug still not resolved... why cant this symbol get renamed so that things compile?
Created attachment 30953 [details] [review] Use a prefix for enum type _policy and _relation like other enums in xrandr.c Here's patch which rewrote two enums to match what's done for others enum in the sources.
Created attachment 30956 [details] [review] Disable --clone / --extend support code. This is another way to fix the problem: the code using enum clone constant is not used, so it can be disabled.
A bug report was created against uClibc. See https://bugs.busybox.net/show_bug.cgi?id=727
Thanks to Matthias Hopf from SuSe, a patch with a workaround against the uClibc related bug was added to xrandr. See http://cgit.freedesktop.org/xorg/app/xrandr/commit/?id=5f7d052d63875f059f5693c68ee9fdf559ad5300
(In reply to comment #6) > Thanks to Matthias Hopf from SuSe, a patch with a workaround against the uClibc > related bug was added to xrandr. > See > http://cgit.freedesktop.org/xorg/app/xrandr/commit/?id=5f7d052d63875f059f5693c68ee9fdf559ad5300 Closing as FIXED.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.