Kees Cook wrote:
On Wed, Jan 19, 2005 at 01:34:53PM -0800, Jeremy C. Reed wrote:
Did you remove the -lpthread also?
Yup, it looks like this now:
gc_lib="" # used to have -lpthread and -ldl in it... doesn't need it now? AC_CHECK_LIB(gc, GC_malloc, [AC_CHECK_HEADERS([gc.h gc/gc.h], [gc_ok=yes; break], [gc_ok=no])], [gc_ok=no], [$gc_lib]) if test "x$gc_ok" != "xyes"; then AC_MSG_ERROR([libgc (the Boehm Conservative Collector), is needed to compile inkscape]) fi LIBS="-lgc $gc_libs $LIBS"
Apparently it did need -lpthread on my FC3 box. I got a link error like this:
configure:21620: checking for GC_malloc in -lgc configure:21650: g++ -o conftest -g -O2 conftest.cc -lgc >&5 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libgc.a(malloc.o)(.text+0x2ef): In function `GC_generic_malloc': /home/rjamison/xmingw/gc6.3/malloc.c:191: undefined reference to `pthread_mutex_trylock' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libgc.a(malloc.o)(.text+0x356):/home/rjamison/xmingw/gc6.3/malloc.c:203: undefined reference to `pthread_mutex_trylock' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libgc.a(malloc.o)(.text+0x4a1): In function `GC_malloc_atomic': /home/rjamison/xmingw/gc6.3/malloc.c:259: undefined reference to `pthread_mutex_trylock' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libgc.a(malloc.o)(.text+0x565): In function `GC_malloc':
....about two more pages of this fascinating stuff...
I rebuilt my gc6.4 source with:
./configure --enable-static --disable-shared --disable-threads
...and now everything is happy again! ./configure now says this:
checking for GC_malloc in -lgc... yes checking gc.h usability... yes checking gc.h presence... yes checking for gc.h... yes
Bob