1,2 was fixed, but still gets segfault. 2 trivial, cmp(t,x,y) to cmp(x,y,t), (thunk,a,b) to (a,b,thunk) etc. 1. _IOR macro for ioctl should use 2U<<30 instead of 2<<30 2. your qsort_r seem to have the wrong prototype 3 is fine by me. 3. settimeofday should follow the bsd declaration other points need to be checked, i will look at these. TIA On Sun, May 26, 2013 at 6:14 PM, Szabolcs Nagy wrote: > * plan9assembler [2013-05-26 06:34:12 +0900]: > > Hi, i attached build log, and > > there were some minor musl issues: > _IOR macro for ioctl should use 2U<<30 instead of 2<<30 > settimeofday should follow the bsd declaration > x86_64 posix types should be long instead of long long > > (glibc is not entirely consistent on x86_64: > the types in user.h use long long) > > (i can prepare patches for these) > > your qsort_r seem to have the wrong prototype > (does not match cmp_t) > > there are some other problems as well, i'm not sure > which one trips mount, maybe you should recompile > musl and util-linux with -O0 -g3 and get a backtrace > from the crash >