Ad Widget

Collapse

Cross Compiling zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chlauber
    Junior Member
    • Sep 2012
    • 2

    #1

    Cross Compiling zabbix agent

    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.
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Could you please to post this to issue tracker ?

    Comment

    • chlauber
      Junior Member
      • Sep 2012
      • 2

      #3
      Issue ZBX-5561 opened

      Comment

      Working...