Hey there,

Which OS (Linux distro) you're using? As far as I can see from cgo_linix.go 
[1], the constants, that trigger an error, should come from the "netdb.h", 
which comes with libc.

[1]: https://github.com/golang/go/blob/go1.19.13/src/net/cgo_linux.go

On Thursday, November 2, 2023 at 3:21:53 PM UTC+1 sbezverk wrote:

>  
>
>  
>
> Hello,
>
>  
>
> I came across a situation when “net” package is imported regardless 
> directly or indirectly via another package, go build generates these errors:
>
>  
>
> /sw/packages/go/1.19.4/src/net/cgo_linux.go:20:59: could not determine 
> kind of name for C.AI_ALL
>
> /sw/packages/go/1.19.4/src/net/cgo_linux.go:20:43: could not determine 
> kind of name for C.AI_V4MAPPED
>
>  
>
> I could not find any clues on the internet, curious if somebody saw 
> similar issue and somehow has fixed it.
>
>  
>
> Thank you
>
> Serguei
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/31212bb8-011b-410a-a3cd-838c6d439613n%40googlegroups.com.

Reply via email to