Public bug reported: The package has been removed from Debian testing but is a Build-Depends from coreutils-from in Ubuntu
Autopkgtests are failing with glibc 2.43 https://autopkgtest.ubuntu.com/packages/t/toybox/resolute/amd64 554s Compile toybox 555s ..........lib/password.c: In function 'update_password': 555s lib/password.c:148:21: warning: pointer 'nfp' may be used after 'fclose' [-Wuse-after-free] 555s 148 | else if (entry) fprintf(nfp, "%s\n", entry); 555s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 555s lib/password.c:144:3: note: call to 'fclose' here 555s 144 | fclose(nfp); // automatically unlocks 555s | ^~~~~~~~~~~ 555s In file included from /usr/include/stdio.h:974, 555s from ./toys.h:30, 555s from lib/password.c:8: 555s In function 'fprintf', 555s inlined from 'update_password' at lib/password.c:148:21: 555s /usr/include/x86_64-linux-gnu/bits/stdio2.h:111:10: warning: pointer 'nfp' may be used after 'fclose' [-Wuse-after-free] 555s 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, 555s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 555s 112 | __va_arg_pack ()); 555s | ~~~~~~~~~~~~~~~~~ 555s lib/password.c: In function 'update_password': 555s lib/password.c:144:3: note: call to 'fclose' here 555s 144 | fclose(nfp); // automatically unlocks 555s | ^~~~~~~~~~~ 556s ...........................toys/net/netstat.c: In function 'display_routes': 556s toys/net/netstat.c:290:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 556s 290 | fgets(toybuf, sizeof(toybuf), fp); 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 556s toys/net/netstat.c: In function 'show_ip': 556s toys/net/netstat.c:139:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 556s 139 | fgets(toybuf, sizeof(toybuf), fp); 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 556s toys/net/netstat.c: In function 'show_unix_sockets': 556s toys/net/netstat.c:209:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 556s 209 | fgets(toybuf, sizeof(toybuf), fp); 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 559s ........................................................................................toys/other/watchdog.c: In function 'watchdog_main': 559s toys/other/watchdog.c:48:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 559s 48 | write(TT.fd, "", 1); 559s | ^~~~~~~~~~~~~~~~~~~ 559s toys/other/watchdog.c: In function 'safe_shutdown': 559s toys/other/watchdog.c:34:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 559s 34 | write(TT.fd, "V", 1); 559s | ^~~~~~~~~~~~~~~~~~~~ 562s .......................................................toys/posix/tar.c: In function 'unpack_tar': 562s toys/posix/tar.c:869:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 562s 869 | (void)write(sefd, 0, 0); 562s | ^~~~~~~~~~~~~~~~~ 562s ............../usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/passwd.o: in function `passwd_main': 562s passwd.c:(.text.passwd_main+0x1ca): undefined reference to `crypt' 562s /usr/bin/x86_64-linux-gnu-ld.bfd: passwd.c:(.text.passwd_main+0x25e): undefined reference to `crypt' 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/su.o: in function `su_main': 562s su.c:(.text.su_main+0x137): undefined reference to `crypt' 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/login.o: in function `login_main': 562s login.c:(.text.login_main+0x1f9): undefined reference to `crypt' 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/mkpasswd.o: in function `mkpasswd_main': 562s mkpasswd.c:(.text.mkpasswd_main+0x1d6): undefined reference to `crypt' 562s collect2: error: ld returned 1 exit status It also needs to get a Build-Depends added on libgcrypt-dev (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106964) but builds also fails currently... ** Affects: toybox (Ubuntu) Importance: Undecided Status: New ** Tags: ftbfs resolute update-excuse ** Tags added: ftbfs resolute ** Description changed: The package has been removed from Debian testing but is a Build-Depends from coreutils-from in Ubuntu Autopkgtests are failing with glibc 2.43 - https://autopkgtest.ubuntu.com/packages/u/ulfius/resolute/amd64 + https://autopkgtest.ubuntu.com/packages/t/toybox/resolute/amd64 - 594s gcc -c -Wall -D_REENTRANT -I../include -DDEBUG -g -O0 -Wconversion ../example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.c - 594s ../example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.c: In function ‘get_filename_ext’: - 594s ../example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.c:131:25: error: assignment of read-only location ‘*(const char *)strchr(dot, 63)’ - 594s 131 | *strchr(dot, '?') = '\0'; - 594s | ^ - 594s make: *** [Makefile:42: static_compressed_inmemory_website_callback.o] Error 1 + 554s Compile toybox + 555s ..........lib/password.c: In function 'update_password': + 555s lib/password.c:148:21: warning: pointer 'nfp' may be used after 'fclose' [-Wuse-after-free] + 555s 148 | else if (entry) fprintf(nfp, "%s\n", entry); + 555s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ + 555s lib/password.c:144:3: note: call to 'fclose' here + 555s 144 | fclose(nfp); // automatically unlocks + 555s | ^~~~~~~~~~~ + 555s In file included from /usr/include/stdio.h:974, + 555s from ./toys.h:30, + 555s from lib/password.c:8: + 555s In function 'fprintf', + 555s inlined from 'update_password' at lib/password.c:148:21: + 555s /usr/include/x86_64-linux-gnu/bits/stdio2.h:111:10: warning: pointer 'nfp' may be used after 'fclose' [-Wuse-after-free] + 555s 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, + 555s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 555s 112 | __va_arg_pack ()); + 555s | ~~~~~~~~~~~~~~~~~ + 555s lib/password.c: In function 'update_password': + 555s lib/password.c:144:3: note: call to 'fclose' here + 555s 144 | fclose(nfp); // automatically unlocks + 555s | ^~~~~~~~~~~ + 556s ...........................toys/net/netstat.c: In function 'display_routes': + 556s toys/net/netstat.c:290:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 556s 290 | fgets(toybuf, sizeof(toybuf), fp); + 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 556s toys/net/netstat.c: In function 'show_ip': + 556s toys/net/netstat.c:139:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 556s 139 | fgets(toybuf, sizeof(toybuf), fp); + 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 556s toys/net/netstat.c: In function 'show_unix_sockets': + 556s toys/net/netstat.c:209:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 556s 209 | fgets(toybuf, sizeof(toybuf), fp); + 556s | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 559s ........................................................................................toys/other/watchdog.c: In function 'watchdog_main': + 559s toys/other/watchdog.c:48:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 559s 48 | write(TT.fd, "", 1); + 559s | ^~~~~~~~~~~~~~~~~~~ + 559s toys/other/watchdog.c: In function 'safe_shutdown': + 559s toys/other/watchdog.c:34:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 559s 34 | write(TT.fd, "V", 1); + 559s | ^~~~~~~~~~~~~~~~~~~~ + 562s .......................................................toys/posix/tar.c: In function 'unpack_tar': + 562s toys/posix/tar.c:869:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 562s 869 | (void)write(sefd, 0, 0); + 562s | ^~~~~~~~~~~~~~~~~ + 562s ............../usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/passwd.o: in function `passwd_main': + 562s passwd.c:(.text.passwd_main+0x1ca): undefined reference to `crypt' + 562s /usr/bin/x86_64-linux-gnu-ld.bfd: passwd.c:(.text.passwd_main+0x25e): undefined reference to `crypt' + 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/su.o: in function `su_main': + 562s su.c:(.text.su_main+0x137): undefined reference to `crypt' + 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/login.o: in function `login_main': + 562s login.c:(.text.login_main+0x1f9): undefined reference to `crypt' + 562s /usr/bin/x86_64-linux-gnu-ld.bfd: generated/obj/mkpasswd.o: in function `mkpasswd_main': + 562s mkpasswd.c:(.text.mkpasswd_main+0x1d6): undefined reference to `crypt' + 562s collect2: error: ld returned 1 exit status - - It also needs to get a Build-Depends added on libgcrypt-dev (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106964) but builds also fails currently... + It also needs to get a Build-Depends added on libgcrypt-dev + (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106964) but builds + also fails currently... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2144654 Title: Build and tests failing with glibc 2.43 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/toybox/+bug/2144654/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
