Le Thu, Oct 07, 2021 at 04:32:57PM +0200, Landry Breuil a écrit : > Hi, > > i have a wip update to sysutils/telegraf 1.20, but it fails to build > because of stupid things in the abi/structs somewhere: > > # github.com/grid-x/serial > ../../../go/pkg/mod/github.com/grid-x/[email protected]/serial_bsd.go:30:10: > undefined: syscall.B460800 > ../../../go/pkg/mod/github.com/grid-x/[email protected]/serial_bsd.go:78:44: > fds.X__fds_bits undefined (type *syscall.FdSet has no field or method > X__fds_bits) > ../../../go/pkg/mod/github.com/grid-x/[email protected]/serial_bsd.go:79:45: > fds.X__fds_bits undefined (type *syscall.FdSet has no field or method > X__fds_bits) > ../../../go/pkg/mod/github.com/grid-x/[email protected]/serial_bsd.go:86:5: > fds.X__fds_bits undefined (type *syscall.FdSet has no field or method > X__fds_bits) > ../../../go/pkg/mod/github.com/grid-x/[email protected]/serial_bsd.go:92:12: > fds.X__fds_bits undefined (type *syscall.FdSet has no field or method > X__fds_bits) > ../../../go/pkg/mod/github.com/grid-x/[email protected]/termios_bsd.go:10:17: > cannot use speed (type uint32) as type int32 in assignment > ../../../go/pkg/mod/github.com/grid-x/[email protected]/termios_bsd.go:14:17: > cannot use speed (type uint32) as type int32 in assignment > github.com/nats-io/nats-server/v2/server > # github.com/nats-io/nats-server/v2/server > ../../../go/pkg/mod/github.com/nats-io/nats-server/[email protected]/server/disk_avail.go:31:23: > fs.Bavail undefined (type syscall.Statfs_t has no field or method Bavail) > ../../../go/pkg/mod/github.com/nats-io/nats-server/[email protected]/server/disk_avail.go:31:43: > fs.Bsize undefined (type syscall.Statfs_t has no field or method Bsize) > > the first seems to fail because of the defines added in > https://github.com/grid-x/serial/commit/a9d73190f68537dd387c54a90a249ed9547429cd, > and that's beyond my go knowledge to fix this - i guess one would have > to fork the serial repo and point the go thing to fetch from there but..
i see there's https://github.com/4a6f656c/goburrow-serial/commit/0939434599a76d683ff4e8152b5d39e59e089b0c but i really have no idea how to put that in the go module stuff :)
