I have successfully build tinc on windows with the new Ubuntu bash. I needed to work around some issues. My first attempt was following: https://www.tinc-vpn.org/examples/cross-compiling-windows-binary<https://www.tinc-vpn.org/examples/cross-compiling-windows-binary/> When doing so I did not find the LibreSSL sources in the build environment. I guess I must have done something wrong. Then I tried: https://www.snip2code.com/Snippet/257857/Howto--cross-compiling-tinc-for-Windows- This almost succeeded. I could not get the last configure to work: ./configure --host=i686-w64-mingw32 --with-zlib=$HOME/mingw/usr/local I got the messages: ./configure: line 5272: syntax error near unexpected token `AX_APPEND_FLAG' ./configure: line 5272: `AX_REQUIRE_DEFINED(AX_APPEND_FLAG)' make: *** No targets specified and no makefile found. Stop. Being a Windows developer I have no clue what to do :) So I finally downloaded the latest source code (1.0.28) in the tar. This one let me do the configure and build. So I got a working tincd.exe. 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20160927/6acae8de/attachment.html>
On Tue, Sep 27, 2016 at 11:00:38AM +0000, Henk wrote:> ./configure: line 5272: syntax error near unexpected token `AX_APPEND_FLAG' > ./configure: line 5272: `AX_REQUIRE_DEFINED(AX_APPEND_FLAG)' > make: *** No targets specified and no makefile found. Stop.[...]> 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?Ah, it seems the build system makes use of AX_APPEND_FLAG, but this macro is not defined in the standard autoconf macros, but rather requires you to install the autoconf-archive package. It is not a problem when you download the tarball, because there it comes with a pre-generated configure script. I'll make sure to add a copy of that macro to tinc's git repository so it's more self-contained. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20160927/d8a71e05/attachment.sig>
Thank you, I will gladly try this. For your information I did do: sudo apt-get install autoconf-archive I got this from: http://stackoverflow.com/questions/30412576/autotools-syntax-error-with-ax-check-compile-flag That did not make any difference. -----Oorspronkelijk bericht----- Van: tinc-devel [mailto:tinc-devel-bounces at tinc-vpn.org] Namens Guus Sliepen Verzonden: dinsdag 27 september 2016 14:14 Aan: tinc-devel at tinc-vpn.org Onderwerp: Re: Building tinc on windows with bash On Tue, Sep 27, 2016 at 11:00:38AM +0000, Henk wrote:> ./configure: line 5272: syntax error near unexpected token `AX_APPEND_FLAG' > ./configure: line 5272: `AX_REQUIRE_DEFINED(AX_APPEND_FLAG)' > make: *** No targets specified and no makefile found. Stop.[...]> 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?Ah, it seems the build system makes use of AX_APPEND_FLAG, but this macro is not defined in the standard autoconf macros, but rather requires you to install the autoconf-archive package. It is not a problem when you download the tarball, because there it comes with a pre-generated configure script. I'll make sure to add a copy of that macro to tinc's git repository so it's more self-contained. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org>