Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664282 - app-metrics/snmp_exporter-0.12.0 : ./net_snmp.go:19:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory
Summary: app-metrics/snmp_exporter-0.12.0 : ./net_snmp.go:19:10: fatal error: net-snmp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-22 16:46 UTC by Toralf Förster
Modified: 2018-09-07 06:21 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.32 KB, text/plain)
2018-08-22 16:46 UTC, Toralf Förster
Details
app-metrics:snmp_exporter-0.12.0:20180822-063516.log (app-metrics:snmp_exporter-0.12.0:20180822-063516.log,3.76 KB, text/plain)
2018-08-22 16:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,52.38 KB, text/plain)
2018-08-22 16:46 UTC, Toralf Förster
Details
environment (environment,29.43 KB, text/plain)
2018-08-22 16:46 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.66 KB, application/x-bzip)
2018-08-22 16:46 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-22 16:46:17 UTC
go: disabling cache (/root/cache/go-build) due to initialization failure: mkdir /root/cache: permission denied
# github.com/prometheus/snmp_exporter/generator
./net_snmp.go:19:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory
 #include <net-snmp/net-snmp-config.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_libressl_20180820-193302

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv app-metrics/snmp_exporter
[ebuild  N    ] app-metrics/snmp_exporter-0.12.0
Comment 1 Toralf Förster gentoo-dev 2018-08-22 16:46:20 UTC
Created attachment 544484 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-22 16:46:23 UTC
Created attachment 544486 [details]
app-metrics:snmp_exporter-0.12.0:20180822-063516.log
Comment 3 Toralf Förster gentoo-dev 2018-08-22 16:46:26 UTC
Created attachment 544488 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-08-22 16:46:29 UTC
Created attachment 544490 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-08-22 16:46:33 UTC
Created attachment 544492 [details]
etc.portage.tbz2
Comment 6 Manuel Rüger (RETIRED) gentoo-dev 2018-08-22 16:55:20 UTC
likely missing net-snmp dependency. I'll take a look.
Comment 7 Jeff Kowalczyk 2018-08-30 23:58:40 UTC
Adding DEPEND=net-analyzer/net-snmp allows snmp_exporter-0.12.0 to build:

$ diff -u /usr/portage/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild snmp_exporter-0.12.0.ebuild
--- /usr/portage/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild  2018-08-21 14:18:25.735069290 -0700
+++ snmp_exporter-0.12.0.ebuild 2018-08-30 16:47:03.777567491 -0700
@@ -17,7 +17,8 @@
 SLOT="0"
 IUSE=""
 
-DEPEND="dev-util/promu"
+DEPEND="dev-util/promu
+        net-analyzer/net-snmp"
 
 pkg_setup() {
        enewgroup ${PN}
Comment 8 Larry the Git Cow gentoo-dev 2018-09-07 06:21:24 UTC
The bug has been closed via the following commit(s):

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

commit 06902991ae3ae0ef88760d03a820668ca6b37ed2
Author:     Manuel Rüger <mrueg@gentoo.org>
AuthorDate: 2018-09-07 06:20:11 +0000
Commit:     Manuel Rüger <mrueg@gentoo.org>
CommitDate: 2018-09-07 06:20:11 +0000

    app-metrics/snmp_exporter: Add missing dependency on net-snmp
    
    Closes: https://bugs.gentoo.org/664282
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)