bugGNU gettext - Bugs: bug #56133, compilation error of fnmatch on...


You are not allowed to post comments on this tracker with your current authentication level.

bug #56133: compilation error of fnmatch on Windows (MSYS2 mingw-w64)

Submitted by:  Vincent Torri <vtorri>
Submitted on:  Sun 14 Apr 2019 12:15:26 PM UTC  
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  Bruno Haible <haible>
Open/Closed:  Closed

Sun 14 Apr 2019 02:01:14 PM UTC, comment #1: 

The INSTALL.windows file lists the supported environments for building mingw binaries. MSYS2 is not among these supported environments.

In the Cygwin environment, it works for me.

So, if you insist in wanting to use the MSYS2 environment, you'll have to investigate the issue by yourself. For me, the error message indicates that it is building the gnulib module 'fnmatch', after 'configure' has found out that fnmatch is not supported by mingw. While doing so, it uses a wrong fnmatch.h file.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Sun 14 Apr 2019 12:15:26 PM UTC, original submission:  

fnmatch_loop.c:49:41: error: 'FNM_EXTMATCH' undeclared (first use in this function); did you mean 'FNM_NOMATCH'?
           if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(')

Vincent Torri <vtorri>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by vtorri (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-14 haible StatusNone => Works For Me
        Assigned toNone => haible
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5