I am having troubles to cross compile the agent2 version.
Tried both the package 6.4.13 and the git branch release/6.4.
Compiling on ubuntu 18.04 to arm (source cortexa8hf-neon-poky-linux-gnueabi)
i attached the go env and the 'configure --enable-agent2 --host=arm' summary
the file src/go/Makefile has been modified:
GOOS = `go env GOOS`
GOARCH = `go env GOARCH`
with
GOOS = linux
GOARCH = arm
to avoid the go error goos/goarch pair
but i receive this error
the only thing that i can add is that libspechostnamesysinfo.a and zbxsysinfo/linux/libspecsysinfo.a are in /zbxsysinfo/unknown/
any help?
thank you
Luca
Tried both the package 6.4.13 and the git branch release/6.4.
Compiling on ubuntu 18.04 to arm (source cortexa8hf-neon-poky-linux-gnueabi)
i attached the go env and the 'configure --enable-agent2 --host=arm' summary
the file src/go/Makefile has been modified:
GOOS = `go env GOOS`
GOARCH = `go env GOARCH`
with
GOOS = linux
GOARCH = arm
to avoid the go error goos/goarch pair
but i receive this error
Code:
Making all in go make[2]: ingresso nella directory "/home/luke/zabbix-6.4.13/src/go" CGO_CFLAGS="" CGO_LDFLAGS="-Wl,--start-group /home/luke/zabbix-6.4.13/src/libs/zbxalgo/libzbxalgo.a /home/luke/zabbix-6.4.13/src/libs/zbxcommon/libzbxcommon.a /home/luke/zabbix-6.4.13/src/libs/zbxcomms/libzbxcomms.a /home/luke/zabbix-6.4.13/src/libs/zbxcompress/libzbxcompress.a /home/luke/zabbix-6.4.13/src/libs/zbxcrypto/libzbxcrypto.a /home/luke/zabbix-6.4.13/src/libs/zbxexec/libzbxexec.a /home/luke/zabbix-6.4.13/src/libs/zbxhash/libzbxhash.a /home/luke/zabbix-6.4.13/src/libs/zbxhttp/libzbxhttp.a /home/luke/zabbix-6.4.13/src/libs/zbxjson/libzbxjson.a /home/luke/zabbix-6.4.13/src/libs/zbxmutexs/libzbxmutexs.a /home/luke/zabbix-6.4.13/src/libs/zbxprof/libzbxprof.a /home/luke/zabbix-6.4.13/src/libs/zbxnix/libzbxnix.a /home/luke/zabbix-6.4.13/src/libs/zbxregexp/libzbxregexp.a /home/luke/zabbix-6.4.13/src/libs/zbxnum/libzbxnum.a /home/luke/zabbix-6.4.13/src/libs/zbxstr/libzbxstr.a /home/luke/zabbix-6.4.13/src/libs/zbxparam/libzbxparam.a /home/luke/zabbix-6.4.13/src/libs/zbxexpr/libzbxexpr.a /home/luke/zabbix-6.4.13/src/libs/zbxtime/libzbxtime.a /home/luke/zabbix-6.4.13/src/libs/zbxip/libzbxip.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/unknown/libspechostnamesysinfo.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/unknown/libspecsysinfo.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/alias/libalias.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/common/libcommonsysinfo.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/libzbxagent2sysinfo.a /home/luke/zabbix-6.4.13/src/libs/zbxsysinfo/simple/libsimplesysinfo.a /home/luke/zabbix-6.4.13/src/libs/zbxthreads/libzbxthreads.a /home/luke/zabbix-6.4.13/src/libs/zbxvariant/libzbxvariant.a /home/luke/zabbix-6.4.13/src/libs/zbxxml/libzbxxml.a /home/luke/zabbix-6.4.13/src/zabbix_agent/logfiles/libzbxlogfiles.a -lpthread -lm -ldl -lresolv -lpcre -Wl,--end-group" go build -tags="pcre" -ldflags="-X 'zabbix.com/pkg/version.compileDate=`date +"%b %_d %Y"`' -X zabbix.com/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix.com/pkg/version.compileOs=linux -X zabbix.com/pkg/version.compileArch=arm -X main.confDefault=/usr/local/etc/zabbix_agent2.conf -X main.applicationName=zabbix_agent2" -o bin zabbix.com/cmd/zabbix_agent2 # zabbix.com/cmd/zabbix_agent2 /usr/local/go/pkg/tool/linux_amd64/link: running arm-poky-linux-gnueabi-gcc failed: exit status 1 arm-poky-linux-gnueabi-gcc: error: /home/luke/zabbix-6.4.13/src/go/pkg/zbxlib/../../../libs/zbxsysinfo/linux/libspechostnamesysinfo.a: No such file or directory arm-poky-linux-gnueabi-gcc: error: /home/luke/zabbix-6.4.13/src/go/pkg/zbxlib/../../../libs/zbxsysinfo/linux/libspecsysinfo.a: No such file or directory Makefile:623: recipe for target 'zabbix.com/cmd/zabbix_agent2' failed make[2]: *** [zabbix.com/cmd/zabbix_agent2] Error 1 make[2]: uscita dalla directory "/home/luke/zabbix-6.4.13/src/go" Makefile:515: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: uscita dalla directory "/home/luke/zabbix-6.4.13/src" Makefile:554: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1
any help?
thank you
Luca
Comment