Mesa cvs compilation failure...

charlie charlie.collin at free.fr
Fri Dec 31 15:50:51 PST 2004


charlie wrote:
> hi everyone,
> 
> LFS : 6.0
> BLFS : SVN
> 
> 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 dri.sourceforge.net 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 -D_POSIX_C_SOURCE=199309L 
> -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DDRI_NEW_INTERFACE_ONLY 
> -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DGLX_DIRECT_RENDERING  -D_POSI 
> X_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE 
> -D_GNU_SOURCE -DDRI_NEW_INTERF ACE_ONLY -DPTHREADS 
> -DUSE_EXTERNAL_DXTN_LIB=1  -DGLX_DIRECT_RENDERING  xf86drm.c -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 
> http://ep09.pld-linux.org/~mmazur/li 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 *`
> 
> trick.
> 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 ;-)
> 
> regards.
> CH COLLIN
> 
> and, well, HAPPY NEW YEAR

HaHa, i got it !! ;-)

so here is the solution:
apply the

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

command in the drm cvs directory, as mesa cvs uses these files too.
compilation completed without a problem.
Hope this will help users who faced the same issue.

regards
CH COLLIN



More information about the blfs-support mailing list