As of today, all Go link tests were failing like this: Undefined first referenced symbol in file log_syslog.syslog_c /var/gcc/regression/trunk/11-gcc/build/i386-pc-solaris2.11/. FAIL: go.go-torture/execute/array-1.go compilation, -O0
The symbol is referenced in log/syslog.o, but not defined anywhere. It turned out that this happens because an asm() in go/log/syslog/syslog_c.c hasn't been updated. The following patch fixes this and allowed the go and libgo tests to pass as expected on i386-pc-solaris2.11. Rainer
diff --git a/libgo/go/log/syslog/syslog_c.c b/libgo/go/log/syslog/syslog_c.c --- a/libgo/go/log/syslog/syslog_c.c +++ b/libgo/go/log/syslog/syslog_c.c @@ -10,7 +10,7 @@ can't represent a C varargs function in Go. */ void syslog_c(int, const char*) - asm ("libgo_log.syslog.syslog_c"); + asm ("log_syslog.syslog_c"); void syslog_c (int priority, const char *msg)
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University