[Cin] Error in db/ on Alpine linux (musl-libc)

Andrew Randrianasulu randrianasulu at gmail.com
Sun Feb 24 07:13:46 CET 2019


Guess i'm tried to bite off too big piece of pie for now ...

g++  -c -o ppc64le/tdb.o tdb.C
tdb.C: In member function 'int Db::icommit(int)':
tdb.C:4606:54: error: 'qsort_r' was not declared in this scope
   qsort_r(pages, npages, sizeof(*pages), ioCmpr, this);
                                                      ^
tdb.C: In member function 'int Db::load()':
tdb.C:6218:54: error: 'qsort_r' was not declared in this scope
   qsort_r(pages, npages, sizeof(*pages), ioCmpr, this);
                                                      ^
make: *** [Makefile:35: ppc64le/tdb.o] Error 1


it seems qsort_r was not implemented in musl libc at least in 2017:
https://github.com/elogind/elogind/issues/83 - see comment "maxice8  commented 
Oct 18, 2018" - "Musl upstream has refused to merge qsort_r since there are 2 
competing implementations claiming the same name from GNU and from FreeBSD i 
guess in the meantime the GNU qsort_r can be provided on musl_missing ?"

In c programs this can be workarounded, not sure about c++

http://lists.openembedded.org/pipermail/openembedded-core/2014-March/091307.html
https://github.com/Lupus/ccl/blob/master/qsort_r.c

But in meantime I'll try to disable zmpeg3 and tdb, and signal handling (if 
possible) in hope it will make Cinelerra-GG buildable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DB_build_error_musl.log
Type: text/x-log
Size: 524 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20190224/1a35c7ac/attachment.log>


More information about the Cin mailing list