Re: Compiling extensions on Windows

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Sandeep Thakkar <sandeep(dot)thakkar(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Dave Page <dpage(at)pgadmin(dot)org>
Subject: Re: Compiling extensions on Windows
Date: 2014-01-06 11:25:50
Message-ID: 0LiX1g-1VPi6O3RoS-00d3Jf@mrelayeu.kundenserver.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<p dir="ltr">If libintl.h and any headers it in turn includes are bundled, there is no longer an issue with NLS. </p>
<p dir="ltr">That was just a workaround for building exts when Pg's headers tried to refer to nonexistent headers when NLS was enabled.</p>
<div class="quote">On 6 Jan 2014 18:57, Sandeep Thakkar &lt;sandeep(dot)thakkar(at)enterprisedb(dot)com&gt; wrote:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sure. I&#39;ll make the changes so that the next available Windows installers include lbintl.h in $Installdir/include. How about the changes with respect to NLS?<br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jan 6, 2014 at 2:44 PM, Dave Page <span dir="ltr">&lt;<a href="mailto:dpage(at)pgadmin(dot)org" target="_blank">dpage(at)pgadmin(dot)org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jan 6, 2014 at 3:32 AM, Craig Ringer &lt;<a href="mailto:craig(at)2ndquadrant(dot)com">craig(at)2ndquadrant(dot)com</a>&gt; wrote:<br>
&gt; Hi all<br>
&gt;<br>
&gt; Out of personal interest (in pain and suffering) I was recently looking<br>
&gt; into how to compile extensions out-of-tree on Windows using Visual<br>
&gt; Studio (i.e. no PGXS).<br>
&gt;<br>
&gt; It looks like the conventional answer to this is &quot;Do a source build of<br>
&gt; PG, compile your ext in-tree in contrib/, and hope the result is binary<br>
&gt; compatible with release PostgreSQL builds for Windows&quot;. Certainly that&#39;s<br>
&gt; how I&#39;ve been doing it to date.<br>
&gt;<br>
&gt; How about everyone else here? Does anyone actually build and distribute<br>
&gt; extensions out of tree at all?<br>
&gt;<br>
&gt; I&#39;m interested in making the Windows installer distributions a bit more<br>
&gt; extension dev friendly. In particular, I&#39;d really like to see EDB&#39;s<br>
&gt; Windows installers include the libintl.h for the included libintl, since<br>
&gt; its omission, combined with Pg being built with ENABLE_NLS, tends to<br>
&gt; break things horribly. Users can always undefine ENABLE_NLS, but it&#39;s an<br>
&gt; unnecessary roadblock.<br>
<br>
</div>Sandeep, can you work on fixing this please?<br>
<br>
Thanks.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Are there any objections from -hackers to including 3rd party headers<br>
&gt; for libs we expose in our public headers in the binary distribution?<br>
&gt;<br>
&gt; Other than bundling 3rd party headers, any ideas/suggestions for how we<br>
&gt; might make ext building saner on Windows?<br>
&gt;<br>
&gt; --<br>
&gt;  Craig Ringer                   <a href="http://www.2ndQuadrant.com/" target="_blank">http://www.2ndQuadrant.com/</a><br>
&gt;  PostgreSQL Development, 24x7 Support, Training &amp; Services<br>
&gt;<br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt; Sent via pgsql-hackers mailing list (<a href="mailto:pgsql-hackers(at)postgresql(dot)org">pgsql-hackers(at)postgresql(dot)org</a>)<br>
&gt; To make changes to your subscription:<br>
&gt; <a href="http://www.postgresql.org/mailpref/pgsql-hackers" target="_blank">http://www.postgresql.org/mailpref/pgsql-hackers</a><br>
<br>
<br>
<br>
--<br>
Dave Page<br>
Blog: <a href="http://pgsnake.blogspot.com" target="_blank">http://pgsnake.blogspot.com</a><br>
Twitter: @pgsnake<br>
<br>
EnterpriseDB UK: <a href="http://www.enterprisedb.com" target="_blank">http://www.enterprisedb.com</a><br>
The Enterprise PostgreSQL Company<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Sandeep Thakkar<div><br></div></div>
</div></div>
</blockquote></div>

Attachment Content-Type Size
unknown_filename text/html 3.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-01-06 11:30:27 Re: dynamic shared memory and locks
Previous Message Dave Page 2014-01-06 11:06:36 Re: Compiling extensions on Windows