Date: Thu, 20 Aug 2015 04:36:13 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202504] lang/go: golang 1.5 on FreeBSD 11 Message-ID: <bug-202504-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202504 Bug ID: 202504 Summary: lang/go: golang 1.5 on FreeBSD 11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: jlaffaye@FreeBSD.org Reporter: ldang@nahannisys.com Assignee: jlaffaye@FreeBSD.org CC: Flags: maintainer-feedback?(jlaffaye@FreeBSD.org) if_data8 in types_freebsd.go is incompatible with FreeBSD-11's if.h. This results in go:net failing test and not being able to pick up available network interfaces correctly. Extra info: https://github.com/golang/go/issues/11641 ztypes_freebsd_{amd64/i386}.go need to be regenerated with: CC=clang go tool cgo -godefs types_freebsd.go > ztypes_freebsd_amd64.go Patch with: --- types_freebsd.go 2015-08-19 21:29:37.683186671 -0700 +++ /opt/go-src/1.5/go/src/syscall/types_freebsd.go 2015-08-19 17:39:53.767826664 -0700 @@ -106,15 +106,16 @@ // This structure is a duplicate of if_data on FreeBSD 8-STABLE. // See /usr/include/net/if.h. +#undef ifi_epoch +#undef ifi_lastchange struct if_data8 { u_char ifi_type; u_char ifi_physical; u_char ifi_addrlen; u_char ifi_hdrlen; u_char ifi_link_state; - u_char ifi_spare_char1; - u_char ifi_spare_char2; - u_char ifi_datalen; + u_char ifi_vhid; + u_short ifi_datalen; u_long ifi_mtu; u_long ifi_metric; u_long ifi_baudrate; -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202504-13>