On Wed, Jun 15, 2005 at 11:46:39AM -0400, [EMAIL PROTECTED] wrote:
>
> Sorry for being a little incomplete...
>
> Step1: Checkout Libxml2 from the gnome cvs server.
> Step2: ./autogen.sh
> Step3: make
>
> And it fails there.
[...]
> Its a fully updated Redhat Enterprise3 WS build system.
my server is still RHEL3 and I can reproduce this. I'm puzzled because
I was sure I tested the weak symbol support on RHEL3 before pushing 2.6.19
maybe I updated the compiler on the other RHEL3 box :-\
> Could it be a simple problem now when linking the xmllint you are not
> explicitly linking with pthread?
Yes, the problem is the following in threads.c:
#ifdef __GNUC__
#ifdef linux
#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
and gcc being 3.2.3 it doesn't pass there while configure.in does
*linux*)
if test "${CC}" = "gcc" -a "${THREAD_LIBS}" = "-lpthread" ; then
THREAD_LIBS=""
BASE_THREAD_LIBS="-lpthread"
fi
;;
independantly of the version of gcc ...
There is 2 options:
- remove the version test in thread.c -> it will break somewhere
- add a test in configure.in matching the version with the one in
thread.c -> sounds the right thing to do
relates to http://bugzilla.gnome.org/show_bug.cgi?id=306907
though it's for gamin and not libxml2 it's the same problem, and I don't
have a complete solution. Probably need a compiler portability expert input
to get it right...
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml