Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple "identifier _Ctype_struct_[...] may conflict with identifiers generated by cgo" errors when building packetbeat with go.1.12. #11054

Closed
mtorromeo opened this issue Mar 4, 2019 · 4 comments
Labels
needs_team Indicates that the issue/PR needs a Team:* label Packetbeat Stalled

Comments

@mtorromeo
Copy link

The following errors were introduced in beats release 6.6.1 with #10477.

go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-03-04T08:34:22Z -X github.com/elastic/beats/libbeat/version.commit=6.6.1"
# github.com/elastic/beats/vendor/github.com/tsg/gopacket/pcap
../vendor/github.com/tsg/gopacket/pcap/pcap.go:173:7: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:385:13: identifier "_Ctype_struct_pcap_stat" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:446:10: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:489:21: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:552:34: identifier "_Ctype_struct_pcap_addr" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:555:56: identifier "_Ctype_struct_pcap_addr" may conflict with identifiers generated by cgo
../vendor/github.com/tsg/gopacket/pcap/pcap.go:821:13: identifier "_Ctype_struct_pcap_pkthdr" may conflict with identifiers generated by cgo
make: *** [../libbeat/scripts/Makefile:100: packetbeat] Error 2

The issue is present in the vendored tsg/gopacket but is already fixed in google/gopacket#589.

@leopucci
Copy link
Contributor

Winner winner... pull request for dinner =)

@leopucci
Copy link
Contributor

leopucci commented Mar 29, 2019

Library already fixed
tsg/gopacket@dd3d0e4
tsg/gopacket#18

@c00w c00w mentioned this issue Sep 20, 2019
10 tasks
@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Jul 8, 2020
@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label Packetbeat Stalled
Projects
None yet
Development

No branches or pull requests

3 participants