mesa: dd599188d2868838541859a76800a8420958d358 (master) $ make check [...] make lp_test_format lp_test_arit lp_test_blend lp_test_conv lp_test_printf make[1]: Entering directory `mesa/src/gallium/drivers/llvmpipe' CXXLD lp_test_format /usr/lib/llvm-3.2/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::string*)': (.text+0x347): undefined reference to `dlopen' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::string*)': (.text+0x3ec): undefined reference to `dlclose' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getPermanentLibrary(char const*, std::string*)': (.text+0x726): undefined reference to `dlerror' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(char const*)': (.text+0xb8b): undefined reference to `dlsym' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(DynamicLibrary.o): In function `llvm::sys::DynamicLibrary::getAddressOfSymbol(char const*)': (.text+0xa6d): undefined reference to `dlsym' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)': (.text+0x6c): undefined reference to `dladdr' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)': (.text+0x18f): undefined reference to `dladdr' ../../auxiliary/.libs/libgallium.a(u_dl.o): In function `util_dl_open': mesa/src/gallium/auxiliary/util/u_dl.c:48: undefined reference to `dlopen' ../../auxiliary/.libs/libgallium.a(u_dl.o): In function `util_dl_get_proc_address': mesa/src/gallium/auxiliary/util/u_dl.c:62: undefined reference to `dlsym' ../../auxiliary/.libs/libgallium.a(u_dl.o): In function `util_dl_close': mesa/src/gallium/auxiliary/util/u_dl.c:75: undefined reference to `dlclose' ../../auxiliary/.libs/libgallium.a(u_dl.o): In function `util_dl_error': mesa/src/gallium/auxiliary/util/u_dl.c:88: undefined reference to `dlerror' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text+0x41): undefined reference to `pthread_mutexattr_init' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text+0x4d): undefined reference to `pthread_mutexattr_settype' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text+0x57): undefined reference to `pthread_mutexattr_setpshared' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::MutexImpl(bool)': (.text+0x6a): undefined reference to `pthread_mutexattr_destroy' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()': (.text+0x108): undefined reference to `pthread_mutex_trylock' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::RWMutexImpl()': (.text+0x2b): undefined reference to `pthread_rwlock_init' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::~RWMutexImpl()': (.text+0x58): undefined reference to `pthread_rwlock_destroy' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_acquire()': (.text+0x78): undefined reference to `pthread_rwlock_rdlock' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::reader_release()': (.text+0x98): undefined reference to `pthread_rwlock_unlock' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_acquire()': (.text+0xb8): undefined reference to `pthread_rwlock_wrlock' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(RWMutex.o): In function `llvm::sys::RWMutexImpl::writer_release()': (.text+0xd8): undefined reference to `pthread_rwlock_unlock' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::~ThreadLocalImpl()': (.text+0x12): undefined reference to `pthread_key_delete' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::ThreadLocalImpl()': (.text+0x6f): undefined reference to `pthread_key_create' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::setInstance(void const*)': (.text+0x84): undefined reference to `pthread_setspecific' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(ThreadLocal.o): In function `llvm::sys::ThreadLocalImpl::getInstance()': (.text+0x94): undefined reference to `pthread_getspecific' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text+0x13a): undefined reference to `pthread_create' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text+0x14a): undefined reference to `pthread_join' /usr/lib/llvm-3.2/lib/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)': (.text+0x178): undefined reference to `pthread_attr_setstacksize' collect2: error: ld returned 1 exit status make[1]: *** [lp_test_format] Error 1 make[1]: Leaving directory `mesa/src/gallium/drivers/llvmpipe' make: *** [check-am] Error 2
autotools build needs to add "-ldl" on all gallium targets.
Created attachment 75266 [details] [review] possible fix Does this patch help?
Comment on attachment 75266 [details] [review] possible fix Review of attachment 75266 [details] [review]: ----------------------------------------------------------------- Tested-by: Vinson Lee <vlee@freedesktop.org>
Fixed by commit c1f2c3a80fa555287fd756832a05587fab8b79bd
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.