[Bug 202504] lang/go: golang 1.5 on FreeBSD 11
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 20 04:36:14 UTC 2015
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 at FreeBSD.org
Reporter: ldang at nahannisys.com
Assignee: jlaffaye at FreeBSD.org
CC:
Flags: maintainer-feedback?(jlaffaye at 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.
More information about the freebsd-ports-bugs
mailing list