Scute fails to compile because of undeclared MAX_PATH

Damien Goutte-Gattat dgouttegattat at incenp.org
Sun Nov 22 14:22:49 CET 2026


Trying to compile Scute (tip of the master branch, 352b296) on GNU/Linux
with GCC 11.2.0 yields an error because `MAX_PATH` in src/readconf.c
(line 113) is undeclared:

  char sysconfdir_buf[MAX_PATH+15+1];

This was introduced in c3dc9c5, and is needed to honor the
CSIDL_COMMON_APPDATA environment variable on Windows.

The associated discussion on https://dev.gnupg.org/T7894.html mentions
that gpgrt 1.57 will (and now does, since gpgrt 1.57 has been released)
provide a gpgrt_fconcat helper function that can take care of getting
the proper system-wide configuration directory.

Would it be OK to bump Scute's dependency on gpgrt to version 1.57, so
that we can use that helper function to replace the custom code
introduced in c3dc9c5?

- Damien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 265 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20261122/fa4bd245/attachment.sig>


More information about the Gnupg-devel mailing list