[Mesa-dev] Build fail since Make sure libGL.so links with libglsl

Brian Paul brianp at vmware.com
Tue Jan 31 12:15:36 PST 2012


On 01/31/2012 01:12 PM, Andy Furniss wrote:
> Maybe it's just me having a strange/old LFS system  - but I am getting
> build errors since
>
> Make sure libGL.so links with libglsl
> f53e7e981ef35ab64a084c8da6c67bd2d230fe33
>
> Perhaps my build options are to blame -
>
> CPPFLAGS="-I/home/andy/Src/Xorg-git/modular/include"
> LDFLAGS="-L/home/andy/Src/Xorg-git/modular/lib" ./autogen.sh
> --prefix=/home/andy/Src/Xorg-git/modular --enable-debug --disable-egl
> --enable-texture-float --enable-gallium-g3dvl --disable-gallium-llvm
> --with-gallium-drivers=r600,swrast --with-dri-drivers=swrast
>
>
>
> /bin/sh ../../../../bin/mklib -o r600_dri.so.tmp -noprefix -linker
> 'g++' -ldflags '-L/home/andy/Src/Xorg-git/modular/lib' \
> target.o ../../../../src/mesa/drivers/dri/common/utils.o
> ../../../../src/mesa/drivers/dri/common/dri_util.o
> ../../../../src/mesa/drivers/dri/common/xmlconfig.o
> ../../../../src/gallium/drivers/r600/libr600.a
> ../../../../src/gallium/state_trackers/dri/drm/libdridrm.a
> ../../../../src/gallium/winsys/radeon/drm/libradeonwinsys.a
> ../../../../src/gallium/drivers/trace/libtrace.a
> ../../../../src/gallium/drivers/rbug/librbug.a
> ../../../../src/gallium/drivers/noop/libnoop.a \
> -Wl,--start-group ../../../../src/mesa/libmesagallium.a
> ../../../../src/gallium/auxiliary/libgallium.a -Wl,--end-group \
> -L../../../../lib -Wl,-R/home/andy/Src/Xorg-git/modular/lib/dri
> -ldricore -lglsl -L/home/andy/Src/Xorg-git/modular/lib -ldrm -lexpat
> -lm -lpthread -ldl
> mklib: Making Linux shared library: r600_dri.so.tmp
> g++ -I/home/andy/Src/Xorg-git/modular/include -g -O2 -Wall -std=c99
> -Werror=implicit-function-declaration -Werror=missing-prototypes
> -fno-strict-aliasing -fno-builtin-memcmp -g -g -O2 -fPIC -DUSE_X86_ASM
> -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS
> -DDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB
> -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING
> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
> -fvisibility=hidden -o r600_dri.so.test
> ../../../../src/mesa/drivers/dri/common/dri_test.o r600_dri.so.tmp
> -L../../../../lib -Wl,-R/home/andy/Src/Xorg-git/modular/lib/dri
> -ldricore -lglsl -L/home/andy/Src/Xorg-git/modular/lib -ldrm -lexpat
> -lm -lpthread -ldl -L/home/andy/Src/Xorg-git/modular/lib;
> r600_dri.so.tmp: undefined reference to `st_gl_api_create'
> collect2: ld returned 1 exit status
> make[3]: *** [r600_dri.so] Error 1

I've been running into weird build problems all day too (I'm seeing 
the same problem with softpipe ATM using very simple configure options).

It seems that make -j8 is flakey too.  I've had better luck omitting 
-j.  That definitely needs to be fixed too.

-Brian



More information about the mesa-dev mailing list