mesa is mostly okay with uclibc instead of glibc, but 8.0.3 does miss a few checks that fall back on glibc-ism and cause compile time failures. The following patch fixes this issue. This is an upstream bug and I will submit the patch there. Reproducible: Always
Created attachment 317412 [details, diff] Fix compile time errors against uclibc This patch has been in use for a while on my amd64 uclibc desktop. See: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=tree;f=media-libs/mesa;h=1103d0aca0d32febab59e506fe120f9f2e8bac0f;hb=a6d73d2394456081bb60c1a3cf7008f44f5cd0b2
Upstream bug submitted: https://bugs.freedesktop.org/show_bug.cgi?id=51782
Created attachment 319108 [details, diff] Fix compile time errors against uclibc mattst88 noticed a problem with the prevous patch. This one is fixed. It applies against mesa-8.0.4
Fixed in mesa-8.1_rc1_pre20120724 (still p.masked until bug 427952 and bug 427956 are resolved).