❦  6 septembre 2016 02:42 CEST, "Aaron M. Ucko" <a...@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)

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to