Re: [libgo] Provide strerror_r replacement (PR go/47515)

2011-03-30 Thread Ian Lance Taylor
Rainer Orth writes: > Apart from the lack of wait4, libgo on IRIX 6.5 contained an undefined > reference to strerror_r. This patch provides a replacement, based on > gnulib/lib/strerror_r.c, but massively simplified. I addressed this in a different way, with a new variant of syscall.Errstr writ

Re: [libgo] Provide strerror_r replacement (PR go/47515)

2011-03-23 Thread Rainer Orth
Ian Lance Taylor writes: > I think we should just have Go code that calls strerror anyhow. There's > no reason to drop into C here. I'll get to that at some point if nobody > else does. Fine with me. I've just noticed that not only IRIX 6.5 is affected, but Solaris 8 and 9, too. Rain

Re: [libgo] Provide strerror_r replacement (PR go/47515)

2011-03-23 Thread Ian Lance Taylor
Rainer Orth writes: > Jakub Jelinek writes: > >> On Tue, Mar 22, 2011 at 06:41:25PM +0100, Rainer Orth wrote: >>> Apart from the lack of wait4, libgo on IRIX 6.5 contained an undefined >>> reference to strerror_r. This patch provides a replacement, based on >>> gnulib/lib/strerror_r.c, but mass

Re: [libgo] Provide strerror_r replacement (PR go/47515)

2011-03-23 Thread Rainer Orth
Jakub Jelinek writes: > On Tue, Mar 22, 2011 at 06:41:25PM +0100, Rainer Orth wrote: >> Apart from the lack of wait4, libgo on IRIX 6.5 contained an undefined >> reference to strerror_r. This patch provides a replacement, based on >> gnulib/lib/strerror_r.c, but massively simplified. > > gnulib

Re: [libgo] Provide strerror_r replacement (PR go/47515)

2011-03-22 Thread Jakub Jelinek
On Tue, Mar 22, 2011 at 06:41:25PM +0100, Rainer Orth wrote: > Apart from the lack of wait4, libgo on IRIX 6.5 contained an undefined > reference to strerror_r. This patch provides a replacement, based on > gnulib/lib/strerror_r.c, but massively simplified. gnulib strerror_r.c is GPLv3+ licensed,

[libgo] Provide strerror_r replacement (PR go/47515)

2011-03-22 Thread Rainer Orth
Apart from the lack of wait4, libgo on IRIX 6.5 contained an undefined reference to strerror_r. This patch provides a replacement, based on gnulib/lib/strerror_r.c, but massively simplified. This allowed me to link with libgo, and has been tested on i386-pc-solaris2.11 with the result of the conf