Bug 71512

Summary: dlopen.h:54: undefined reference to `dlopen'
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Drivers/DRI/i965Assignee: Matt Turner <mattst88>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2013-11-11 22:31:33 UTC
mesa: 23afe71f444067cad927273728529ff15ba394df (master)

$ ./autogen.sh --disable-dri3 --disable-xvmc --with-dri-drivers=i965 --with-gallium-drivers=
$ make check
[...]
  CXXLD    test_eu_compact
test_vec4_register_coalesce.cpp: In member function ‘virtual brw::vec4_instruction* register_coalesce_vec4_visitor::emit_urb_write_opcode(bool)’:
test_vec4_register_coalesce.cpp:91:4: warning: no return statement in function returning non-void [-Wreturn-type]
    }
    ^
../../../.libs/libmesa.a(texcompress_s3tc.o): In function `_mesa_dlopen':
src/mesa/main/dlopen.h:54: undefined reference to `dlopen'
../../../.libs/libmesa.a(texcompress_s3tc.o): In function `_mesa_dlsym':
src/mesa/main/dlopen.h:84: undefined reference to `dlsym'
src/mesa/main/dlopen.h:84: undefined reference to `dlsym'
src/mesa/main/dlopen.h:84: undefined reference to `dlsym'
src/mesa/main/dlopen.h:84: undefined reference to `dlsym'
src/mesa/main/dlopen.h:84: undefined reference to `dlsym'
../../../.libs/libmesa.a(texcompress_s3tc.o): In function `_mesa_dlclose':
src/mesa/main/dlopen.h:102: undefined reference to `dlclose'
Comment 1 Matt Turner 2013-11-11 23:11:12 UTC
Patch on the list.
Comment 2 Eric Anholt 2013-11-22 18:23:16 UTC
commit 1f9092958d365c94af825c3b3b6664688c27b5a1
Author: Matt Turner <mattst88@gmail.com>
Date:   Mon Nov 18 15:19:15 2013 -0800

    i965: Link -ldl after libmesa.la

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.