Bug#885013: siridb-server: FTBFS on hurd-i386: PATH_MAX undeclared
Source: siridb-server
Version: 2.0.25-1
Severity: important
Tags: upstream
Justification: fails to build from source
User: debian-hurd@lists.debian.org
Usertags: hurd-i386
The build of siridb-server for hurd-i386 (admittedly not a release
architecture) failed:
../src/xpath/xpath.c: In function 'xpath_get_exec_path':
../src/xpath/xpath.c:94:42: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'NAME_MAX'?
The Hurd famously has no static PATH_MAX. Best practice is to work
dynamically with what you encounter. However, if that's infeasible,
you can also look up _PC_PATH_MAX via pathconf or supply a fallback
constant (traditionally 4096).
Could you please take a look, bearing in mind that there's presumably
at least one more reference to PATH_MAX (in whatever calls
xpath_get_exec_path)?
Thanks!
--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu
Reply to: