From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@pgadmin.org>
Cc: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
Cc: Craig Ringer <ringerc@ringerc.id.au>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Cc: Sachin Srivastava <sachin.srivastava@enterprisedb.com>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Subject: Re: BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows
Date: Thu, 16 Aug 2012 13:46:33 -0400
Message-ID: <4121.1345139193@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+OCxoxvXchnAHYZjCLS8XtYU8KasESMSXLYo+X9HyDeVnA_QA@mail.gmail.com>
References: <E1Sz3R9-0000FI-5J@wrigleys.postgresql.org>
<50224DDA.5090900@ringerc.id.au>
<502A71F8.9010104@zg.htnet.hr>
<502B014D.8020302@ringerc.id.au>
<502BA62B.6070408@zg.htnet.hr>
<CA+OCxoyqLqRUODxG48rOW7y6s6Aqf-8HbaqURdeHtnN8qnyhUA@mail.gmail.com>
<CA+OCxozThZT8HYF0NQxX5SWhknttZypnS3PO0+D9b+PSMhvH4Q@mail.gmail.com>
<11731.1345127187@sss.pgh.pa.us>
<CA+OCxoySJ03p0b9yfxM0rNpuBAxtLKu2qOxng+WoXu4V0sKvDg@mail.gmail.com>
<CA+OCxoxvXchnAHYZjCLS8XtYU8KasESMSXLYo+X9HyDeVnA_QA@mail.gmail.com>
Dave Page <dpage@pgadmin.org> writes:
> On Thu, Aug 16, 2012 at 3:28 PM, Dave Page <dpage@pgadmin.org> wrote:
>> On Thu, Aug 16, 2012 at 3:26 PM, Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, dpage@pgadmin.org, rikard.pavelic@zg.htnet.hr, ringerc@ringerc.id.au, sachin.srivastava@enterprisedb.com, heikki.linnakangas@enterprisedb.com
Subject: Re: BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows
In-Reply-To: <4121.1345139193@sss.pgh.pa.us>
References: <E1Sz3R9-0000FI-5J@wrigleys.postgresql.org> <50224DDA.5090900@ringerc.id.au> <502A71F8.9010104@zg.htnet.hr> <502B014D.8020302@ringerc.id.au> <502BA62B.6070408@zg.htnet.hr> <CA+OCxoyqLqRUODxG48rOW7y6s6Aqf-8HbaqURdeHtnN8qnyhUA@mail.gmail.com> <CA+OCxozThZT8HYF0NQxX5SWhknttZypnS3PO0+D9b+PSMhvH4Q@mail.gmail.com> <11731.1345127187@sss.pgh.pa.us> <CA+OCxoySJ03p0b9yfxM0rNpuBAxtLKu2qOxng+WoXu4V0sKvDg@mail.gmail.com> <CA+OCxoxvXchnAHYZjCLS8XtYU8KasESMSXLYo+X9HyDeVnA_QA@mail.gmail.com> <4121.1345139193@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox