<div dir="ltr">Hi Dave,<div><br></div><div>Iam able to build the slony windows-x64 installer with Steve&#39;s patch. I&#39;ve  checked CMBR-499 marked as blocker. Do you want to me share the installers which are generated with above patch?</div><div><br></div><div>Can we this patch or do we need to wait for the new sources which contains the fix.</div><div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 1:08 PM ZilanBasha Shaik &lt;<a href="mailto:zilanbasha.shaik@enterprisedb.com" target="_blank">zilanbasha.shaik@enterprisedb.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Steve,<div><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 6:18 AM Steve Singer &lt;<a href="mailto:steve@ssinger.info" target="_blank">steve@ssinger.info</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 15 Oct 2018, Steve Singer wrote:<br>
<br>
&gt; On Mon, 15 Oct 2018, Steve Singer wrote:<br>
&gt;<br>
&gt; And if you modify win32.mak to explicitly set PG_VERSION_MAJOR as in the <br>
&gt; attached patch does it make the problem go away?<br></blockquote><div>with this patch compilation went fine. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Actually try this version, it will work with the other versions of PG as <br>
well.  It will require the<br>
setenv PGVER=11<br>
<br>
<br>
<br>
<br>
&gt;<br>
&gt;<br>
&gt;&gt; On Mon, 15 Oct 2018, ZilanBasha Shaik wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Hi Steve,<br>
&gt;&gt;&gt; On Fri, Oct 12, 2018 at 4:52 PM Steve Singer &lt;<a href="mailto:steve@ssinger.info" target="_blank">steve@ssinger.info</a>&gt; wrote:<br>
&gt;&gt;&gt;       On Fri, 12 Oct 2018, ZilanBasha Shaik wrote:<br>
&gt;&gt;&gt;       What is the environment variable PGVER set to?<br>
&gt;&gt;&gt;       It should be set to 11<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Yes, We are using the same value as you mentioned above.  Hers is <br>
&gt;&gt;&gt; the PG_MAJOR_VERSION=11 <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; PG_MAJOR_VERSION=11<br>
&gt;&gt; <br>
&gt;&gt; or<br>
&gt;&gt; <br>
&gt;&gt; PGVER=11<br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;&gt;&gt;       Steve<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Hi Steve, <br>
&gt;&gt;&gt;       &gt; On Thu, Oct 11, 2018 at 8:01 AM Steve Singer &lt;<a href="mailto:steve@ssinger.info" target="_blank">steve@ssinger.info</a>&gt; <br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;       ZilanBasha,<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;       The attached patch seems to get slony 2.2.7 compiling <br>
&gt;&gt;&gt; against PG11 beta on<br>
&gt;&gt;&gt;       &gt;       Windows.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;       Please confirm if this works.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; I have applied your patch in slony 2.2.7 sources. During the <br>
&gt;&gt;&gt; compilation I come across the<br>
&gt;&gt;&gt;       below error. Here<br>
&gt;&gt;&gt;       &gt; PGV11 version is RC1.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Can you please help us to resolve this issue.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; D:\pginstaller.pune&gt;CALL &quot;C:\\Program Files (x86)\\Microsoft <br>
&gt;&gt;&gt; Visual<br>
&gt;&gt;&gt;       &gt; Studio\\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat&quot; amd64 <br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; **********************************************************************<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; ** Visual Studio 2017 Developer Command Prompt v15.7.1<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; ** Copyright (c) 2017 Microsoft Corporation<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; **********************************************************************<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; [vcvarsall.bat] Environment initialized for: &#39;x64&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe/c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /D YY_NO_UNISTD_H <br>
&gt;&gt;&gt; /I..\..\ /D HAVE_PGPORT<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include <br>
&gt;&gt;&gt; /ID:\\pginstaller.pune\output\include\server<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 /MD  <br>
&gt;&gt;&gt; slonik.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) Program Maintenance Utility Version 14.14.26428.1<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slonik.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; d:\pginstaller.pune\slony.windows-x64\src\slonik\types.h(87): <br>
&gt;&gt;&gt; warning C4005: &#39;va_copy&#39;: macro<br>
&gt;&gt;&gt;       redefinition<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; C:\Program Files (x86)\Microsoft Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\stdarg.h(20): <br>
&gt;&gt;&gt; note: see previous<br>
&gt;&gt;&gt;       definition of<br>
&gt;&gt;&gt;       &gt; &#39;va_copy&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; d:\pginstaller.pune\slony.windows-x64\src\slonik\slonik.c(75) : <br>
&gt;&gt;&gt; warning C4172: returning<br>
&gt;&gt;&gt;       address of local<br>
&gt;&gt;&gt;       &gt; variable or temporary: result<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe /c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /D YY_NO_UNISTD_H <br>
&gt;&gt;&gt; /I..\..\ /D HAVE_PGPORT<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include <br>
&gt;&gt;&gt; /ID:\\pginstaller.pune\output\include\server<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 /MD <br>
&gt;&gt;&gt; dbutil.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; dbutil.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; d:\pginstaller.pune\slony.windows-x64\src\slonik\types.h(87): <br>
&gt;&gt;&gt; warning C4005: &#39;va_copy&#39;: macro<br>
&gt;&gt;&gt;       redefinition<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; C:\Program Files (x86)\Microsoft Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\stdarg.h(20): <br>
&gt;&gt;&gt; note: see previous<br>
&gt;&gt;&gt;       definition of<br>
&gt;&gt;&gt;       &gt; &#39;va_copy&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe /c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /D YY_NO_UNISTD_H <br>
&gt;&gt;&gt; /I..\..\ /D HAVE_PGPORT<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include <br>
&gt;&gt;&gt; /ID:\\pginstaller.pune\output\include\server<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 /MD <br>
&gt;&gt;&gt; parser.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; parser.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; C:\Program Files (x86)\Microsoft Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\stddef.h(45): <br>
&gt;&gt;&gt; warning C4005:<br>
&gt;&gt;&gt;       &#39;offsetof&#39;: macro<br>
&gt;&gt;&gt;       &gt; redefinition<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; d:\pginstaller.pune\slony.windows-x64\src\slonik\types.h(20): <br>
&gt;&gt;&gt; note: see previous definition of<br>
&gt;&gt;&gt;       &#39;offsetof&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; C:\Program Files (x86)\Microsoft Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\stdlib.h(603): <br>
&gt;&gt;&gt; warning C4142:<br>
&gt;&gt;&gt;       &#39;_strtoui64&#39;:<br>
&gt;&gt;&gt;       &gt; benign redefinition of type<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; C:\Program Files (x86)\Microsoft Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\stdlib.h(539): <br>
&gt;&gt;&gt; note: see<br>
&gt;&gt;&gt;       declaration of<br>
&gt;&gt;&gt;       &gt; &#39;_strtoui64&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe /c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /D YY_NO_UNISTD_H <br>
&gt;&gt;&gt; /I..\..\ /D HAVE_PGPORT<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include <br>
&gt;&gt;&gt; /ID:\\pginstaller.pune\output\include\server<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 /MD <br>
&gt;&gt;&gt; /Fo..\parsestatements\scanner.obj<br>
&gt;&gt;&gt;       &gt; ..\parsestatements/scanner.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; scanner.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe /c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /D YY_NO_UNISTD_H <br>
&gt;&gt;&gt; /I..\..\ /D HAVE_PGPORT<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include <br>
&gt;&gt;&gt; /ID:\\pginstaller.pune\output\include\server<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 /MD scan.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; scan.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; link.exe /libpath:D:\\pginstaller.pune\output\lib libpq.lib <br>
&gt;&gt;&gt; libpgport.lib libpgcommon.lib<br>
&gt;&gt;&gt;       ws2_32.lib<br>
&gt;&gt;&gt;       &gt; kernel32.lib user32.lib advapi32.lib /libpath:C:\\pgBuild64\lib <br>
&gt;&gt;&gt; intl.lib slonik.obj <br>
&gt;&gt;&gt;       dbutil.obj  parser.obj <br>
&gt;&gt;&gt;       &gt; ..\parsestatements\scanner.obj  scan.obj<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) Incremental Linker Version 14.14.26428.1<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) Program Maintenance Utility Version 14.14.26428.1<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for <br>
&gt;&gt;&gt; x64<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Copyright (C) Microsoft Corporation.  All rights reserved.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; cl.exe /c /D MSVC /D WIN32 /D PGSHARE=\&quot;\&quot;\&quot;\&quot; /I..\misc /I..\..\<br>
&gt;&gt;&gt;       /ID:\\pginstaller.pune\output\include<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server <br>
&gt;&gt;&gt;       /ID:\\pginstaller.pune\output\include\server\port\win32_msvc<br>
&gt;&gt;&gt;       &gt; /ID:\\pginstaller.pune\output\include\server\port\win32 <br>
&gt;&gt;&gt; /IC:\\pgBuild64\include /D<br>
&gt;&gt;&gt;       HAVE_LL_CONSTANTS=1 /D<br>
&gt;&gt;&gt;       &gt; HAVE_GETACTIVESNAPSHOT  /LD /Gd /Tc  slony1_funcs.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slony1_funcs.c<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slony1_funcs.c(2904): error C2232: &#39;-&gt;attisdropped&#39;: left operand <br>
&gt;&gt;&gt; has &#39;struct&#39; type, use &#39;.&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slony1_funcs.c(2904): warning C4033: &#39;isDropped&#39; must return a <br>
&gt;&gt;&gt; value<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slony1_funcs.c(2919): error C2232: &#39;-&gt;atttypmod&#39;: left operand has <br>
&gt;&gt;&gt; &#39;struct&#39; type, use &#39;.&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; slony1_funcs.c(2919): warning C4033: &#39;typeMod&#39; must return a value<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; NMAKE : fatal error U1077: &#39;&quot;C:\Program Files (x86)\Microsoft <br>
&gt;&gt;&gt; Visual<br>
&gt;&gt;&gt;       &gt; <br>
&gt;&gt;&gt; Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe&quot;&#39; <br>
&gt;&gt;&gt; : return code<br>
&gt;&gt;&gt;       &#39;0x2&#39;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Stop.<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; Microsoft (R) Program Maintenance Utility Version 14.14.26428.1  <br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;       Steve<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt; --<br>
&gt;&gt;&gt;       &gt; Thank You,Shaik ZIlanBasha<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt;       &gt;<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Thank You,Shaik ZIlanBasha<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
&gt;<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_5846470259952808796m_-4789791658828743734gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thank You,<div>Shaik ZIlanBasha</div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_5846470259952808796gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thank You,<div>Shaik ZIlanBasha</div></div></div>