Created attachment 569588 [details, diff]
Emerging mongo-tools-3.6.8 (currently stable) results in an error building mongoreplay:
vendor/src/github.com/google/gopacket/pcap/pcap.go:173:7: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
According to https://jira.mongodb.org/browse/TOOLS-2233 this problem occurs with dev-lang/go > 1.12. I'm attaching a patch to the ebuild that fixes the merge for me.
The problem also exists in the latest version of mongo-tools for the 3.x versions available in portage (3.6.10).
Yes, go-1.12 went stable before mongodb even reacted to the bug report :) The PR takes care of it, thanks for the report.
Got the same problem
I have it too
*** Bug 680872 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s):
Author: Tomas Mozes <email@example.com>
AuthorDate: 2019-03-18 06:48:40 +0100
Commit: Zac Medico <firstname.lastname@example.org>
CommitDate: 2019-03-28 10:39:07 -0700
app-admin/mongo-tools: fix building with dev-lang/go-1.12
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Tomáš Mózes <email@example.com>
Signed-off-by: Zac Medico <firstname.lastname@example.org>
app-admin/mongo-tools/mongo-tools-3.6.10.ebuild | 7 +++++++
app-admin/mongo-tools/mongo-tools-3.6.8.ebuild | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)