[blfs-support] Problems installing libdrm and mesa in /usr

lux-integ lux-integ at btconnect.com
Sat Nov 17 13:18:01 PST 2012

On Saturday 17 November 2012 18:26:08 Ragnar Thomsen wrote:
> On Saturday 17 November 2012 16:59:08 Ken Moffat wrote:
> > X features:
> >   --x-includes=DIR    X include files are in DIR
> >   --x-libraries=DIR   X library files are in DIR
> > 
> > These options are only used when the X libraries cannot be found by the
> > pkg-config utility.
> > 
> >  So, I recommend you look for something like that in the current
> > 
> > version.
> Those options are no longer available for mesa-9.0.1. I managed to fix the
> error though, by editing a makefile adding -I/usr/X11/include.
> After this I ran into a different error when running make install, where
> the linker couldn't find three libraries: X11, Xext and Xfixes.
> I fixed this error by adding -L/usr/X11/lib to a relevant makefile.
> After this I got mesa built and installed. But compositing was not working,
> which I tracked down to the xorg-server not finding the dri drivers which
> are now in /usr/lib/dri. By re-installing the xorg-server, it detects the
> right location and compositing works.
> So it seems (at least on my system) that mesa-9.0.1 doesn't build when
> installing in /usr and when X is installed in /usr/X11. Did any of you get
> mesa 9 to build properly using the current instructions (when X is
> installed in /usr/X11)?If not, the instructions for mesa need to be
> modified.

I Dont know if this is of help:-  A while go I had  go with Mesa-9.0 (  more 
or  less the day it was released )  Though I did not have the headers problem 
initially reported  in this email trail for   9.0.1  I consider it  a partial 

I did this beforehand:
export CPPFLAGS="-I${XORG_PREFIX}/include -I/opt/llvm/include"

When I had  'radeonsi'  in the configure options like so:-
compilation failed everytime:-

lp_test_main.c:374:17: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
g++ -L/opt/llvm/lib -L/usr/X11R7.7/lib -L/usr/local/lib   -L/usr/lib  -ldl -
lpthread lp_test_format.o lp_test_main.o -o lp_test_format -Wl,--start-group  
-L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.1svn -L/usr/X11R7.7/lib -
lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm   -
L/usr/X11R7.7/lib -ldrm   -lm -lpthread -ldl -Wl,--end-group
/usr/bin/ld: cannot find -lLLVM-3.1svn
collect2: ld returned 1 exit status
make[4]: *** [lp_test_format] Error 1
make[4]: Leaving directory 

I searched  my installation of llvm and libLLVM-3.1svn.so( or a) is absent.

Without  radeonsi  in  the    ./configure  options for example:-
--with-gallium-drivers="nouveau,r300,r600,svga,swrast" \
--with-dri-drivers=radeon \

compilation was successful ending like so:-

/bin/sh ../../../../bin/mklib -o xatracker -linker g++ -ldflags '-
L/usr/X11R7.7/lib -L/usr/local/lib  -L/opt/llvm/lib  -L/usr/lib  -ldl -
lpthread' \
	-major 1 -minor 0 -patch 0 \
	-exports xa_symbols \
	 -install ../../../../lib/gallium \
	vmw_target.o ../../../../src/gallium/state_trackers/xa/libxatracker.o 
../../../../src/gallium/auxiliary/libgallium.a -lLLVMMCJIT -lLLVMBitWriter -
lLLVMX86AsmParser -lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMSelectionDAG -
lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter 
-lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen 
-lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -
lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
mklib: Making Linux shared library:  libxatracker.so.1.0.0
mklib: Installing libxatracker.so.1.0.0 libxatracker.so.1 libxatracker.so in 

If   this  'radeonsi' problem  is fixed  in 9.0X reports will be gratefully 

(Oh My host runs X8664 cblfs non-multilib64bit linux  on a  3-coreAMD64 cpu )


More information about the blfs-support mailing list