[pkg-go] Bug#836805: gobgp: FTBFS (i386): undefined: syscall.SYS_SETSOCKOPT

Aaron M. Ucko amu at alum.mit.edu
Tue Sep 6 00:42:52 UTC 2016


Source: gobgp
Version: 1.10-1
Severity: important
Justification: fails to build from source

The i386 build of gobgp failed:

  # github.com/osrg/gobgp/server
  src/github.com/osrg/gobgp/server/sockopt.go:66: undefined: syscall.SYS_SETSOCKOPT
  src/github.com/osrg/gobgp/server/sockopt_linux.go:95: undefined: syscall.SYS_SETSOCKOPT

AFAICT, this error stems from the fact that early Linux architectures such
as i386 historically multiplexed setsockopt and several other functions
through a special "socketcall" syscall.  i386 did eventually develop a
dedicated setsockopt syscall (number 366), but zsysnum_linux_386.go
doesn't (yet) reflect that, and I don't know what the runtime portability
considerations of using it would be anyway.  Instead, I'd recommend using
the predefined syscall.setsockopt wrapper.

Could you please take a look?

Thanks!



More information about the Pkg-go-maintainers mailing list