I can't figure out why this configure test is failing for `pthread_mutexattr_init' but it is passing for 'pthread_mutex_init'. Any ideas?
configure:33721: arm-openwrt-linux-uclibcgnueabi-gcc -o conftest -D_REENTRANT -I/home/apps/openwrt/trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/include -I/home/apps/openwrt/trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/include -I/home/apps/openwrt/trunk/staging_dir/toolchain-arm_v5te_gcc-4.5-linaro_uClibc-0.9.32_eabi/usr/include -I/home/apps/openwrt/trunk/staging_dir/toolchain-arm_v5te_gcc-4.5-linaro_uClibc-0.9.32_eabi/include -L/home/apps/openwrt/trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/lib -L/home/apps/openwrt/trunk/staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/lib -L/home/apps/openwrt/trunk/staging_dir/toolchain-arm_v5te_gcc-4.5-linaro_uClibc-0.9.32_eabi/usr/lib -L/home/apps/openwrt/trunk/staging_dir/toolchain-arm_v5te_gcc-4.5-linaro_uClibc-0.9.32_eabi/lib conftest.c >&5 cc1: note: someone does not honour COPTS correctly, passed 0 times /tmp/ccnirAOF.o: In function `test_mutex_attr': conftest.c:(.text+0xb4): undefined reference to `pthread_mutexattr_init' conftest.c:(.text+0xd4): undefined reference to `pthread_mutexattr_settype' conftest.c:(.text+0x168): undefined reference to `pthread_mutexattr_destroy' collect2: ld returned 1 exit status configure:33721: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "cairo" | #define PACKAGE_TARNAME "cairo" | #define PACKAGE_VERSION "1.10.2" | #define PACKAGE_STRING "cairo 1.10.2" | #define PACKAGE_BUGREPORT "http://bugs.freedesktop.org/enter_bug.cgi?product=cairo" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define _FILE_OFFSET_BITS 64 | #define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) | #define HAVE_INTEL_ATOMIC_PRIMITIVES 1 | #define SIZEOF_VOID_P 4 | #define SIZEOF_INT 4 | #define SIZEOF_LONG 4 | #define SIZEOF_LONG_LONG 8 | #define SIZEOF_SIZE_T 4 | #define HAVE_BUILTIN_RETURN_ADDRESS 1 | #define HAVE_STDINT_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_UINT64_T 1 | #define HAVE_FCNTL_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_UN_H 1 | #define HAVE_ALARM 1 | #define HAVE_SCHED_H 1 | #define HAVE_SCHED_GETAFFINITY 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_MMAP 1 | #define HAVE_TIME_H 1 | #define HAVE_CLOCK_GETTIME 1 | #define HAVE_LIBGEN_H 1 | #define HAVE_BYTESWAP_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_SETJMP_H 1 | #define HAVE_LINK 1 | #define HAVE_CTIME_R 1 | #define HAVE_DRAND48 1 | #define HAVE_FLOCKFILE 1 | #define HAVE_FFS 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_MKDIR 2 | #define HAVE_FORK 1 | #define HAVE_WAITPID 1 | #define HAVE_RAISE 1 | #undef PACKAGE_VERSION | #undef PACKAGE_STRING | #undef PACKAGE_NAME | #undef PACKAGE_TARNAME | #define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD | #define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD | #define PACKAGE_NAME USE_cairo_INSTEAD | #define PACKAGE_TARNAME USE_cairo_INSTEAD | #define HAVE_ZLIB 1 | #define HAVE_DLFCN_H 1 | #define HAVE_FT_BITMAP_SIZE_Y_PPEM 1 | #define HAVE_FCINIT 1 | #define HAVE_FCFINI 1 | #define CAIRO_CAN_TEST_PS_SURFACE 1 | /* end confdefs.h. */ | #ifndef _GNU_SOURCE | #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */ | #endif | #include <pthread.h> | | pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER; | int test_mutex (void) | { | int x = 0; | pthread_mutex_t mutex; | x |= pthread_mutex_init (&mutex, NULL); | x |= pthread_mutex_lock (&mutex); | x |= pthread_mutex_unlock (&mutex); | x |= pthread_mutex_destroy (&mutex); | return 0; | } | | int test_mutex_attr (void) | { | int x = 0; | pthread_mutexattr_t attr; | pthread_mutex_t mutex; | x |= pthread_mutexattr_init (&attr); | x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); | x |= pthread_mutex_init (&mutex, &attr); | x |= pthread_mutex_lock (&mutex); | x |= pthread_mutex_unlock (&mutex); | x |= pthread_mutex_destroy (&mutex); | x |= pthread_mutexattr_destroy (&attr); | return x; | } | int main(int c, char **v) { (void)c; (void)v; return 0; } configure:33787: checking whether cairo's pthread feature could be enabled configure:33791: result: no (can't link with -lpthread or -pthread) -- Jon Smirl jonsm...@gmail.com _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel