[Mesa-dev] [Bug 29130] New: Unable to link swrast_dri.so

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 17 08:30:08 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29130

           Summary: Unable to link swrast_dri.so
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: llandwerlin at gmail.com


Created an attachment (id=37149)
 View: https://bugs.freedesktop.org/attachment.cgi?id=37149
 Review: https://bugs.freedesktop.org/review?bug=29130&attachment=37149

Avoid mapping static GL functions in dri drivers

Using the following configuration :

--disable-glu --disable-glw --disable-glut --disable-opengl --enable-gles2
--enable-egl --with-driver=dri --enable-xcb --enable-glx-tls
--with-dri-drivers=swrast --with-state-trackers=es,egl --with-e\
gl-platforms=x11 --disable-gallium-svga --disable-gallium-i915
--disable-gallium-i965 --disable-gallium-radeon --disable-gallium-nouveau
--enable-gallium-swrast --enable-gallium-llvm --enable-debug

the current git master is unable to link swrast_dri.so because of missing
_mesa_map_static_functions symbol. The problem is in
src/mesa/drivers/dri/common/utils.c which tries to map the static GL functions.
If I undertand correctly, this is already done by the API frontend, so there is
no need to do it at this place.

gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mapi -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/opt/pace-xorg/include/libdrm    -g -O2 -Wall -Wmissing-prototypes -std=c99
-ffast-math -fvisibility=hidden -fno-strict-aliasing -g  -fPIC 
-DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN
-DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2
-DFEATURE_GL=0 -DFEATURE_ES2=1 -D__NOT_HAVE_DRM_H
../../../../../src/mesa/drivers/dri/common/dri_test.c -o
../../../../../src/mesa/drivers/dri/common/dri_test.o
/bin/sh ../../../../../bin/mklib -o swrast_dri.so.tmp -noprefix -linker 'gcc'
-ldflags '-L/opt/pace-xorg/lib64 ' \
        ../../common/driverfuncs.o ../common/utils.o ../common/drisw_util.o
swrast.o swrast_span.o   ../../../../../src/mesa/libmesa.a   
-L/opt/pace-xorg/lib64 -ldrm   -lexpat -lm -lpthread -ldl
mklib: Making Linux shared library:  swrast_dri.so.tmp
gcc -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden
-fno-strict-aliasing -g  -fPIC  -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS
-DDEBUG -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2 -DFEATURE_GL=0
-DFEATURE_ES2=1 -o swrast_dri.so.test
../../../../../src/mesa/drivers/dri/common/dri_test.o swrast_dri.so.tmp  
-L/opt/pace-xorg/lib64 -ldrm   -lexpat -lm -lpthread -ldl
swrast_dri.so.tmp: undefined reference to `_mesa_map_static_functions'
collect2: ld returned 1 exit status
make[6]: *** [swrast_dri.so] Erreur 1
make[6]: quittant le répertoire «
/home/djdeath/tmp/pace-xorg/mesa/src/mesa/drivers/dri/swrast »
make[5]: *** [lib] Erreur 2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list