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

Andy Furniss andyqos at ukfsn.org
Tue Jan 31 12:12:27 PST 2012


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


More information about the mesa-dev mailing list