Andrew,
Could you test the Termux build with the attached patch2? I found a mistake in what I had checked into GIT that I thought I had fixed. I do not get a failure on fedora or ubuntu 16 so can not test.
Mistake was corrected in the following + line in patch2 (QSort was mistakenly typed as qsort).
- qsort(SortArray, NewColorSubdiv[Index].NumEntries,
- sizeof(QuantizedColorType *), SortCmpRtn);
+ QSort(SortArray, -1, NewColorSubdiv[Index].NumEntries, SortRGBAxis);
/* Relink the sorted list into one: */
for (j = 0; j < NewColorSubdiv[Index].NumEntries - 1; j++) {
@@ -339,19 +359,4 @@