RE: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head

From: "Regina Obe" <lr(at)pcorp(dot)us>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head
Date: 2021-03-11 16:15:36
Message-ID: 000501d71691$c616a200$5243e600$@pcorp.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, March 11, 2021 10:02 AM
> To: r(at)pcorp(dot)us
> Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
> Subject: Re: BUG #16920: Can't compile PostGIS with MingW64 against
> PostgreSQL 14 head
>
> PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> > I pulled PostgreSQL 14 earlier today to troubleshoot an issue we were
> > having and discovered I can not compile PostGIS with Mingw64 against
> > PostgreSQL 14 head.
>
> Hmm, our mingw64 buildfarm animals aren't detecting any particular
> problem here. Is PostGIS doing anything unusual with injecting special
> symbols via -D switches? Or maybe including something else before
> postgres.h? The symptoms look like a header-inclusion-order problem ...
>
> regards, tom lane

The order in one of the problem files looks like this:
Starting:
https://git.osgeo.org/gitea/postgis/postgis/src/branch/master/postgis/lwgeom
_in_gml.c#L50

#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>

#include "postgres.h"
#include "executor/spi.h"
#include "utils/builtins.h"

#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
#include "lwgeom_transform.h"

Note I didn't have issue compiling PostgreSQL under mingw64 (no change) - I
need to double-check the output, but I think all tests passed.
What extensions does the buildfarm animals test?

Thanks,
Regina

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-03-11 16:20:05 Re: Invalid idle_in_transaction_session_timeout data type
Previous Message Tom Lane 2021-03-11 15:06:20 Re: BUG #16921: small memory leak