I tried to cross compile zabbix agent for our embedded target. The configure fails with:
checking for long long format... configure: error: in `/home/user/zabbix-2.0.2':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
This sees caused by a AC_TRY_RUN in configure.in that does not have a default for cross compiling set. I so added a safe default value in case of cross compiling and it seems to work. Check the following patch:
--- configure.in 2012-07-31 11:16:53.000000000 +0200
+++ /home/user/Projects/LinuxServices/zabbix-2.0.2/configure.in 2012-09-07 11:27:29.746445265 +0200
@@ -818,6 +818,7 @@
],
AC_DEFINE(HAVE_LONG_LONG_QU, 1 ,[Define to 1 if format '%qu' exists.])
AC_MSG_RESULT(yes),
+AC_MSG_RESULT(no),
AC_MSG_RESULT(no))
dnl option -rdynamic is needed for readable backtraces
Seems to work for our ppc_8xx and arm-vfp-linux targets.
checking for long long format... configure: error: in `/home/user/zabbix-2.0.2':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
This sees caused by a AC_TRY_RUN in configure.in that does not have a default for cross compiling set. I so added a safe default value in case of cross compiling and it seems to work. Check the following patch:
--- configure.in 2012-07-31 11:16:53.000000000 +0200
+++ /home/user/Projects/LinuxServices/zabbix-2.0.2/configure.in 2012-09-07 11:27:29.746445265 +0200
@@ -818,6 +818,7 @@
],
AC_DEFINE(HAVE_LONG_LONG_QU, 1 ,[Define to 1 if format '%qu' exists.])
AC_MSG_RESULT(yes),
+AC_MSG_RESULT(no),
AC_MSG_RESULT(no))
dnl option -rdynamic is needed for readable backtraces
Seems to work for our ppc_8xx and arm-vfp-linux targets.
Comment