On Fri, Apr 11, 2008 at 8:36 AM, Daniel Murungi
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> I get the following errors while building the xrandr package:
>
> make[1]: Entering directory `/sources/xorg-apps/xrandr-1.2.2'
> if gcc -nonow -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -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
> xrandr.c:192: error: 'clone' redeclared as different kind of symbol
> /usr/include/bits/sched.h:75: error: previous declaration of 'clone' was
> here
> make[1]: *** [xrandr.o] Error 1
> make[1]: Leaving directory `/sources/xorg-apps/xrandr-1.2.2'
> make: *** [all] Error 2
>
> I googled abit and landed on the xrandr-uclibc.patch gentoo patch
> (http://forums.gentoo.org/viewtopic-p-4999973.html?sid=5143a9029f58f58fe79d8
> e5d8498c899) . This patch references 'kclone' instead of 'clone'. I have
> replaced all occurances of 'clone' in xrandr.c with 'kclone' and the package
> builds fine. Just wondering if anyone has a better solution.
They have their own variable called clone which conflicts with the
libc's i think.
Attached is my working patch.
--
Kevin Day
--- xrandr-1.2.1/xrandr.c.orig 2007-06-24 17:12:35 +0000
+++ xrandr-1.2.1/xrandr.c 2007-06-24 17:16:58 +0000
@@ -173,7 +173,7 @@
#if HAS_RANDR_1_2
typedef enum _policy {
- clone, extend
+ xrandr_clone, extend
} policy_t;
typedef enum _relation {
@@ -1447,7 +1447,7 @@
int ret = 0;
#if HAS_RANDR_1_2
output_t *output = NULL;
- policy_t policy = clone;
+ policy_t policy = xrandr_clone;
Bool setit_1_2 = False;
Bool query_1_2 = False;
Bool modeit = False;
@@ -1708,7 +1708,7 @@
continue;
}
if (!strcmp ("--clone", argv[i])) {
- policy = clone;
+ policy = xrandr_clone;
setit_1_2 = True;
continue;
}
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page