[pkg-go] Bug#952291: prometheus-mysqld-exporter: FTBFS: src/github.com/prometheus/mysqld_exporter/mysqld_exporter.go:227:31: undefined: prometheus.InstrumentHandlerFunc

Lucas Nussbaum lucas at debian.org
Sun Feb 23 13:56:07 GMT 2020


Source: prometheus-mysqld-exporter
Version: 0.11.0+ds-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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build -O--buildsystem=golang -- -ldflags " -X github.com/prometheus/common/version.Version=0.11.0+ds -X github.com/prometheus/common/version.Revision=0.11.0+ds-1 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20181016-00:53:55 -X github.com/prometheus/common/version.GoVersion=go1.13.8"
> 	cd obj-x86_64-linux-gnu && go version
> go version go1.13.8 linux/amd64
> 	cd obj-x86_64-linux-gnu && go env
> GO111MODULE="off"
> GOARCH="amd64"
> GOBIN=""
> GOCACHE="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/go-build"
> GOENV="/sbuild-nonexistent/.config/go/env"
> GOEXE=""
> GOFLAGS=""
> GOHOSTARCH="amd64"
> GOHOSTOS="linux"
> GONOPROXY=""
> GONOSUMDB=""
> GOOS="linux"
> GOPATH="/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu"
> 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-build140039266=/tmp/go-build -gno-record-gcc-switches"
> 	cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 -ldflags " -X github.com/prometheus/common/version.Version=0.11.0+ds -X github.com/prometheus/common/version.Revision=0.11.0+ds-1 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20181016-00:53:55 -X github.com/prometheus/common/version.GoVersion=go1.13.8" github.com/prometheus/mysqld_exporter github.com/prometheus/mysqld_exporter/collector
> internal/race
> runtime/internal/sys
> runtime/internal/atomic
> internal/cpu
> sync/atomic
> runtime/internal/math
> unicode/utf8
> unicode
> container/list
> internal/bytealg
> math/bits
> crypto/internal/subtle
> runtime
> math
> crypto/subtle
> internal/testlog
> 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
> internal/oserror
> strconv
> 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
> hash/crc32
> vendor/golang.org/x/text/transform
> path
> github.com/beorn7/perks/quantile
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> regexp/syntax
> internal/poll
> context
> encoding/binary
> internal/fmtsort
> os
> crypto/cipher
> crypto/sha512
> crypto/ed25519/internal/edwards25519
> crypto/aes
> crypto/des
> fmt
> crypto/md5
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/pem
> path/filepath
> net
> math/big
> encoding/hex
> io/ioutil
> net/url
> vendor/golang.org/x/crypto/internal/chacha20
> vendor/golang.org/x/crypto/poly1305
> vendor/golang.org/x/sys/cpu
> database/sql/driver
> vendor/golang.org/x/crypto/chacha20poly1305
> database/sql
> log
> crypto/elliptic
> encoding/asn1
> crypto/rand
> crypto/dsa
> encoding/json
> crypto/ed25519
> crypto/ecdsa
> crypto/rsa
> crypto/x509/pkix
> vendor/golang.org/x/crypto/cryptobyte
> compress/flate
> vendor/golang.org/x/text/unicode/bidi
> vendor/golang.org/x/text/unicode/norm
> compress/gzip
> vendor/golang.org/x/net/http2/hpack
> vendor/golang.org/x/text/secure/bidirule
> mime
> mime/quotedprintable
> net/http/internal
> github.com/cespare/xxhash
> vendor/golang.org/x/net/idna
> github.com/golang/protobuf/proto
> regexp
> github.com/prometheus/procfs/internal/fs
> github.com/prometheus/common/model
> github.com/prometheus/procfs/internal/util
> runtime/debug
> crypto/x509
> net/textproto
> vendor/golang.org/x/net/http/httpproxy
> vendor/golang.org/x/net/http/httpguts
> mime/multipart
> github.com/prometheus/procfs
> golang.org/x/sys/unix
> crypto/tls
> github.com/prometheus/client_model/go
> github.com/prometheus/client_golang/prometheus/internal
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/alecthomas/units
> go/token
> internal/lazyregexp
> go/scanner
> text/template/parse
> go/ast
> github.com/sirupsen/logrus
> text/template
> log/syslog
> github.com/satori/go.uuid
> github.com/go-sql-driver/mysql
> net/http/httptrace
> gopkg.in/ini.v1
> net/http
> go/doc
> gopkg.in/alecthomas/kingpin.v2
> github.com/prometheus/common/log
> expvar
> github.com/prometheus/common/expfmt
> github.com/prometheus/client_golang/prometheus
> github.com/prometheus/common/version
> github.com/prometheus/client_golang/prometheus/promhttp
> github.com/prometheus/mysqld_exporter/collector
> github.com/prometheus/mysqld_exporter
> # github.com/prometheus/mysqld_exporter
> src/github.com/prometheus/mysqld_exporter/mysqld_exporter.go:227:31: undefined: prometheus.InstrumentHandlerFunc
> dh_auto_build: error: cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 -ldflags " -X github.com/prometheus/common/version.Version=0.11.0+ds -X github.com/prometheus/common/version.Revision=0.11.0+ds-1 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20181016-00:53:55 -X github.com/prometheus/common/version.GoVersion=go1.13.8" github.com/prometheus/mysqld_exporter github.com/prometheus/mysqld_exporter/collector returned exit code 2
> make[1]: *** [debian/rules:25: override_dh_auto_build] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/prometheus-mysqld-exporter_0.11.0+ds-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