[xml] Linker error Compiling off the HEAD



Hello List,

When compiling off the head, I am getting errors during the make:

./.libs/libxml2.so: undefined reference to `pthread_key_create'
./.libs/libxml2.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/home/wertj/source/libxml2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wertj/source/libxml2'
make: *** [all] Error 2

ldd of libxml2.so from HEAD (./configure; make):

libdl.so.2 => /lib/libdl.so.2 (0x00c25000)
libz.so.1 => /usr/lib/libz.so.1 (0x00962000)
libm.so.6 => /lib/tls/libm.so.6 (0x00a37000)
libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00f85000)

ldd of libxml2.so from HEAD (./configure --with-modules=no --with-zlib=no):

libm.so.6 => /lib/tls/libm.so.6 (0x00bfb000)
libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00ee4000)

ldd of libxml2.so from libxml2-2.6.19 tarball (./configure; make):

libdl.so.2 => /lib/libdl.so.2 (0x003e7000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00c8a000)
libz.so.1 => /usr/lib/libz.so.1 (0x005e6000)
libm.so.6 => /lib/tls/libm.so.6 (0x00e8a000)
libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00bd1000)

ldd of libxml2.so from libxml2-2.6.19 tarball (./configure
--with-modules=no --with-zlib=no; make):

libpthread.so.0 => /lib/tls/libpthread.so.0 (0x003f3000)
libm.so.6 => /lib/tls/libm.so.6 (0x008ae000)
libc.so.6 => /lib/tls/libc.so.6 (0x001e7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x001d1000)

My end goal is to build libxml2 without modules or zlib (as you can see
above), it appears the 2.6.19 build is healthy, but the head lost its link
to the pthread library and is having linking problems.  I tried to look for
differences, but configure scripts are still black magic to me.

Any ideas?

Thanks,

James Wert Jr.
JWert ILSTechnology com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]