[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFH: golang dynamic linker




make[3]: Entering directory
`/build/buildd-golang_2011.04.27-1-kfreebsd-i386-IT5KRG/golang-2011.04.27/src/pkg/net'
CGOPKGPATH= cgo --  cgo_bsd.go cgo_unix.go
1: error: 'AI_MASK' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each
function it appears in
unresolved names

Any clues?

In this case, the go wants userspace library
which is the same as on linux.

I.e cgo_linux.go should be used on GNU/kFreeBSD.
Build-tested by hack bellow, IMHO suitable for debian.

The question is what should be done properly by upstream.

Petr


--- src/pkg/net/Makefile
+++ src/pkg/net/Makefile
@@ -31,7 +31,7 @@
        port.go\

 CGOFILES_freebsd=\
-       cgo_bsd.go\
+       cgo_linux.go\
        cgo_unix.go\

 GOFILES_darwin=\


Reply to: