Thanks !
I applied the patch. Still have some tests failing.
For instance tests/buf fails with the following error message:
iconv(&<"abcd">, &<4>, &s, &<3>) caused a SIGSEGV!
I am not sure but it seems that iconv() that is called from wrap_iconv() should return an error return value and set an errno value.
At least to my understanding that the way the test is written.
For musl implementation of iconv() returns 0 and sets no errno.
While in the case of standard Linux implementation, errno = E2BIG and -1 returned ( error return value) .
For the case buf linked dynamically against the standard libc.so library:
ldd tests/buf
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030d1000000)
librt.so.1 => /lib64/librt.so.1 (0x00000030d4400000)
libm.so.6 => /lib64/libm.so.6 (0x00000030d0800000)
libc.so.6 => /lib64/libc.so.6 (0x00000030d0400000)
/lib64/ld-linux-x86-64.so.2 (0x00000030cf400000)
> uname -a
Linux lnxbdc96 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
Can you please look into this ?
Thanks.