<p></p>
<p>Tested on Windows:<br>
<a href="https://download.geany.org/snapshots/geany-1.38_setup-pr2666.exe" rel="nofollow">https://download.geany.org/snapshots/geany-1.38_setup-pr2666.exe</a></p>
<p>I got:</p>
<pre><code>/bin/sh ../libtool --silent  --tag=CC   --mode=compile ccache gcc -DHAVE_CONFIG_H -I. -I..  -I./main -I./parsers -DEXTERNAL_PARSER_LIST_FILE=\"../src/tagmanager/tm_parsers.h\" -DG_LOG_DOMAIN=\"CTags\" -I./gnu_regex -I./fnmatch  -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw32/include/gtk-2.0 -IC:/msys64/mingw32/lib/gtk-2.0/include -IC:/msys64/mingw32/include/pango-1.0 -IC:/msys64/mingw32/include/fribidi -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/atk-1.0 -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/lzo -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include/gdk-pixbuf-2.0 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGEANY_EXPORT_SYMBOL="__declspec(dllexport)" -DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL -g -DGEANY_DEBUG -UGEANY_DEBUG -MT main/options.lo -MD -MP -MF $depbase.Tpo -c -o main/options.lo main/options.c
main/options.c:616:5: error: redefinition of 'asprintf'
  616 | int asprintf(char **strp, const char *fmt, ...)
      |     ^~~~~~~~
In file included from main/args_p.h:17,
                 from main/options_p.h:23,
                 from main/options.c:16:
C:/msys64/mingw32/i686-w64-mingw32/include/stdio.h:251:5: note: previous definition of 'asprintf' was here
  251 | int asprintf(char **__ret, const char *__format, ...)
      |     ^~~~~~~~
make[2]: *** [Makefile:997: main/options.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/enrico/geany/ctags'
make[1]: *** [Makefile:598: all-recursive] Error 1
make[1]: Leaving directory '/home/enrico/geany'
make: *** [Makefile:482: all] Error 2
</code></pre>
<p>After adding a <code>asprintf</code> check:</p>
<pre><code>diff --git a/configure.ac b/configure.ac
index d835b86a..8ef4360e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ AC_TYPE_SIZE_T
 AC_STRUCT_TM
 
 # Checks for library functions.
-AC_CHECK_FUNCS([fgetpos fnmatch mkstemp strerror strstr realpath])
+AC_CHECK_FUNCS([asprintf fgetpos fnmatch mkstemp strerror strstr realpath])
 
 # Function checks for u-ctags
 AC_CHECK_FUNCS([strcasecmp stricmp], [break])
</code></pre>
<p>it built fine and runs.<br>
Maybe the additional check fits better a few lines below in the u-ctags specific section. I just did it there for quickly testing.</p>
<p>After a very quick look it seems the old code had more specific checks:<br>
<code>#if defined(_WIN32) && !(defined(__USE_MINGW_ANSI_STDIO) && defined(__MINGW64_VERSION_MAJOR))</code><br>
Now, the code checks for <code>HAVE_ASPRINTF</code>, hence the new Autotools check.</p>
<p>Just discovered, the old check is still there:<br>
<a href="https://github.com/geany/geany/pull/2666/files#diff-c5db35c46946eafa2045f7350def78e0e11e882af367f38cace67cf23560dc90R62">https://github.com/geany/geany/pull/2666/files#diff-c5db35c46946eafa2045f7350def78e0e11e882af367f38cace67cf23560dc90R62</a> whcih then defines <code>HAVE_ASPRINTF</code>.<br>
Obviously, <code>main/e_msoft.h</code> was not used on my system. I did not yet check why (short on time currently).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2666#issuecomment-731826756">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ33LJ7VOWL5BTKPFETSRFQH5ANCNFSM4T2VTWXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5UG7QWRQ7HON4RTUTSRFQH5A5CNFSM4T2VTWXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFOPMURA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2666#issuecomment-731826756",
"url": "https://github.com/geany/geany/pull/2666#issuecomment-731826756",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>