This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libgo] Undefined references to log_syslog.syslog_c on Solaris
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Ian Lance Taylor <iant at google dot com>
- Date: Wed, 16 May 2012 16:44:56 +0200
- Subject: [libgo] Undefined references to log_syslog.syslog_c on Solaris
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