You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. On OpenBSD 5.2, run mkall.sh at syscall
2. go build syscall
3.
What is the expected output? What do you see instead?
no fails
Please use labels and text to provide additional information.
./ztypes_openbsd_amd64.go:100: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:102: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:104: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:108: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:110: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:117: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:118: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:119: duplicate field Rmx_expire
./ztypes_openbsd_amd64.go:351: duplicate field Expire
./ztypes_openbsd_amd64.go:352: duplicate field Expire
./ztypes_openbsd_amd64.go:119: too many errors
The text was updated successfully, but these errors were encountered:
Had a quick look;
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
};
1. run go tool cgo -godefs openbsd.go and got;
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs openbsd.go
package syscall
type Timespec struct {
Rmx_expire int32
Pad_cgo_0 [4]byte
Tv_nsec int64
}
2. When we remove "#include <net/bpf.h>" line from openbsd.go, got;
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs openbsd.go
package syscall
type Timespec struct {
Sec int32
Pad_cgo_0 [4]byte
Nsec int64
}
Funny. Perhaps we should have a look at debug/elf package.
% uname -a
OpenBSD vm.localhost 5.2 GENERIC.MP #10 amd64
% hg id
9b31d3f52fff+ tip
P.S. Original motivation to generate z-files on OpenBSD is,
just needed for Go 1.1 because OpenBSD 5.1? .2 changed their
ABI especially if_data in net/if.h and that breaks net.Interfaces API.
The text was updated successfully, but these errors were encountered: