[Bug 1991909] Re: [SRU] ladvd FTBFS: error: ‘MAXPATHLEN’ undeclared

Sudip Mukherjee 1991909 at bugs.launchpad.net
Thu Nov 16 12:39:58 UTC 2023


Thanks for looking Paride.

Updated debdiff attached.

** Patch added: "ladvd_1.1.2-1ubuntu1.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/ladvd/+bug/1991909/+attachment/5720172/+files/ladvd_1.1.2-1ubuntu1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1991909

Title:
  [SRU] ladvd FTBFS: error: ‘MAXPATHLEN’ undeclared

Status in ladvd package in Ubuntu:
  New
Status in ladvd package in Debian:
  Fix Released

Bug description:
  [ Impact ]

  ladvd fails to build in Jammy.

  [ Test Plan ]

  Confirm that ladvd builds.
  Execute ladvd in Jammy to confirm it starts runnning.

  But for anyone testing, these are the commands for some basic testing to see ladvd is running.
  ladvd -vvvvv -f -a

  [ Where problems could occur ]

  The patch is backported from Debian which is also an upstream fix.
  The fix (apart from the white-space changes) is only adding header file to the source code to fix the ftbfs.
  So, it should not change the behaviour and has little chance of regressing the user behaviour.

  [ Other Info ]

   The problem exists in 1.1.2-1 and has been fixed by Debian with the version 1.1.2-2.
   It has been updated on Ubuntu Lunar, Mantic and Noble. But Jammy still has the problem and the ftbfs can be seen.

  
  Original Bug Description:

  
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ladvd/+bug/1991909/+subscriptions





More information about the Ubuntu-sponsors mailing list