Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error: redefinition of ‘SyscallNoError’ #56

Open
HQuest opened this issue Jun 8, 2023 · 0 comments
Open

Compile error: redefinition of ‘SyscallNoError’ #56

HQuest opened this issue Jun 8, 2023 · 0 comments

Comments

@HQuest
Copy link

HQuest commented Jun 8, 2023

root@darkstar:/tmp/dovecot-xaps-daemon# go build -o xapsd
go: downloading github.com/sirupsen/logrus v0.0.0-20180129181852-768a92a02685
go: downloading github.com/st3fan/dovecot-xaps-daemon v0.0.0-20190315235014-af50c8175e09
go: downloading golang.org/x/crypto v0.0.0-20180127211104-1875d0a70c90
go: downloading golang.org/x/sys v0.0.0-20180126165840-ff2a66f350ce
go: downloading github.com/go-redis/redis v6.15.2+incompatible
go: downloading github.com/timehop/apns v0.0.0-20160922055839-7dfe710e494f

golang.org/x/sys/unix

/root/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_linux.go:20:1: error: redefinition of ‘SyscallNoError’
20 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
| ^
/root/go/pkg/mod/golang.org/x/[email protected]/unix/gccgo.go:20:1: note: previous definition of ‘SyscallNoError’ was here
20 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) {
| ^
/root/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_linux.go:24:1: error: redefinition of ‘RawSyscallNoError’
24 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
| ^
/root/go/pkg/mod/golang.org/x/[email protected]/unix/gccgo.go:48:1: note: previous definition of ‘RawSyscallNoError’ was here
48 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) {
| ^

Reported on golang under golang/go#18312. Fixed in a newer version of golang.org/x/sys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant