Bug 12958 - x11-apps/xrandr-1.2.2 fails to compile on uclibc Gentoo system
Summary: x11-apps/xrandr-1.2.2 fails to compile on uclibc Gentoo system
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xrandr (show other bugs)
Version: 7.2 (2007.02)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Keith Packard
QA Contact:
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 06:48 UTC by Marc Blumentritt
Modified: 2010-11-30 22:20 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xrandr-1.2.2-clone-nameclash.patch (798 bytes, patch)
2007-10-26 06:50 UTC, Marc Blumentritt
no flags Details | Splinter Review
Use a prefix for enum type _policy and _relation like other enums in xrandr.c (3.91 KB, patch)
2009-11-04 03:37 UTC, Yann Droneaud
no flags Details | Splinter Review
Disable --clone / --extend support code. (1.34 KB, patch)
2009-11-04 05:08 UTC, Yann Droneaud
no flags Details | Splinter Review

Description Marc Blumentritt 2007-10-26 06:48:12 UTC
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'.
Comment 1 Marc Blumentritt 2007-10-26 06:50:30 UTC
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
Comment 2 Ryan Hope 2009-03-02 11:11:48 UTC
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?
Comment 3 Yann Droneaud 2009-11-04 03:37:22 UTC
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.
Comment 4 Yann Droneaud 2009-11-04 05:08:58 UTC
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.
Comment 5 Yann Droneaud 2010-01-05 06:41:13 UTC
A bug report was created against uClibc. 
See https://bugs.busybox.net/show_bug.cgi?id=727

Comment 6 Yann Droneaud 2010-01-05 06:46:00 UTC
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
Comment 7 Jesse Adkins 2010-11-30 22:20:31 UTC
(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.