Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768027 - sys-fs/e2fsprogs-1.46.0 - ld: rehash.o: in function `e2fsck_rehash_dir': rehash.c:(.text+0xabc): undefined reference to `qsort_r' (on musl)
Summary: sys-fs/e2fsprogs-1.46.0 - ld: rehash.o: in function `e2fsck_rehash_dir': reha...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-01-30 20:42 UTC by ernsteiswuerfel
Modified: 2021-03-11 21:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (sys-fs:e2fsprogs-1.46.0:20210130-203721.log,73.02 KB, text/plain)
2021-01-30 20:42 UTC, ernsteiswuerfel
Details
emerge --info (file_768027.txt,5.53 KB, text/plain)
2021-01-30 20:43 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-01-30 20:42:42 UTC
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
Comment 1 ernsteiswuerfel archtester 2021-01-30 20:43:20 UTC
Created attachment 685221 [details]
emerge --info
Comment 3 tt_1 2021-02-04 19:25:06 UTC
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?
Comment 4 ernsteiswuerfel archtester 2021-02-04 19:33:49 UTC
(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.
Comment 5 Ionen Wolkens gentoo-dev 2021-02-04 19:38:13 UTC
(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.
Comment 6 Kyle Elbert 2021-02-05 10:36:10 UTC
upstream issue: https://github.com/tytso/e2fsprogs/issues/58
Comment 7 ernsteiswuerfel archtester 2021-03-11 21:34:35 UTC
Fixed in 1.46.1.