xrandr 1.2.2 + clone

Kevin Day thekevinday at gmail.com
Fri Apr 11 11:58:10 PDT 2008


On Fri, Apr 11, 2008 at 8:36 AM, Daniel Murungi
<dmurungi at dicts.mak.ac.ug> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xrandr-1.2.2-unique_clone-1.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20080411/8cad318f/attachment.bin>


More information about the hlfs-dev mailing list