Bug#1142341: cpp-httplib: FTBFS on hurd-amd64 due to missing PATH_MAX
Paolo Torelli <[email protected]> Sat, 18 Jul 2026 03:24:38 +0200
| Newsgroups | gmane.linux.debian.devel.bugs.general,gmane.linux.debian.ports.hurd |
|---|---|
| Message-ID | <[email protected]> |
--=-cXUuLOZbj0xvXcbHbZng
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Package: cpp-httplib
Version: 0.41.0+ds-3
Severity: important
Tags: patch
Dear Maintainers,
The package cpp-httplib fails to build from source (FTBFS) on the
GNU/Hurd 64-bit architecture (hurd-amd64).
The build process terminates with the following compiler error:
"error: =E2=80=98PATH_MAX=E2=80=99 was not declared in this scope"
This happens because GNU/Hurd does not impose any arbitrary
restrictions on file path lengths, and therefore deliberately does not
define the PATH_MAX constant in its headers.
To fix this issue, I implemented a standard fallback macro inside the
affected source file. If PATH_MAX is not defined by the system, it is
dynamically set to a safe temporary default value of 4096.
I have successfully verified this fix by compiling the package locally
using `dpkg-buildpackage` on a running hurd-amd64 environment. A simple
HTTP test server using the compiled .deb package was launched and
verified to work correctly.
Please find attached the patch file ('hurd-path_max.patch') containing
the exact diff for this resolution.
Thank you for your time and for maintaining this package.
Best regards,
[Torelli Paolo / Compsognathus]
--=-cXUuLOZbj0xvXcbHbZng
Content-Disposition: attachment; filename="hurd-path_max.patch"
Content-Type: text/x-patch; name="hurd-path_max.patch"; charset="UTF-8"
Content-Transfer-Encoding: base64
LS0tIGEvaHR0cGxpYi5jYworKysgYi9odHRwbGliLmNjCkBAIC0yMCwzICsyMCw3IEBACisjaWZu
ZGVmIFBBVEhfTUFYCisjZGVmaW5lIFBBVEhfTUFYIDQwOTYKKyNlbmRpZgo=
--=-cXUuLOZbj0xvXcbHbZng--