Re: [xml] Linker error Compiling off the HEAD
- From: jwert ilstechnology com
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Linker error Compiling off the HEAD
- Date: Wed, 15 Jun 2005 11:46:39 -0400
Sorry for being a little incomplete...
Step1: Checkout Libxml2 from the gnome cvs server.
Step2: ./autogen.sh
Step3: make
And it fails there.
I also ran with ./autogen.sh --with-modules=no --with-zlib=no, and it
correctly didn't use libdl or libz, but still was missing pthreads.
Compiler: (gcc --version)
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-52)
Copyright (C) 2002 Free Software Foundation, Inc.
Platform: (/proc/version)
Linux version 2.4.21-32.0.1.EL (bhcompile bugs build redhat com)
(gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)) #1 Tue May 17
18:01:37 EDT 2005
Its a fully updated Redhat Enterprise3 WS build system.
Could it be a simple problem now when linking the xmllint you are not
explicitly linking with pthread?
(sorry for the double send to you Daniel, but forgot to CC the list).
Thanks,
James Wert Jr.
JWert ILSTechnology com
|---------+---------------------------->
| | Daniel Veillard |
| | <veillard redhat |
| | com> |
| | |
| | 06/15/2005 10:47 |
| | AM |
| | Please respond to|
| | veillard |
|---------+---------------------------->
--------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: jwert ilstechnology com
|
| cc: xml gnome org
|
| Subject: Re: [xml] Linker error Compiling off the HEAD
|
--------------------------------------------------------------------------------------------------------------------------------------------|
On Wed, Jun 15, 2005 at 10:31:49AM -0400, jwert ilstechnology com wrote:
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'
[...]
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?
1/ did you ./autogen.sh ?
2/ if yes what options
3/ what platform ?
4/ what compiler ?
libxml2 now uses weak symbols to link to pthreads only if the final app
is threaded and not force the thread dependancy systematically to the apps.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]