xrandr 1.2.2 + clone

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

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 
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 
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