[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Expired ports archive key on current-hurd-i386 image





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 on
GNU/Hurd: since the implementation can be userland one really has to
call the fcntl() function provided by glibc, as it really should on any
reasonable 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#L7

Since 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




Reply to: