x/cmd/gotype: undeclared name: _Ctype_struct_bpf_program #25439
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Cgo struct types of the form
_Ctype_struct_
seems to be unknown togotype
.What version of Go are you using (
go version
)?go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOOS="linux"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
What did you do?
Lint using
gotype
a dummy package which importsgithub.com/google/gopacket/pcap
.$ go get -u github.com/google/gopacket/pcap
$ gotype dummy.go
What did you expect to see?
No output (as in everything is OK).
What did you see instead?
Running
gotype
ongithub.com/google/gopacket/pcap
directly gives:The text was updated successfully, but these errors were encountered: