This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]