nsf / termbox-go

Pure Go termbox implementation
http://godoc.org/github.com/nsf/termbox-go
MIT License
4.66k stars 372 forks source link

build failure on gnu/hurd #223

Closed pravi closed 3 years ago

pravi commented 4 years ago

There are many errors similar to

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),

From Debian GNU/Hurd maintainers,

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.

Can you use fcntl() function provided by glibc here?

Note: This was git master branch snapshot from 20160914 (current version in Debian)

pravi commented 4 years ago

It looks like an issue with gccgo on hurd.

pravi commented 4 years ago

Reported it here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956820

scrouthtv commented 3 years ago

There hasn't been any activity on their side, closing for now.