[pkg-go] Bug#836805: Bug#836805: gobgp: FTBFS (i386): undefined: syscall.SYS_SETSOCKOPT
Vincent Bernat
bernat at debian.org
Thu Sep 8 05:31:57 UTC 2016
❦ 6 septembre 2016 02:42 CEST, "Aaron M. Ucko" <amu at alum.mit.edu> :
> 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?
Unfortunately, the wrapper is not available to use by external
packages. The syscall.SetsockoptString could be used instead since Go
strings are not null-terminated.
--
Use statement labels that mean something.
- The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160908/00513cd4/attachment.sig>
More information about the Pkg-go-maintainers
mailing list