Bug 29033 - can't build dri drivers with just GLES
Summary: can't build dri drivers with just GLES
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
: 29130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-12 19:44 UTC by nobled
Modified: 2013-02-01 13:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description nobled 2010-07-12 19:44:59 UTC
Building with `./configure --enable-gles-overlay --disable-opengl' fails when it tries to link the radeon dri driver. It looks like the missing references are in src/mesa/main/api_exec.c, and based on the comment in the code it's a known problem?

---
/bin/bash ../../../../../bin/mklib -o radeon_dri.so.tmp -noprefix -linker 'gcc' -ldflags '' \
		../common/utils.o ../common/vblank.o ../common/dri_util.o ../common/xmlconfig.o ../../common/driverfuncs.o ../common/texmem.o ../common/drirenderbuffer.o ../common/dri_metaops.o radeon_context.o radeon_ioctl.o radeon_screen.o radeon_state.o radeon_state_init.o radeon_tex.o radeon_texstate.o radeon_tcl.o radeon_swtcl.o radeon_maos.o radeon_sanity.o radeon_blit.o radeon_bo_legacy.o radeon_common_context.o radeon_common.o radeon_cs_legacy.o radeon_dma.o radeon_debug.o radeon_fbo.o radeon_lock.o radeon_mipmap_tree.o radeon_pixel_read.o radeon_queryobj.o radeon_span.o radeon_texture.o radeon_tex_copy.o radeon_tex_getimage.o radeon_tile.o   ../../../../../src/mesa/libmesa.a   -lselinux -ldrm   -lexpat -lm -lpthread -ldl -ldrm_radeon -ldrm  
mklib: Making Linux shared library:  radeon_dri.so.tmp
gcc -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DMESA_SELINUX -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2 -DHAVE_LIBUDEV -DHAVE_LIBDRM_RADEON=1 -I/usr/include/libdrm   -DFEATURE_GL=0 -o radeon_dri.so.test ../../../../../src/mesa/drivers/dri/common/dri_test.o radeon_dri.so.tmp  -lselinux -ldrm   -lexpat -lm -lpthread -ldl -ldrm_radeon -ldrm  
radeon_dri.so.tmp: undefined reference to `driDispatchRemapTable'
radeon_dri.so.tmp: undefined reference to `_mesa_map_static_functions'
collect2: ld returned 1 exit status
make[6]: *** [radeon_dri.so] Error 1

---
/* This is shared across all APIs but We define this here since
 * desktop GL has the biggest remap table. */
int driDispatchRemapTable[driDispatchRemapTable_size];

/**
 * Map the functions which are already static.
 *
 * When a extension function are incorporated into the ABI, the
 * extension suffix is usually stripped.  Mapping such functions
 * makes sure the alternative names are available.
 *
 * Note that functions mapped by _mesa_init_remap_table() are
 * excluded.
 */
void
_mesa_map_static_functions(void)
{
   /* Remap static functions which have alternative names and are in the ABI.
    * This is to be on the safe side.  glapi should have defined those names.
    */
   _mesa_map_function_array(MESA_alt_functions);
}
Comment 1 Marek Olšák 2011-03-02 07:15:18 UTC
Is this still an issue with current Mesa git?
Comment 2 Anuj Phogat 2011-11-02 15:35:52 UTC
It builds fine on current Mesa git.
OpenGL version string: 1.4 (2.1 Mesa 7.11)
build string: "./configure --enable-gles2 --enable-gles1 --disable-opengl --enable-debug"
Creates following libs: libEGL.so  libEGL.so.1  libEGL.so.1.0  libglapi.so  libglapi.so.0  libglapi.so.0.0.0  libGLESv1_CM.so  libGLESv1_CM.so.1  libGLESv1_CM.so.1.1.0  libGLESv2.so  libGLESv2.so.2  libGLESv2.so.2.0.0
Comment 3 Andreas Boll 2013-02-01 13:02:26 UTC
*** Bug 29130 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Boll 2013-02-01 13:09:28 UTC
./configure --enable-gles2 --enable-gles1 --disable-opengl
works for me on master and 9.1 branch.

Although on 9.0 it doesn't work.
I've sent a patch to the list to not allow this configuration on 9.0
http://lists.freedesktop.org/archives/mesa-dev/2013-February/033909.html

Please reopen if the issue still persists.


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.