<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.E-mailStijl17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I have successfully build tinc on windows with the new  Ubuntu bash.<o:p></o:p></p>
<p class="MsoNormal">I needed to work around some issues.<o:p></o:p></p>
<p class="MsoNormal">My first attempt was following: <a href="https://www.tinc-vpn.org/examples/cross-compiling-windows-binary/">
https://www.tinc-vpn.org/examples/cross-compiling-windows-binary</a><o:p></o:p></p>
<p class="MsoNormal">When doing so I did not find the LibreSSL sources in the build environment. I guess I must have done something wrong.<o:p></o:p></p>
<p class="MsoNormal">Then I tried: <a href="https://www.snip2code.com/Snippet/257857/Howto--cross-compiling-tinc-for-Windows-">
https://www.snip2code.com/Snippet/257857/Howto--cross-compiling-tinc-for-Windows-</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This almost succeeded. I could not get the last configure to work: ./configure --host=i686-w64-mingw32 --with-zlib=$HOME/mingw/usr/local<o:p></o:p></p>
<p class="MsoNormal">I got the messages:<o:p></o:p></p>
<p>./configure: line 5272: syntax error near unexpected token `AX_APPEND_FLAG'<br>
./configure: line 5272: `AX_REQUIRE_DEFINED(AX_APPEND_FLAG)'<br>
make: *** No targets specified and no makefile found.  Stop.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Being a Windows developer I have no clue what to do <span style="font-family:Wingdings">
J</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So I finally downloaded the latest source code (1.0.28) in the tar.<o:p></o:p></p>
<p class="MsoNormal">This one let me do the configure and build.<o:p></o:p></p>
<p class="MsoNormal">So I got a working tincd.exe.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like to have a build procedure I can repeat, like the tinc.sh from snip2code. Can somebody tell how to find out why I got the syntax error near unexpected token `AX_APPEND_FLAG' message?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>