atom feed6 messages in org.freebsd.freebsd-currentRe: New Xorg: graphics/dri: fails to ...
FromSent OnAttachments
O. HartmannApr 28, 2012 3:05 am 
Volodymyr KostyrkoApr 28, 2012 4:11 am 
Dimitry AndricApr 28, 2012 9:52 am 
O. HartmannApr 29, 2012 1:36 am 
O. HartmannApr 29, 2012 11:13 pm 
Volodymyr KostyrkoMay 28, 2012 7:13 am 
Subject:Re: New Xorg: graphics/dri: fails to compile with CLANG: nouveau_array.c:49:16: error: illegal storage class on function, *extract_u = EXTRACT(char, unsigned, 1);
From:Volodymyr Kostyrko (c.kw@gmail.com)
Date:May 28, 2012 7:13:08 am
List:org.freebsd.freebsd-current

Dimitry Andric wrote:

On 2012-04-28 13:12, Volodymyr Kostyrko wrote:

O. Hartmann wrote:

Is there in "official" way to get this fixed with CLANG? I see that files folder in graphics/dri is missing, so none of the fixes for both the faulty source files

I think the patch should go to graphics/libGL.

cd /usr/ports/graphics/libGL/files fetch -rao - 'http://cgit.freedesktop.org/mesa/mesa/patch/?id=4aa1ac5fe94b5696095229ee3568bf4fa7cfed95' | sed -e 's|^--- a/src|--- src|' -e 's|^+++ b/src|+++ src|'> patch-nouveau

Should do.

Please try this patch (lightly tested):

http://www.andric.com/freebsd/clang/clangports-graphics-libGL-3.diff

Works for me. Could this one be commited? It looks better then my quick hack.