gcc 3.3 (at least) doesn't support visibility attributes, so _X_EXPORT expands to nothing. This breaks the awk script embedded in hw/xfree86/loader/sdksyms.sh that expects that an extern function declaration to be in the form "extern __attribute__(___something___) type ..."
With the attached patch sdksyms.sh works with gcc 3.3 too. -- Matthieu Herrb
diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh index be0b0ee..665adbe 100755 --- a/hw/xfree86/loader/sdksyms.sh +++ b/hw/xfree86/loader/sdksyms.sh @@ -355,7 +355,7 @@ BEGIN { /^extern[ ]/ { if (sdk) { - n = 3; + n = 2; # skip attribute, if any while ($n ~ /^(__attribute__|__global)/ ||
_______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg