Skip site navigation (1) Skip section navigation (2)

Re: Thread safety and libxml2

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Greg Smith <greg(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Thread safety and libxml2
Date: 2010-02-19 00:41:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Peter Eisentraut wrote:
> On ons, 2009-12-30 at 12:55 -0500, Greg Smith wrote:
> > Basically, configure failed on their OpenBSD system because thread 
> > safety is on but the libxml2 wasn't compiled with threaded support:  
> >
> > 
> > Disabling either feature (no --with-libxml or --disable-thread-safety)
> > gives a working build. 
> This could perhaps be fixed by excluding libxml when running the thread
> test.  The thread result is only used in the client libraries and libxml
> is only used in the backend, so those two shouldn't meet each other in
> practice.

The attached patch removes "-lxml2" from the link line of the thread
test program.  Comments?  Can anyone test this fixes the OpenBSD

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

Attachment: /pgpatches/xml2
Description: text/x-diff (1.8 KB)

In response to


pgsql-hackers by date

Next:From: David FetterDate: 2010-02-19 00:44:46
Subject: Re: PGXS: REGRESS_OPTS=--load-language=plpgsql
Previous:From: Peter EisentrautDate: 2010-02-19 00:40:41
Subject: Re: alpha4 timing

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group