You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/04/02 11:29:34 UTC

[GitHub] [trafficcontrol] tkald commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing

tkald commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-607788807
 
 
   Yes I have.
   Copied it to the `/root/go/src/github.com/influxdata/influxdb/client/v2` and getting another error now.
   
   ```
   git is /usr/bin/git
   rpmbuild is /usr/bin/rpmbuild
   go is /usr/bin/go
   Build environment has been verified.
   ==================================================
   WORKSPACE: /root/trafficcontrol
   BUILD_NUMBER: 10411.92a14286
   RHEL_VERSION: el7
   TC_VERSION: 4.0.0
   --------------------------------------------------
   Initializing the build area.
   PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
   GOPATH:
   go version go1.13.6 linux/amd64
   GO111MODULE=""
   GOARCH="amd64"
   GOBIN=""
   GOCACHE="/root/.cache/go-build"
   GOENV="/root/.config/go/env"
   GOEXE=""
   GOFLAGS=""
   GOHOSTARCH="amd64"
   GOHOSTOS="linux"
   GONOPROXY=""
   GONOSUMDB=""
   GOOS="linux"
   GOPATH="/root/go"
   GOPRIVATE=""
   GOPROXY="direct"
   GOROOT="/usr/lib/golang"
   GOSUMDB="off"
   GOTMPDIR=""
   GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
   GCCGO="gccgo"
   AR="ar"
   CC="gcc"
   CXX="g++"
   CGO_ENABLED="1"
   GOMOD=""
   CGO_CFLAGS="-g -O2"
   CGO_CPPFLAGS=""
   CGO_CXXFLAGS="-g -O2"
   CGO_FFLAGS="-g -O2"
   CGO_LDFLAGS="-g -O2"
   PKG_CONFIG="pkg-config"
   GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build627917589=/tmp/go-build -gno-record-gcc-switches"
   github.com/apache/trafficcontrol/vendor/github.com/lib/pq/oid
   github.com/apache/trafficcontrol/lib/go-log
   github.com/apache/trafficcontrol/vendor/github.com/go-ozzo/ozzo-validation
   github.com/apache/trafficcontrol/vendor/github.com/jmoiron/sqlx/reflectx
   github.com/apache/trafficcontrol/vendor/github.com/asaskevich/govalidator
   github.com/apache/trafficcontrol/lib/go-util
   github.com/apache/trafficcontrol/vendor/github.com/jmoiron/sqlx
   github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/pkg/escape
   github.com/apache/trafficcontrol/lib/go-rfc
   github.com/apache/trafficcontrol/vendor/github.com/go-ozzo/ozzo-validation/is
   github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/models
   github.com/apache/trafficcontrol/vendor/github.com/lib/pq
   github.com/cihub/seelog/archive/gzip
   github.com/apache/trafficcontrol/lib/go-tc/tovalidate
   github.com/cihub/seelog/archive
   github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/client/v2
   github.com/cihub/seelog/archive/tar
   github.com/cihub/seelog/archive/zip
   github.com/influxdata/influxdb/pkg/escape
   github.com/cihub/seelog
   github.com/influxdata/influxdb/models
   github.com/apache/trafficcontrol/lib/go-tc
   github.com/influxdata/influxdb/client/v2
   github.com/apache/trafficcontrol/traffic_ops/client
   _/root/trafficcontrol/traffic_stats
   # _/root/trafficcontrol/traffic_stats
   ./traffic_stats.go:316:27: cannot use cdn (type string) as type *string in assignment
   ./traffic_stats.go:317:37: cannot use "all" (type string) as type *string in assignment
   ./traffic_stats.go:318:30: cannot use "daily_maxgbps" (type string) as type *string in assignment
   ./traffic_stats.go:319:29: cannot use strconv.FormatFloat(value, 'f', 2, 64) (type string) as type *float64 in assignment
   ./traffic_stats.go:320:31: cannot use time.Now().Format(time.RFC3339) (type string) as type time.Time in assignment
   ./traffic_stats.go:321:28: cannot use statTime.Format("2006-01-02") (type string) as type *time.Time in assignment
   ./traffic_stats.go:376:25: cannot use cdn (type string) as type *string in assignment
   ./traffic_stats.go:377:35: cannot use "all" (type string) as type *string in assignment
   ./traffic_stats.go:378:28: cannot use "daily_bytesserved" (type string) as type *string in assignment
   ./traffic_stats.go:379:27: cannot use strconv.FormatFloat(bytesServedTB, 'f', 2, 64) (type string) as type *float64 in assignment
   ./traffic_stats.go:379:27: too many errors
   Could not build traffic_stats binary
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services