Posting this on a CLFS system using lynx may be a bit weird for me, but this is pretty much the only way for me to get the compilation error I got without chrooting from another system.
Here's the error message I got when attempting to compile MesaLib:
make: Entering directory `/sources/Mesa-7.9-64/src/mesa'
python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES2.0 > main/api_exec_es2.c
Traceback (most recent call last):
File "main/es_generator.py", line 26, in <module>
import APIspecutil as apiutil
File "/sources/Mesa-7.9-64/src/mesa/main/APIspecutil.py", line 28, in <module>
ImportError: No module named libxml2
make: *** No rule to make target `main/api_exec_es2.c', needed by `depend'. Stop.
make: Leaving directory `/sources/Mesa-7.9-64/src/mesa'
make: *** [subdirs] Error 1
make: Leaving directory `/sources/Mesa-7.9-64/src'
make: *** [default] Error 1
So the problem seems to come from the libxml2 module not being defined on python. I do have libxml2 installed on my system, so how would I fix this problem?