From: Tom Lane <tgl@sss.pgh.pa.us>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgreSQL.org <pgsql-hackers@postgresql.org>
Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
Date: Sat, 05 Nov 2016 11:03:26 -0400
Message-ID: <11843.1478358206@sss.pgh.pa.us> (raw)
In-Reply-To: <2007.1478300835@sss.pgh.pa.us>
References: <A737B7A37273E048B164557ADEF4A58B5393033E@ntex2010a.host.magwien.gv.at>
<10909.1476282370@sss.pgh.pa.us>
<A737B7A37273E048B164557ADEF4A58B5393038C@ntex2010a.host.magwien.gv.at>
<31374.1476290849@sss.pgh.pa.us>
<1817.1476307651@sss.pgh.pa.us>
<9601.1476309997@sss.pgh.pa.us>
<A737B7A37273E048B164557ADEF4A58B539310FA@ntex2010a.host.magwien.gv.at>
<CA+TgmoavrtczRMQkSaLR6h_xyk8DjniiRwjG64+Yzi3vWVwS9A@mail.gmail.com>
<10624.1476735097@sss.pgh.pa.us>
<CA+TgmoaQu=Z+=BCAbY4T2n0BPA8NuGUrwaH461yn-mTV_TADzw@mail.gmail.com>
<20161017201935.gwy3n5c5j7v6pc3a@alap3.anarazel.de>
<CAMsr+YGk5bYwCF7vhu5H5sy_ATk-O7ZkCsx=o9njCoiCKUGynA@mail.gmail.com>
<979.1476802684@sss.pgh.pa.us>
<15566.1476805372@sss.pgh.pa.us>
<A737B7A37273E048B164557ADEF4A58B5396277C@ntex2010a.host.magwien.gv.at>
<A737B7A37273E048B164557ADEF4A58B53962ED8@ntex2010a.host.magwien.gv.at>
<2007.1478300835@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
I wrote:
> Albe Laurenz <laurenz.albe@wien.gv.at> writes:
> Anyway, I have prepared a patch along the lines you suggest.
> Pushed, we'll see if the buildfarm likes this iteration any better.
And the answer is "not very much". The Windows builds aren't actually
failing, but they are producing lots of warnings:
lquery_op.obj : warning LNK4197: export '_ltq_regex' specified multiple times; using first specification
lquery_op.obj : warning LNK4197: export '_ltq_rregex' specified multiple times; using first specification
lquery_op.obj : warning LNK4197: export '_lt_q_regex' specified multiple times; using first specification
lquery_op.obj : warning LNK4197: export '_lt_q_rregex' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_compress' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_same' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_union' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_penalty' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_picksplit' specified multiple times; using first specification
ltree_gist.obj : warning LNK4197: export '_ltree_consistent' specified multiple times; using first specification
ltree_op.obj : warning LNK4197: export '_ltree_isparent' specified multiple times; using first specification
ltree_op.obj : warning LNK4197: export '_ltree_risparent' specified multiple times; using first specification
ltree_op.obj : warning LNK4197: export '_lca' specified multiple times; using first specification
ltxtquery_op.obj : warning LNK4197: export '_ltxtq_exec' specified multiple times; using first specification
ltxtquery_op.obj : warning LNK4197: export '_ltxtq_rexec' specified multiple times; using first specification
This is evidently from the places where there are two "extern"
declarations for a function, one in a header and one in
PG_FUNCTION_INFO_V1. The externs are identical now, but nonetheless
MSVC insists on whining about it.
I'm inclined to give this up as a bad job and go back to the
previous state. We have a solution that works and doesn't
produce warnings; third-party authors who don't want to use it
are on their own.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, laurenz.albe@wien.gv.at, craig@2ndquadrant.com, andres@anarazel.de, robertmhaas@gmail.com
Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
In-Reply-To: <11843.1478358206@sss.pgh.pa.us>
References: <A737B7A37273E048B164557ADEF4A58B5393033E@ntex2010a.host.magwien.gv.at> <10909.1476282370@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B5393038C@ntex2010a.host.magwien.gv.at> <31374.1476290849@sss.pgh.pa.us> <1817.1476307651@sss.pgh.pa.us> <9601.1476309997@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B539310FA@ntex2010a.host.magwien.gv.at> <CA+TgmoavrtczRMQkSaLR6h_xyk8DjniiRwjG64+Yzi3vWVwS9A@mail.gmail.com> <10624.1476735097@sss.pgh.pa.us> <CA+TgmoaQu=Z+=BCAbY4T2n0BPA8NuGUrwaH461yn-mTV_TADzw@mail.gmail.com> <20161017201935.gwy3n5c5j7v6pc3a@alap3.anarazel.de> <CAMsr+YGk5bYwCF7vhu5H5sy_ATk-O7ZkCsx=o9njCoiCKUGynA@mail.gmail.com> <979.1476802684@sss.pgh.pa.us> <15566.1476805372@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B5396277C@ntex2010a.host.magwien.gv.at> <A737B7A37273E048B164557ADEF4A58B53962ED8@ntex2010a.host.magwien.gv.at> <2007.1478300835@sss.pgh.pa.us> <11843.1478358206@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