Im habitually compiling mesa for the SYS distro
mesa is one of the progs of lowest programming quality, normally one have to patch 20-50 subroutines
mesa 7.4.1 dont compile at all. Or better, dont produce .so 's by missing dylib 's
The most easy case, libGLw, compiles without errors but the .so isnt produced.
make -> /bin/sh … -id /usr /lib/libGLw.1.dylib …
mklib: Making Linux shared Library: libGLw.so.1.0.0
gcc /lib/libGLw.1.dylib: do such file or directory
The same happens with all other relevant mesa libs. Only libglut.so.3.7.1 is produced, after plenty patching.
One problem of glcontextmodus.c , clientattrib.c , /common/utils.c is that in GLcontextModes are no members bindToTexturl.Rgb , Rgba , Texture, Targets and a next one, one have to delete these lines. In some makefiles one have to write expressively the lib install dir because automatically is produced something like " what gives error messages from the compiler.
Next problem are thousands of uninitialized variables. The make files should have as default that they are initialized with 0.