-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.4.0, 5.0.0alpha1
-
None
-
Sprint 57 (Oct 2019)
-
0.125
configure script fails to check go compiler presence, make fails with compilation error afterwards.
Steps to reproduce:
- ./bootstrap.sh
- ./configure --enable-agent2
- make install
Result:
configure:
... checking for libevent support... yes checking for go... no checking for javac... javac checking for jar... jar ...
make:
... make[5]: Entering directory '/home/aleksandrs/devel/zabbix/go/src/zabbix/cmd/zabbix_agent2' ... /bin/bash: go: command not found /bin/bash: go: command not found /bin/bash: go: command not found Makefile:527: recipe for target 'build' failed make[5]: *** [build] Error 127
Expected:
configure:
checking for libevent support... yes checking for go... no configure: error: Unable to find "go" executable in path
Solution:
diff --git a/configure.ac b/configure.ac index d92fa4494c0..ace19e6fe92 100644 --- a/configure.ac +++ b/configure.ac @@ -1685,7 +1685,7 @@ SENDER_LIBS="$SENDER_LIBS $TLS_LIBS" if test "x$agent2" = "xyes"; then AC_CHECK_PROGS([GO], [go], [no]) - if test "x$go" = "xno"; then + if test "x$GO" = "xno"; then AC_MSG_ERROR([Unable to find "go" executable in path]) fi fi