Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678924 - app-admin/mongo-tools-4.0.4 with dev-lang/go-1.12: pcap.go:173:7: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
Summary: app-admin/mongo-tools-4.0.4 with dev-lang/go-1.12: pcap.go:173:7: identifier ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL: https://jira.mongodb.org/browse/TOOLS...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-02-27 13:49 UTC by Kobboi
Modified: 2019-03-28 17:39 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2019-02-27 13:49:50 UTC
* Package:    app-admin/mongo-tools-4.0.4
 * Repository: gentoo
 * Maintainer: ultrabug@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux ssl userland_GNU
 * FEATURES:   installsources network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
Building bsondump...
bsondump version: built-without-version-string
Building mongostat...
mongostat version: built-without-version-string
Building mongofiles...
mongofiles version: built-without-version-string
Building mongoexport...
mongoexport version: built-without-version-string
Building mongoimport...
mongoimport version: built-without-version-string
Building mongorestore...
mongorestore version: built-without-version-string
Building mongodump...
mongodump version: built-without-version-string
Building mongotop...
mongotop version: built-without-version-string
Building mongoreplay...
# github.com/google/gopacket/pcap
vendor/src/github.com/google/gopacket/pcap/pcap.go:173:7: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:384:13: identifier "_Ctype_struct_pcap_stat" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:421:49: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:444:10: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:462:41: identifier "_Ctype_struct_bpf_insn" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:538:66: identifier "_Ctype_struct_bpf_program" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:551:19: identifier "_Ctype_struct_bpf_insn" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:659:34: identifier "_Ctype_struct_pcap_addr" may conflict with identifiers generated by cgo
vendor/src/github.com/google/gopacket/pcap/pcap.go:662:56: identifier "_Ctype_struct_pcap_addr" may conflict with identifiers generated by cgo
Error building mongoreplay
 * ERROR: app-admin/mongo-tools-4.0.4::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 468:  Called die
 * The specific snippet of code:
 *       ./build.sh "${myconf[@]}" || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=app-admin/mongo-tools-4.0.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/mongo-tools-4.0.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/mongo-tools-4.0.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/mongo-tools-4.0.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/mongo-tools-4.0.4/work/mongo-tools-r4.0.4'
 * S: '/var/tmp/portage/app-admin/mongo-tools-4.0.4/work/mongo-tools-r4.0.4'
Comment 1 Kobboi 2019-02-27 13:50:17 UTC
Compiles fine with dev-lang/go-1.11.5
Comment 2 Opportunist 2019-03-04 05:16:15 UTC
confirm with golang 1.12
Comment 3 Harris Landgarten 2019-03-04 05:20:53 UTC
same with mongo-tools-4.0.6
Comment 4 Tomáš Mózes 2019-03-04 07:33:07 UTC
Seems like gopacket in mongo-tools needs an upgrade: https://github.com/google/gopacket/pull/589
Comment 5 Larry the Git Cow gentoo-dev 2019-03-04 15:57:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7002ba14843854bea72a9fff8195ff4700956ec3

commit 7002ba14843854bea72a9fff8195ff4700956ec3
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-03-04 07:38:45 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-04 15:49:10 +0000

    app-admin/mongo-tools: require <dev-lang/go-1.12
    
    Bug: https://bugs.gentoo.org/678924
    Bug: https://jira.mongodb.org/browse/TOOLS-2233
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/11250
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 app-admin/mongo-tools/mongo-tools-4.0.6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2019-03-07 02:56:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=896a97d1196474616729ad75a81418789b8b7187

commit 896a97d1196474616729ad75a81418789b8b7187
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-03-07 02:54:06 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-03-07 02:56:05 +0000

    app-admin/mongo-tools: allow building with dev-lang/go-1.12
    
    Bug: https://bugs.gentoo.org/678924
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-admin/mongo-tools/mongo-tools-4.0.4.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 7 Larry the Git Cow gentoo-dev 2019-03-07 03:32:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6db1873022e16ad81f59871c24282fea25bccc0

commit e6db1873022e16ad81f59871c24282fea25bccc0
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-03-07 02:54:06 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-03-07 03:32:32 +0000

    app-admin/mongo-tools: allow building with dev-lang/go-1.12
    
    Closes: https://github.com/gentoo/gentoo/pull/11279
    Bug: https://bugs.gentoo.org/678924
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-admin/mongo-tools/mongo-tools-4.0.6.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Comment 8 Zac Medico gentoo-dev 2019-03-07 03:36:20 UTC
Thanks!
Comment 9 Larry the Git Cow gentoo-dev 2019-03-28 17:39:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf2853bb8e525a2aaf580c47ad556ff716bf9789

commit cf2853bb8e525a2aaf580c47ad556ff716bf9789
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-03-18 05:48:40 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-03-28 17:39:07 +0000

    app-admin/mongo-tools: fix building with dev-lang/go-1.12
    
    Bug: https://bugs.gentoo.org/678924
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Signed-off-by: Zac Medico <zmedico@gentoo.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(-)