Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > the problem turned out to be obvious once you ignore most of the error > message ;-( The spurious import is in sysinfo.go, which unconditionally > imports the package, but only uses in some cases.
And this patch should fix the Solaris problem. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Thanks for tracking it down. Ian
diff -r a131218e78a4 libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Mon Sep 26 12:34:51 2011 -0700 +++ b/libgo/mksysinfo.sh Mon Sep 26 12:55:14 2011 -0700 @@ -96,6 +96,7 @@ echo 'package syscall' > ${OUT} echo 'import "unsafe"' >> ${OUT} +echo 'type _ unsafe.Pointer' >> ${OUT} # Get all the consts and types, skipping ones which could not be # represented in Go and ones which we need to rewrite. We also skip