Page MenuHome GnuPG

eliz (Eli Zaretskii)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 21 2022, 4:03 PM (140 w, 2 d)
Availability
Available

Recent Activity

Sep 1 2022

eliz added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

Should be OK for mingw.org's MinGW. I cannot test the MinGW64 bits, but I trust that you did.

Sep 1 2022, 7:16 AM · gnupg24, toolchain, Feature Request, patch

Mar 31 2022

eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

The attached patch implements getting the number of processors on MS-Windows.

Mar 31 2022, 8:18 AM · backport, libgcrypt, Bug Report

Mar 24 2022

eliz added a comment to T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.

Indeed, different versions of MinGW use different symbols to guard the declaration, and using those symbols in not future-proof enough, IME.
Removing the declaration is definitely the best solution.

Mar 24 2022, 9:57 AM · npth, Bug Report

Mar 23 2022

eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Yes, I see the problem:

Mar 23 2022, 2:55 PM · backport, libgcrypt, Bug Report
eliz added a comment to T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.

Considering again, I think that just removing the definition of the struct timespec in npth.h is the best approach, given the situation, it's been there for MINGW64 and it's now in original MinGW.

Mar 23 2022, 1:31 PM · npth, Bug Report

Mar 22 2022

eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Let me ask a more specific question, since you mentioned "support of detecting numbers of CPU and having more than 1 CPUs": can you point me to the code which detects the number of CPUs on MS-Windows systems, where I could learn how that code is affected by having EOPNOTSUPP defined? I will then hopefully understand better what you are saying, and either agree with you that this is unworkable on Windows, or propose a better solution.

Mar 22 2022, 1:55 PM · backport, libgcrypt, Bug Report
eliz added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

I guess I don't understand what you mean by "native building". This build was with MinGW, which is as "native" as MinGW64 is.
The reason for the problem is (AFAIU) that MinGW64 went after Microsoft's change in stat due to the 32-bit vs 64-bit time and off_t values issue.s That change breaks backward compatibility in more than one way: programs compiled on some versions of Windows will not run on other versions. mingw.org's MinGW kept the original semantics and symbols, which is why _stat32 exists in the mingw.org's headers, but is not exposed by default.

Mar 22 2022, 1:52 PM · gnupg24, toolchain, Feature Request, patch
eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Can you please tell more about how this causes non-working code? MinGW64 defines EOPNOTSUPP to an arbitrary constant which (AFAICT) is never actually returned or used in the MS-Windows runtime. Their documentation, in https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-constants?view=msvc-170, says:

Mar 22 2022, 1:45 PM · backport, libgcrypt, Bug Report
eliz added a comment to T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44.

This is with mingw.org's MinGW, version 5.4.x.

Mar 22 2022, 1:36 PM · gpgrt, Bug Report
eliz added a comment to T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.

The version of MinGW is 5.4.x, the latest one. It is available from https://osdn.net/projects/mingw/releases.
MinGW64 is a fork of the above (original) MinGW. They have unfortunately diverged, thus the need to have these changes.

Mar 22 2022, 1:30 PM · npth, Bug Report

Mar 21 2022

eliz created T5899: Fix compilation of dirmngr with mingw.org's MinGW.
Mar 21 2022, 7:25 PM · patch, Feature Request, Windows, toolchain
eliz created T5898: Two fixes for the gnupg-2.3.4 test suite when running on MS-Windows.
Mar 21 2022, 7:20 PM · Windows, gnupg (gpg23), Bug Report
eliz created T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.
Mar 21 2022, 7:15 PM · gnupg24, toolchain, Feature Request, patch
eliz created T5896: Honor HOME envfironment variable on MS-Windows in gnupg-2.3.4.
Mar 21 2022, 7:12 PM · Bug Report
eliz created T5895: Fix an error in w32_try_mkdir from gnupg-2.3.4.
Mar 21 2022, 7:10 PM · Bug Report
eliz created T5894: Various issues with system headers and _WIN32_WINNT value in MinGW build of gnupg-2.3.4.
Mar 21 2022, 7:07 PM · gnupg, Feature Request
eliz created T5893: Patches to compile pinentry-1.2.0 cleanly with mingw.org's MinGW.
Mar 21 2022, 6:59 PM · Windows, pinentry, Bug Report
eliz created T5892: t-cms-parser test program in libksba-1.6.0 needs to open files in binary mode for MS-Windows.
Mar 21 2022, 6:52 PM · libksba, Bug Report
eliz created T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.
Mar 21 2022, 6:49 PM · backport, libgcrypt, Bug Report
eliz created T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44.
Mar 21 2022, 6:46 PM · gpgrt, Bug Report
eliz created T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.
Mar 21 2022, 6:43 PM · npth, Bug Report