Public bug reported:

debian/rules copies /usr/share/gnulib/lib/progname.c from gnulib into
the source dir.

building it fails:
gcc -DHAVE_CONFIG_H -I. -I..  -DINSTALLDIR=\"/usr/bin\" -I../src/libgnu 
-I../src/libgnu -I../lib -I../lib -DREAL_INSTALLPREFIX="\"/usr\"" -Wdate-time 
-D_FORTIFY_SOURCE=3  -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/libpaper-2.2.5-0.3build1 
-I/usr/share/gnulib/lib -c -o paper-progname.o `test -f 'progname.c' || echo 
'./'`progname.c
progname.c: In function ‘set_program_name’:
progname.c:46:28: error: implicit declaration of function ‘memeq’; did you mean 
‘memmem’? [-Wimplicit-function-declaration]
   46 |   if (7 <= base - argv0 && memeq (base - 7, "/.libs/", 7))
      |                            ^~~~~
      |                            memmem
make[3]: *** [Makefile:1502: paper-progname.o] Error 1


solution: use `!memcmp` from stdlib instead.

** Affects: ubuntu
     Importance: Undecided
         Status: New

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

Title:
  ftbfs due to unavailable gnulib memeq

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to