On GNU/Hurd the POSIX-optional PATH_MAX is not defined on purpose, and neither is the non-standard MAXPATHLEN. This causes build failures in three places.
Attached there are few patches to replace them with
- usage of POSIX.1-8 behaviour of realpath (NULL as second argument returns a newly allocated buffer for the result)
- dynamic memory allocation for the strings