Bug 94489

Summary: osmesa gallium build with scons on linux contains no OSMesa* and GL* symbols
Product: Mesa Reporter: Andreas Fänger <a.faenger>
Component: Drivers/OSMesaAssignee: mesa-dev
Status: RESOLVED MOVED QA Contact: mesa-dev
Severity: blocker    
Priority: medium    
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Andreas Fänger 2016-03-11 11:25:45 UTC
When osmesa is build on linux using scons, then it contains none of the OSMesa specific symbols nor any of the gl* symbols. So it's basically broken.

mesa-git # scons build=release
mesa-git # nm build/linux-x86_64/gallium/targets/osmesa/libosmesa.so | grep OSMesaCreateContext
(no result)
mesa-git # nm lib/gallium/libOSMesa.so | grep glCreate
(no result)


However, when osmesa is build with make, then it contains all of the symbols:


mesa-git # ./configure --enable-gallium-osmesa --with-gallium-drivers=swrast --disable-llvm-shared-libs --disable-driglx-direct --disable-dri --disable-glx --disable-egl
mesa-git # make
mesa-git # nm lib/gallium/libOSMesa.so | grep OSMesaCreateContext
00000000004a1a40 T OSMesaCreateContext
00000000004a1610 t OSMesaCreateContextAttribs
00000000004a19e0 T OSMesaCreateContextExt

mesa-git # nm lib/gallium/libOSMesa.so | grep glCreate
00000000004ad370 T glCreateProgram
00000000004b2620 T glCreateProgramObjectARB
00000000004ad3a0 T glCreateShader
00000000004b2650 T glCreateShaderObjectARB


Just for reference, the classic osmesa (swrast) version build with scons also contains all symbols (even more (!) than gallium osmesa glCreateShaderProgramEXT/glCreateTextures):


mesa-10.5.9 # scons build=release openmp=true osmesa
mesa-10.5.9 # nm build/linux-x86_64/mesa/drivers/osmesa/libosmesa.so | grep OSMesaCreateContext
000000000005a740 T OSMesaCreateContext
000000000005a320 T OSMesaCreateContextExt

mesa-10.5.9 # nm build/linux-x86_64/mesa/drivers/osmesa/libosmesa.so | grep glCreate
00000000000637e0 T glCreateProgram
0000000000064fc0 T glCreateProgramObjectARB
0000000000063800 T glCreateShader
0000000000064fe0 T glCreateShaderObjectARB
0000000000069150 T glCreateShaderProgramEXT
0000000000066de0 T glCreateTextures
Comment 1 GitLab Migration User 2019-09-18 20:12:36 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/878.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.