xrandr 1.2.2 + clone

Daniel Murungi dmurungi at dicts.mak.ac.ug
Fri Apr 11 06:36:25 PDT 2008


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.



More information about the hlfs-dev mailing list