Comment 0 for bug 1991909

Revision history for this message
Benjamin Drung (bdrung) wrote : ladvd FTBFS: error: ‘MAXPATHLEN’ undeclared

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat -Wformat-security -DPIE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLIBBSD_OVERLAY -isystem /usr/include/bsd -MT util.lo -MD -MP -MF .deps/util.Tpo -c ../../src/util.c -fPIC -DPIC -o .libs/util.o
In file included from ../../src/common.h:40,
                 from ../../src/util.c:20:
/usr/include/bsd/vis.h:107:2: warning: #warning "NetBSD added incompatible strnvis() and strnunvis(), please see <bsd/vis.h> for more detils." [-Wcpp]
  107 | #warning "NetBSD added incompatible strnvis() and strnunvis(), please see <bsd/vis.h> for more detils."
      | ^~~~~~~
../../src/util.c: In function ‘my_chroot’:
../../src/util.c:151:20: error: ‘MAXPATHLEN’ undeclared (first use in this function)
  151 | char component[MAXPATHLEN];
      | ^~~~~~~~~~
../../src/util.c:151:20: note: each undeclared identifier is reported only once for each function it appears in
../../src/util.c:151:10: warning: unused variable ‘component’ [-Wunused-variable]
  151 | char component[MAXPATHLEN];
      | ^~~~~~~~~
make[3]: *** [Makefile:599: util.lo] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build/src'

Full log: https://launchpadlibrarian.net/625443175/buildlog_ubuntu-kinetic-amd64.ladvd_1.1.2-1build1_BUILDING.txt.gz