Public bug reported:

nextepc FTBFS due ISO C23 declaration of bsearch, memchr, strchr,
strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr,
which now returns a pointer to a const-qualified type when the input
argument is a pointer to a const-qualified type [1].

build log [2] w/ snippet below

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. 
-I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE 
-DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME 
-DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=3 -Wall -Werror 
-Wno-shift-negative-value -Wno-unused-but-set-variable 
-Wno-unknown-warning-option -g -O2 -Werror=implicit-function-declaration 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/nextepc-0.3.10+nods-4.4build1 
-Wno-error=stringop-overflow -Wno-unused-result -c glue.c  -fPIC -DPIC -o 
.libs/glue.o
glue.c: In function 'sysctlbyname':
glue.c:316:14: error: assignment discards 'const' qualifier from pointer target 
type [-Werror=discarded-qualifiers]
  316 |         varp = strrchr(name, '.');
      |              ^
At top level:
cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may 
have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[4]: *** [Makefile:493: glue.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib/ipfw'
make[3]: *** [Makefile:385: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[2]: *** [Makefile:636: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:459: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2


[1] 
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19
[2] 
https://launchpadlibrarian.net/853462044/buildlog_ubuntu-resolute-amd64.nextepc_0.3.10+nods-4.4build1_BUILDING.txt.gz

** Affects: nextepc (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: nextepc (Ubuntu Resolute)
     Importance: Undecided
         Status: New

** Affects: nextepc (Debian)
     Importance: Unknown
         Status: Unknown

** Also affects: nextepc (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #1128697
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128697

** Also affects: nextepc (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128697
   Importance: Unknown
       Status: Unknown

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

Title:
  nextepc: FTBFS with glibc 2.43 due to ISO C23 const return types

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


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

Reply via email to