[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-dev
Subject:    Build fails with mingw-w64 due to re-declaration of apr_filetype_e
From:       Biswapriyo Nath <nathbappai () gmail ! com>
Date:       2023-09-24 14:29:00
Message-ID: CALK-3m+aq0sKDMFO10EZy9j01CzfOpHtrwxA-SW7WVBse1ZdPQ () mail ! gmail ! com
[Download RAW message or body]

* compiler: gcc version 13.2.0 (Rev2, Built by MSYS2 project)
* Microsoft Windows Version 10.0.19045
* Build command:
./buildconf; mkdir build; cd build
../configure \
--enable-static \
--enable-shared \
--enable-nonportable-atomics \
--with-devrandom=/dev/urandom \
--disable-ipv6

* compiler error:

In file included from ../file_io/unix/copy.c:17:
apr/include/arch/win32/apr_arch_file_io.h:164:3: error: conflicting
types for 'apr_filetype_e'; have 'enum <anonymous>'
  164 | } apr_filetype_e;
      |   ^~~~~~~~~~~~~~
In file included from apr/include/apr_file_io.h:29,
                 from apr/include/arch/win32/apr_arch_file_io.h:26:
apr/include/apr_file_info.h:72:3: note: previous declaration of
'apr_filetype_e' with type 'apr_filetype_e'
   72 | } apr_filetype_e;
      |   ^~~~~~~~~~~~~~

Would it be possible to fix this issue? I can provide additional
information if needed. Please provide any suggestion how to
troubleshoot this issue.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic