[pkg-go] Bug#952285: prometheus-mongodb-exporter: FTBFS: src/github.com/dcu/mongodb_exporter/mongodb_exporter.go:84:13: undefined: prometheus.Handler

Lucas Nussbaum lucas at debian.org
Sun Feb 23 13:55:58 GMT 2020


Source: prometheus-mongodb-exporter
Version: 1.0.0+git20180522.e755a44-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200222 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build --buildsystem=golang --with=golang --builddir=/<<PKGBUILDDIR>>/build
>    dh_update_autotools_config -O--buildsystem=golang -O--builddir=/<<BUILDDIR>>/prometheus-mongodb-exporter-1.0.0\+git20180522.e755a44/build
>    dh_autoreconf -O--buildsystem=golang -O--builddir=/<<BUILDDIR>>/prometheus-mongodb-exporter-1.0.0\+git20180522.e755a44/build
>    dh_auto_configure -O--buildsystem=golang -O--builddir=/<<BUILDDIR>>/prometheus-mongodb-exporter-1.0.0\+git20180522.e755a44/build
> 	install -d build
> 	Copy mongodb_exporter.go -> build/src/github.com/dcu/mongodb_exporter/mongodb_exporter.go
> 	Copy collector/wiredtiger.go -> build/src/github.com/dcu/mongodb_exporter/collector/wiredtiger.go
> 	Copy collector/conn_pool_stats.go -> build/src/github.com/dcu/mongodb_exporter/collector/conn_pool_stats.go
> 	Copy collector/main_test.go -> build/src/github.com/dcu/mongodb_exporter/collector/main_test.go
> 	Copy collector/network.go -> build/src/github.com/dcu/mongodb_exporter/collector/network.go
> 	Copy collector/mongodb_collector.go -> build/src/github.com/dcu/mongodb_exporter/collector/mongodb_collector.go
> 	Copy collector/extra_info.go -> build/src/github.com/dcu/mongodb_exporter/collector/extra_info.go
> 	Copy collector/top_status_test.go -> build/src/github.com/dcu/mongodb_exporter/collector/top_status_test.go
> 	Copy collector/profile_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/profile_status.go
> 	Copy collector/connections.go -> build/src/github.com/dcu/mongodb_exporter/collector/connections.go
> 	Copy collector/conn_pool_stats_hosts.go -> build/src/github.com/dcu/mongodb_exporter/collector/conn_pool_stats_hosts.go
> 	Copy collector/server_status_test.go -> build/src/github.com/dcu/mongodb_exporter/collector/server_status_test.go
> 	Copy collector/server_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/server_status.go
> 	Copy collector/index_counters.go -> build/src/github.com/dcu/mongodb_exporter/collector/index_counters.go
> 	Copy collector/storage_engine.go -> build/src/github.com/dcu/mongodb_exporter/collector/storage_engine.go
> 	Copy collector/database_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/database_status.go
> 	Copy collector/top_counters.go -> build/src/github.com/dcu/mongodb_exporter/collector/top_counters.go
> 	Copy collector/background_flushing.go -> build/src/github.com/dcu/mongodb_exporter/collector/background_flushing.go
> 	Copy collector/op_counters.go -> build/src/github.com/dcu/mongodb_exporter/collector/op_counters.go
> 	Copy collector/global_lock.go -> build/src/github.com/dcu/mongodb_exporter/collector/global_lock.go
> 	Copy collector/replset_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/replset_status.go
> 	Copy collector/durability.go -> build/src/github.com/dcu/mongodb_exporter/collector/durability.go
> 	Copy collector/collection_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/collection_status.go
> 	Copy collector/mongodb_collector_test.go -> build/src/github.com/dcu/mongodb_exporter/collector/mongodb_collector_test.go
> 	Copy collector/collection_wiredtiger.go -> build/src/github.com/dcu/mongodb_exporter/collector/collection_wiredtiger.go
> 	Copy collector/locks.go -> build/src/github.com/dcu/mongodb_exporter/collector/locks.go
> 	Copy collector/top_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/top_status.go
> 	Copy collector/memory.go -> build/src/github.com/dcu/mongodb_exporter/collector/memory.go
> 	Copy collector/metrics.go -> build/src/github.com/dcu/mongodb_exporter/collector/metrics.go
> 	Copy collector/oplog_status.go -> build/src/github.com/dcu/mongodb_exporter/collector/oplog_status.go
> 	Copy collector/cursors.go -> build/src/github.com/dcu/mongodb_exporter/collector/cursors.go
> 	Copy collector/asserts.go -> build/src/github.com/dcu/mongodb_exporter/collector/asserts.go
> 	Copy shared/group_desc_test.go -> build/src/github.com/dcu/mongodb_exporter/shared/group_desc_test.go
> 	Copy shared/group_desc.go -> build/src/github.com/dcu/mongodb_exporter/shared/group_desc.go
> 	Copy shared/utils.go -> build/src/github.com/dcu/mongodb_exporter/shared/utils.go
> 	Copy shared/utils_test.go -> build/src/github.com/dcu/mongodb_exporter/shared/utils_test.go
> 	Copy shared/connection.go -> build/src/github.com/dcu/mongodb_exporter/shared/connection.go
> 	Copy collector/fixtures/top_status.bson -> build/src/github.com/dcu/mongodb_exporter/collector/fixtures/top_status.bson
> 	Copy collector/fixtures/top_status.json -> build/src/github.com/dcu/mongodb_exporter/collector/fixtures/top_status.json
> 	Copy collector/fixtures/server_status.json -> build/src/github.com/dcu/mongodb_exporter/collector/fixtures/server_status.json
> 	Copy collector/fixtures/server_status.bson -> build/src/github.com/dcu/mongodb_exporter/collector/fixtures/server_status.bson
> 	Symlink /usr/share/gocode/src/cloud.google.com -> build/src/cloud.google.com
> 	Symlink /usr/share/gocode/src/code.google.com -> build/src/code.google.com
> 	Symlink /usr/share/gocode/src/github.com/alecthomas -> build/src/github.com/alecthomas
> 	Symlink /usr/share/gocode/src/github.com/beorn7 -> build/src/github.com/beorn7
> 	Symlink /usr/share/gocode/src/github.com/cespare -> build/src/github.com/cespare
> 	Symlink /usr/share/gocode/src/github.com/davecgh -> build/src/github.com/davecgh
> 	Symlink /usr/share/gocode/src/github.com/dgrijalva -> build/src/github.com/dgrijalva
> 	Symlink /usr/share/gocode/src/github.com/go-check -> build/src/github.com/go-check
> 	Symlink /usr/share/gocode/src/github.com/go-kit -> build/src/github.com/go-kit
> 	Symlink /usr/share/gocode/src/github.com/go-logfmt -> build/src/github.com/go-logfmt
> 	Symlink /usr/share/gocode/src/github.com/go-stack -> build/src/github.com/go-stack
> 	Symlink /usr/share/gocode/src/github.com/golang -> build/src/github.com/golang
> 	Symlink /usr/share/gocode/src/github.com/google -> build/src/github.com/google
> 	Symlink /usr/share/gocode/src/github.com/jpillora -> build/src/github.com/jpillora
> 	Symlink /usr/share/gocode/src/github.com/json-iterator -> build/src/github.com/json-iterator
> 	Symlink /usr/share/gocode/src/github.com/julienschmidt -> build/src/github.com/julienschmidt
> 	Symlink /usr/share/gocode/src/github.com/kr -> build/src/github.com/kr
> 	Symlink /usr/share/gocode/src/github.com/matttproud -> build/src/github.com/matttproud
> 	Symlink /usr/share/gocode/src/github.com/modern-go -> build/src/github.com/modern-go
> 	Symlink /usr/share/gocode/src/github.com/mwitkow -> build/src/github.com/mwitkow
> 	Symlink /usr/share/gocode/src/github.com/opentracing -> build/src/github.com/opentracing
> 	Symlink /usr/share/gocode/src/github.com/pkg -> build/src/github.com/pkg
> 	Symlink /usr/share/gocode/src/github.com/pmezard -> build/src/github.com/pmezard
> 	Symlink /usr/share/gocode/src/github.com/prometheus -> build/src/github.com/prometheus
> 	Symlink /usr/share/gocode/src/github.com/Sirupsen -> build/src/github.com/Sirupsen
> 	Symlink /usr/share/gocode/src/github.com/sirupsen -> build/src/github.com/sirupsen
> 	Symlink /usr/share/gocode/src/github.com/stretchr -> build/src/github.com/stretchr
> 	Symlink /usr/share/gocode/src/golang.org -> build/src/golang.org
> 	Symlink /usr/share/gocode/src/google.golang.org -> build/src/google.golang.org
> 	Symlink /usr/share/gocode/src/gopkg.in -> build/src/gopkg.in
> 	Symlink /usr/share/gocode/src/labix.org -> build/src/labix.org
> 	Symlink /usr/share/gocode/src/launchpad.net -> build/src/launchpad.net
>    dh_auto_build -O--buildsystem=golang -O--builddir=/<<BUILDDIR>>/prometheus-mongodb-exporter-1.0.0\+git20180522.e755a44/build
> 	cd build && go version
> go version go1.13.8 linux/amd64
> 	cd build && go env
> GO111MODULE="off"
> GOARCH="amd64"
> GOBIN=""
> GOCACHE="/<<PKGBUILDDIR>>/build/go-build"
> GOENV="/sbuild-nonexistent/.config/go/env"
> GOEXE=""
> GOFLAGS=""
> GOHOSTARCH="amd64"
> GOHOSTOS="linux"
> GONOPROXY=""
> GONOSUMDB=""
> GOOS="linux"
> GOPATH="/<<PKGBUILDDIR>>/build"
> GOPRIVATE=""
> GOPROXY="off"
> GOROOT="/usr/lib/go-1.13"
> GOSUMDB="sum.golang.org"
> GOTMPDIR=""
> GOTOOLDIR="/usr/lib/go-1.13/pkg/tool/linux_amd64"
> GCCGO="gccgo"
> AR="ar"
> CC="gcc"
> CXX="g++"
> CGO_ENABLED="1"
> GOMOD=""
> CGO_CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security"
> CGO_CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
> CGO_CXXFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security"
> CGO_FFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong"
> CGO_LDFLAGS="-Wl,-z,relro"
> PKG_CONFIG="pkg-config"
> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build213529740=/tmp/go-build -gno-record-gcc-switches"
> 	cd build && go install -trimpath -v -p 4 github.com/dcu/mongodb_exporter github.com/dcu/mongodb_exporter/collector github.com/dcu/mongodb_exporter/shared
> runtime/internal/sys
> internal/race
> internal/cpu
> runtime/internal/atomic
> runtime/internal/math
> sync/atomic
> unicode
> unicode/utf8
> container/list
> internal/bytealg
> math/bits
> crypto/internal/subtle
> math
> crypto/subtle
> internal/testlog
> runtime
> vendor/golang.org/x/crypto/cryptobyte/asn1
> internal/nettrace
> runtime/cgo
> vendor/golang.org/x/crypto/internal/subtle
> vendor/golang.org/x/crypto/curve25519
> encoding
> unicode/utf16
> internal/reflectlite
> sync
> internal/singleflight
> math/rand
> errors
> sort
> io
> strconv
> internal/oserror
> syscall
> vendor/golang.org/x/net/dns/dnsmessage
> bytes
> hash
> reflect
> crypto
> strings
> crypto/internal/randutil
> bufio
> crypto/hmac
> time
> internal/syscall/unix
> crypto/rc4
> vendor/golang.org/x/crypto/hkdf
> regexp/syntax
> hash/crc32
> vendor/golang.org/x/text/transform
> internal/poll
> context
> path
> encoding/binary
> internal/fmtsort
> os
> regexp
> github.com/beorn7/perks/quantile
> crypto/cipher
> crypto/sha512
> crypto/aes
> crypto/des
> crypto/ed25519/internal/edwards25519
> fmt
> crypto/md5
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/pem
> path/filepath
> math/big
> encoding/hex
> net
> net/url
> io/ioutil
> vendor/golang.org/x/crypto/internal/chacha20
> vendor/golang.org/x/crypto/poly1305
> vendor/golang.org/x/sys/cpu
> flag
> vendor/golang.org/x/crypto/chacha20poly1305
> log
> os/user
> encoding/json
> crypto/elliptic
> encoding/asn1
> crypto/rand
> crypto/ed25519
> crypto/rsa
> crypto/ecdsa
> crypto/dsa
> crypto/x509/pkix
> vendor/golang.org/x/crypto/cryptobyte
> gopkg.in/mgo.v2/internal/json
> gopkg.in/mgo.v2/internal/scram
> compress/flate
> gopkg.in/mgo.v2/bson
> github.com/golang/glog
> compress/gzip
> vendor/golang.org/x/text/unicode/bidi
> vendor/golang.org/x/text/unicode/norm
> vendor/golang.org/x/text/secure/bidirule
> vendor/golang.org/x/net/http2/hpack
> mime
> mime/quotedprintable
> crypto/x509
> gopkg.in/mgo.v2
> vendor/golang.org/x/net/idna
> net/textproto
> mime/multipart
> vendor/golang.org/x/net/http/httpguts
> vendor/golang.org/x/net/http/httpproxy
> net/http/internal
> github.com/cespare/xxhash
> crypto/tls
> github.com/golang/protobuf/proto
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> github.com/prometheus/common/model
> github.com/prometheus/procfs/internal/fs
> github.com/prometheus/procfs/internal/util
> runtime/debug
> github.com/prometheus/procfs
> net/http/httptrace
> github.com/dcu/mongodb_exporter/shared
> net/http
> github.com/prometheus/client_model/go
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/prometheus/client_golang/prometheus/internal
> expvar
> github.com/prometheus/common/expfmt
> github.com/prometheus/client_golang/prometheus
> github.com/dcu/mongodb_exporter/collector
> github.com/dcu/mongodb_exporter
> # github.com/dcu/mongodb_exporter
> src/github.com/dcu/mongodb_exporter/mongodb_exporter.go:84:13: undefined: prometheus.Handler
> src/github.com/dcu/mongodb_exporter/mongodb_exporter.go:87:14: undefined: prometheus.Handler
> dh_auto_build: error: cd build && go install -trimpath -v -p 4 github.com/dcu/mongodb_exporter github.com/dcu/mongodb_exporter/collector github.com/dcu/mongodb_exporter/shared returned exit code 2
> make: *** [debian/rules:10: build] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/prometheus-mongodb-exporter_1.0.0+git20180522.e755a44-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-go-maintainers mailing list