Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T211t-00035p-Cv for pgsql-bugs@postgresql.org; Thu, 16 Aug 2012 14:26:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T211r-0008K9-45 for pgsql-bugs@postgresql.org; Thu, 16 Aug 2012 14:26:32 +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 q7GEQRpF011732; Thu, 16 Aug 2012 10:26:27 -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> Comments: In-reply-to Dave Page message dated "Thu, 16 Aug 2012 14:42:17 +0100" Date: Thu, 16 Aug 2012 10:26:27 -0400 Message-ID: <11731.1345127187@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/121 X-Sequence-Number: 33845 Dave Page writes: > So Sachin and I have looked at this but not found a problem with the > installers. He then found that one of our colleagues has already > reported this as an issue with PostgreSQL and submitted a possible > patch. So, we need a committer to look at fixing this: > http://archives.postgresql.org/pgsql-hackers/2012-06/msg00874.php 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? regards, tom lane