Zabbix fails to build in separate build directory

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: 7.0.20, 7.2.14, 7.4.4, 8.0.0alpha1
    • Component/s: None
    • None
    • Environment:
      Linux
    • S25-W50/51

      Steps to reproduce:

      1. Create build directory mkdir builddir
      2. Enter build directory cd builddir
      3. Run ../configure with selected options
      4. Try to build and install with make and make install

      Result:
      Build and install both fail due to number of issues with paths.
      Expected:
      Build and install both complete successfully.

      Attaching patch (builddir.patch) which fixes all issues I've encountered:

      • config.h is generated in $(top_builddir)/include/common instead of {{$(top_srcdir)
        }}
      • similarly all libraries are found in $(top_builddir) too
      • number of fixes to relative paths in $(srcdir) without $(srcdir) prefix
      • dropped all #cgo LDFLAGS directives from globals_linux.go in favor of CGO_LDFLAGS populated by configure.ac which handles all of this already properly

            Assignee:
            Michael Veksler
            Reporter:
            Jan Palus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 10h
                10h