https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535

--- Comment #39 from Rainer Orth <ro at gcc dot gnu.org> ---
I'm currently trying my hand on getting libgo to build in GCC trunk on
FreeBSD/amd64 15.0.  I'm almost done, but some errors totally confuse me:

go/syscall/route_bsd.go:218:16: error: use of undefined type ‘RtMsghdr’
  218 |         Header RtMsghdr
      |                ^
go/syscall/route_bsd.go:226:31: error: reference to undefined name ‘RTAX_MAX’
  226 |         for i := uint(0); i < RTAX_MAX && len(b) >=
minRoutingSockaddrLe
n; i++ {
      |                          

and several others due to the same issue: all the RTA_/RTAX_/RTM_ constants
are claimed to be missing, but both RtMsghdr and those are in the generated
sysinfo.go just fine.

I've searched high and low, but am stuck here.  Any insight is very much
appreciated.

Reply via email to