From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | Marco Atzeri <marco(dot)atzeri(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: narwhal and PGDLLIMPORT |
Date: | 2014-02-15 15:16:50 |
Message-ID: | 20922.1392477410@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> On 2014-02-12 14:11:10 -0500, Tom Lane wrote:
>> Marco Atzeri <marco(dot)atzeri(at)gmail(dot)com> writes:
>>> from /usr/include/getopt.h
>>> extern char __declspec(dllimport) *optarg; /* argument associated
>>> with option */
>> Hm. All of our files that use getopt also do
>> extern char *optarg;
> So, now that brolga is revived, this unsurprisingly causes breakage
> there after the --disable-auto-export change. ISTM the easiest way to
> deal with this is to just adorn all those with a PGDLLIMPORT?
Uh, no, because that's backwards: we'd need the __declspec(dllimport)
in the backend code.
The best thing probably is not to have the duplicate declarations on
platforms that don't need 'em. Unfortunately, I seem to recall that
the current coding was arrived at to forestall link problems on weird
platforms that *had* these symbols declared and yet we needed externs
anyway. We might have to do something as ugly as "#ifndef CYGWIN".
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-02-15 15:18:00 | Re: Memory ordering issue in LWLockRelease, WakeupWaiters, WALInsertSlotRelease |
Previous Message | Andres Freund | 2014-02-15 15:16:40 | Re: 9.2.1 & index-only scans : abnormal heap fetches after VACUUM FULL |