Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T249Z-0000vH-Ke for pgsql-bugs@postgresql.org; Thu, 16 Aug 2012 17:46:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T249X-0003gm-8V for pgsql-bugs@postgresql.org; Thu, 16 Aug 2012 17:46:41 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q7GHkXgT004122; Thu, 16 Aug 2012 13:46:33 -0400 (EDT) From: Tom Lane To: Dave Page cc: Rikard Pavelic , Craig Ringer , pgsql-bugs , Sachin Srivastava , Heikki Linnakangas Subject: Re: BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows In-reply-to: References: <50224DDA.5090900@ringerc.id.au> <502A71F8.9010104@zg.htnet.hr> <502B014D.8020302@ringerc.id.au> <502BA62B.6070408@zg.htnet.hr> <11731.1345127187@sss.pgh.pa.us> Comments: In-reply-to Dave Page message dated "Thu, 16 Aug 2012 15:29:59 +0100" Date: Thu, 16 Aug 2012 13:46:33 -0400 Message-ID: <4121.1345139193@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/133 X-Sequence-Number: 33857 Dave Page writes: > On Thu, Aug 16, 2012 at 3:28 PM, Dave Page wrote: >> On Thu, Aug 16, 2012 at 3:26 PM, Tom Lane wrote: >>> Seems pretty brute-force. Why not just >>> >>> #if LIBXML_VERSION > 20703 >>> #define HAVE_XMLSTRUCTUREDERRORCONTEXT >>> #endif >>> >>> in some suitable place (probably xml.c itself, since I don't think we >>> want to #include xmlversion.h in global headers)? >>> >>> Or actually, maybe we could just unconditionally define >>> HAVE_XMLSTRUCTUREDERRORCONTEXT in pg_config.h.win32. Is anybody >>> likely to still be building PG with ancient libxml on Windows? >> That works for me. Using older libxml's would be a bad idea anyway - >> and there are precompiled binaries available, so it's not hard to get. > Works as in, I'm happy with it. I haven't tested. Though, it'll likely > break some of the old BF animals (temporarily, I hope). On the whole plan A sounds safer (ie look at LIBXML_VERSION in place of using a configure test). I'll work on that tonight or tomorrow, if nobody beats me to it. regards, tom lane