Menu

#25 Fails to build on HURD

Version2
closed
nobody
None
5
2024-02-01
2024-01-31
No

The software fails to build on platform HURD:

gcc -D_REENTRANT -DSYSCONFDIR=\"/etc\" -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<pkgbuilddir>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -c -o srcpd.o srcpd.c
srcpd.c:42:15: error: ‘MAXPATHLEN’ undeclared here (not in a function)
42 | char conffile[MAXPATHLEN];
| ^~~~~~~~~~</pkgbuilddir>

Full build log is here https://buildd.debian.org/status/fetch.php?pkg=srcpd&arch=hurd-i386&ver=2.1.6-1&stamp=1706211455&raw=0

The should be enough hints in the net how to solve the issue. Thanks!

Discussion

  • André Schenk

    André Schenk - 2024-01-31

    Does it help if you replace MAXPATHLEN with PATH_MAX?

     
  • Guido Scholz

    Guido Scholz - 2024-01-31

    Bug is fixed in repository. Please find attached a patch for your convenience.
    Guido

     
  • Guido Scholz

    Guido Scholz - 2024-02-01
    • status: open --> closed
     
  • Guido Scholz

    Guido Scholz - 2024-02-01

    Issue solved.

     

Log in to post a comment.