Re: [xml] Linker error Compiling off the HEAD

Sorry for being a little incomplete...

Step1: Checkout Libxml2 from the gnome cvs server.
Step2: ./
Step3: make

And it fails there.

I also ran with ./ --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).


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/ undefined reference to `pthread_key_create'
./.libs/ 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
to the pthread library and is having linking problems.  I tried to look
differences, but configure scripts are still black magic to me.

Any ideas?

  1/ did you ./ ?
  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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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