Mesa cvs compilation failure...

charlie charlie.collin at
Fri Dec 31 15:40:46 PST 2004

hi everyone,

LFS : 6.0

i was i little upset not getting dri with my video card after installing 
xorg 6.8.1 according to BLFS SVN instructions, so as advised, i've had a 
little look at and followed their instructions, 
which is to say, installing:
Xorg cvs
Mesa cvs
DRM cvs

well, i didn't go very far!!!
step 1: installing Xorg  cvs = OK
(a mix of blfs and dri.sf instructions to build)

step 2: installing Mesa cvs = failure
compilation ended with the following message:

make[6]: Entering directory `/usr/src/Mesa/src/mesa/drivers/dri/dri_client'
gcc -c -I../../../../../include -I../../../../../../drm/shared 
-I../../../../../include/GL/int ernal -I../../../../../src/mesa 
-I../../../../../src/mesa/main -I../../../../../src/mesa/glapi 
-Iimports -Wall -O -g -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -std=c99  -ff ast-math -D_POSIX_SOURCE 
-o xf86drm.o
Dans le fichier inclus à partir de ../../../../../../drm/shared/drm.h:66,
           à partir de xf86drm.c:72:
/usr/include/linux/config.h:1:2: #error "Compilation aborted. Please 
read the FAQ for linux-li bc-headers package."
/usr/include/linux/config.h:2:2: #error "(can be found at nux-libc-headers/doc/)"
make[6]: *** [xf86drm.o] Erreur 1
make[6]: Leaving directory `/usr/src/Mesa/src/mesa/drivers/dri/dri_client'
make[5]: *** [subdirs] Erreur 1
make[5]: Leaving directory `/usr/src/Mesa/src/mesa/drivers/dri'
make[4]: *** [drivers-dri] Erreur 2
make[4]: Leaving directory `/usr/src/Mesa/src/mesa'
make[3]: *** [default] Erreur 2
make[3]: Leaving directory `/usr/src/Mesa/src/mesa'
make[2]: *** [subdirs] Erreur 1
make[2]: Leaving directory `/usr/src/Mesa/src'
make[1]: *** [default] Erreur 1
make[1]: Leaving directory `/usr/src/Mesa'
make: *** [linux-dri-x86] Erreur 2

have mercy of the french output, i set the locales for my native 
language ;-)
This is the same issue as compiling xorg without the:

sed -i -e "s@#include <linux/config.h>@/* & */@" \
     `grep -lr linux/config.h *`

However, this very trick doesn't work with Mesa, as no inclusion refers 
to linux/config.h, only a local "config.h"
Maybe it would be good to add mesa to blfs, as i guess lots of people 
install it, at least those with a unichrome onboard display device ;-)


and, well, HAPPY NEW YEAR

More information about the blfs-support mailing list