I'm unable to build APM server v7.4.2 code . Fails with following issues. Kibana version: NA
Elasticsearch version: NA
APM Server version: 7.4.2
APM Agent language and version: NA
Browser version: NA
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
github
Fresh install or upgraded from other version?
Fresh Install
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Unable to build APM Server Version v7.4.2
Steps to reproduce:
1.git checkout apm-server code.
2.checkout branch v7.4.2
3. run command "make"
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:34:2: esMinILMVersion redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:80:2
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:41:2: esFeaturesPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:72:19
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:43:2: esILMPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:74:14
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:45:2: esAliasPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:76:16
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:50:6: ESClientHandler redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:41:6
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:50:39: undefined: APIHandler
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:59:6: ESClient redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:47:6
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:38:6: Folders redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:37:33
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:41:10: Folders.func1 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:40:10
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:45:10: Folders.func2 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:44:10
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:48:9: Folders.func3 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:47:9
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:60:6: makeUserFoldFns redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:59:68
vendor/github.com/elastic/go-structform/gotype/opts.go:38:6: Folders redeclared in this block
previous declaration at vendor/github.com/elastic/go-structform/gotype/fold_opts.go:37:33
vendor/github.com/elastic/go-structform/gotype/opts.go:41:10: Folders.func1 redeclared in this block
previous declaration at vendor/github.com/elastic/go-structform/gotype/fold_opts.go:40:10
vendor/github.com/elastic/go-structform/gotype/opts.go:45:10: Folders.func2 redeclared in this block
previous declaration at vendor/github.com/elastic/go-structform/gotype/fold_opts.go:44:10
vendor/github.com/elastic/go-structform/gotype/opts.go:48:9: Folders.func3 redeclared in this block
previous declaration at vendor/github.com/elastic/go-structform/gotype/fold_opts.go:47:9
vendor/github.com/elastic/go-structform/gotype/opts.go:60:6: makeUserFoldFns redeclared in this block
previous declaration at vendor/github.com/elastic/go-structform/gotype/fold_opts.go:59:68
Error: error compiling magefiles
make: *** [_beats/libbeat/scripts/Makefile:154: clean] Error 1
The command '/bin/sh -c make clean update' returned a non-zero code: 2
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:34:2: esMinILMVersion redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:80:2
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:41:2: esFeaturesPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:72:19
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:43:2: esILMPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:74:14
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:45:2: esAliasPath redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:76:16
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:50:6: ESClientHandler redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:41:6
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:50:39: undefined: APIHandler
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/eshandler.go:59:6: ESClient redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/beats/libbeat/idxmgmt/ilm/client_handler.go:47:6
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:38:6: Folders redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:37:33
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:41:10: Folders.func1 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:40:10
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:45:10: Folders.func2 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:44:10
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:48:9: Folders.func3 redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:47:9
../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/opts.go:60:6: makeUserFoldFns redeclared in this block
previous declaration at ../../../go/src/github.com/elastic/apm-server/vendor/github.com/elastic/go-structform/gotype/fold_opts.go:59:68
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.