On Wed, Apr 15, 2020 at 4:50 pm, Samuel Thibault <sthibault@debian.org> wrote:
Hello, Pirate Praveen, le mer. 15 avril 2020 20:15:30 +0530, a ecrit:src/github.com/nsf/termbox-go/termbox.go:507:37: error: reference to undefined identifier ‘syscall.SYS_FCNTL’ 507 | r, _, e := syscall.Syscall(syscall.SYS_FCNTL, uintptr(fd), uintptr(cmd), | ^Such hardcoding is indeed deemed to fail: fcntl is not a system call onGNU/Hurd: since the implementation can be userland one really has tocall the fcntl() function provided by glibc, as it really should on anyreasonable Unix system.
I'm not very good in golang but I think gccgo should provide the correct mapping
https://github.com/nsf/termbox-go/blob/master/termbox.go#L7Since it is importing syscall. It is my understanding that it is coming from golang and not from this module https://golang.org/pkg/syscall/
Samuel