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

Configure fails when cross compiling.

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.2.7rc1, 2.4.2rc1, 2.5.0
    • Component/s: Installation (I)
    • Labels:
    • Environment:
      Linux ubuntu 2.6.38-15-generic with cross tool chain for ppc_8xx and arm-vfp

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: