Re: Thread safety and libxml2

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Greg Smith <greg@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-02-19T00:41:45Z
Lists: pgsql-hackers

Attachments

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:  
> > http://xmlsoft.org/threads.html
> > 
> > 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
problem?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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