Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5561

Configure fails when cross compiling.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 2.2.7rc1, 2.4.2rc1, 2.5.0
    • 2.0.2
    • Installation (I)
    • Linux ubuntu 2.6.38-15-generic with cross tool chain for ppc_8xx and arm-vfp

      When cross compiling the 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 seems caused by a AC_TRY_RUN macro 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 suggested patch.

        1. cross-comp-configure.patch
          0.7 kB
        2. cross-comp.patch
          0.4 kB
        3. configure.ac.patch
          0.4 kB

            Unassigned Unassigned
            chlauber Christof Lauber
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: