Public bug reported:

Our last archive rebuild against glibc 2.43 flagged this package as likely
FTBFS if rebuilt on glibc2.43, due to new C23 const qualifiers.

Here's a failing build log:
https://launchpadlibrarian.net/849520915/buildlog_ubuntu-resolute-amd64.libnfs_5.0.2-1build2_BUILDING.txt.gz

/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/include/nfsc 
-I/<<PKGBUILDDIR>>/mount -I/<<PKGBUILDDIR>>/nfs -I/<<PKGBUILDDIR>>/nfs4 
-I/<<PKGBUILDDIR>>/nlm -I/<<PKGBUILDDIR>>/nsm -I/<<PKGBUILDDIR>>/portmap 
-I/<<PKGBUILDDIR>>/rquota -I/<<PKGBUILDDIR>>/win32 
"-D_U_=__attribute__((unused))" -Wdate-time -D_FORTIFY_SOURCE=3 -Wall -Wshadow 
-Wno-write-strings -Wstrict-prototypes -Wpointer-arith -Wcast-align 
-Wno-strict-aliasing -Werror -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/libnfs-5.0.2-1build2 -c -o 
libnfs_la-nfs_v4.lo `test -f 'nfs_v4.c' || echo './'`nfs_v4.c
nfs_v3.c: In function 'nfs3_mknod_async':
nfs_v3.c:3231:13: error: assignment discards 'const' qualifier from pointer 
target type [-Werror=discarded-qualifiers]
 3231 |         ptr = strrchr(path, '/');
      |             ^
nfs_v3.c: In function 'nfs3_unlink_async':
nfs_v3.c:3332:13: error: assignment discards 'const' qualifier from pointer 
target type [-Werror=discarded-qualifiers]
 3332 |         ptr = strrchr(path, '/');
      |             ^
nfs_v3.c: In function 'nfs3_create_async':
nfs_v3.c:3598:13: error: assignment discards 'const' qualifier from pointer 
target type [-Werror=discarded-qualifiers]
 3598 |         ptr = strrchr(path, '/');
      |             ^
nfs_v3.c: In function 'nfs3_rmdir_async':
nfs_v3.c:3698:13: error: assignment discards 'const' qualifier from pointer 
target type [-Werror=discarded-qualifiers]
 3698 |         ptr = strrchr(path, '/');
      |             ^
nfs_v3.c: In function 'nfs3_mkdir2_async':
nfs_v3.c:3800:13: error: assignment discards 'const' qualifier from pointer 
target type [-Werror=discarded-qualifiers]
 3800 |         ptr = strrchr(path, '/');
      |             ^

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

** Affects: libnfs (Debian)
     Importance: Unknown
         Status: Confirmed


** Tags: ftbfs

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

** Also affects: libnfs (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128679
   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/2142895

Title:
  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/libnfs/+bug/2142895/+subscriptions


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

Reply via email to