20 Jan
2005
20 Jan
'05
3:46 p.m.
On Thu, 20 Jan 2005 08:27:36 -0600, Bob Jamison wrote:
Apparently it did need -lpthread on my FC3 box. I got a link error like this:
There's another issue here too, somehow the GC build system isn't putting a DT_NEEDED entry for libdl in the generated library:
mike@...646... lib $ cat a.c extern void *GC_malloc();
int main() { void *p = GC_malloc(); }
mike@...646... lib $ gcc -o a -L. -lgc a.c ./libgc.so: undefined reference to `dlopen' collect2: ld returned 1 exit status
mike@...646... lib $ objdump -x libgc.so|grep NEEDED NEEDED libpthread.so.0 NEEDED libgcc_s.so.1 NEEDED libc.so.6
I guess this is a GC bug, though quite how they managed to get this situation is beyond me ... libpng has the same problem :(
thanks -mike