Created attachment 685218 [details] build.log [...] i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H rehash.c -o rehash.o rehash.c: In function 'e2fsck_rehash_dir': rehash.c:1051:3: warning: implicit declaration of function 'qsort_r'; did you mean 'qsort'? [-Wimplicit-function-declaration] 1051 | qsort_r(fd.harray+2, fd.num_array-2, sizeof(struct hash_entry), | ^~~~~~~ | qsort i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H logfile.c -o logfile.o i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H sigcatcher.c -o sigcatcher.o i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H readahead.c -o readahead.o i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H extents.c -o extents.o i686-gentoo-linux-musl-gcc -c -I. -I../lib -I../lib -D_GNU_SOURCE -Os -march=pentium4 -pipe -pthread -DHAVE_CONFIG_H encrypted_files.c -o encrypted_files.o i686-gentoo-linux-musl-gcc -pthread -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,../lib -rdynamic -o e2fsck unix.o e2fsck.o super.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o journal.o badblocks.o util.o dirinfo.o dx_dirinfo.o ehandler.o problem.o message.o quota.o recovery.o region.o revoke.o ea_refcount.o rehash.o logfile.o sigcatcher.o readahead.o extents.o encrypted_files.o ../lib/libsupport.a ../lib/libext2fs.so -lcom_err -lblkid -luuid ../lib/libe2p.so -ldl /usr/lib/gcc/i686-gentoo-linux-musl/9.3.0/../../../../i686-gentoo-linux-musl/bin/ld: rehash.o: in function `e2fsck_rehash_dir': rehash.c:(.text+0xabc): undefined reference to `qsort_r' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:453: e2fsck] Error 1
Created attachment 685221 [details] emerge --info
qsort_r usage was recently added in: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/e2fsck/rehash.c?id=9d2e1df4c9d8144e1a2b0a49b39f0ee10187f39b
that patch seems to have been merged to e2fsprogs-1.46.0, so how about you keyword those and see if its working for you?
(In reply to tt_1 from comment #3) > that patch seems to have been merged to e2fsprogs-1.46.0, so how about you > keyword those and see if its working for you? This bug is about e2fsprogs-1.46.0 failing to build.
(In reply to tt_1 from comment #3) > that patch seems to have been merged to e2fsprogs-1.46.0, so how about you > keyword those and see if its working for you? That wasn't a fix, was pointing to what introduced the issue (added in 1.46.0), so previous versions works and only this one fails.
upstream issue: https://github.com/tytso/e2fsprogs/issues/58
Fixed in 1.46.1.