Zabbix fails to build in separate build directory

XMLWordPrintable

    • S25-W50/51/52/01, S26-W02/03
    • 2

      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:
            Mihails Prihodko
            Reporter:
            Jan Palus
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 16h Original Estimate - 16h
                16h
                Remaining:
                Time Spent - 11h Remaining Estimate - 15h
                15h
                Logged:
                Time Spent - 11h Remaining Estimate - 15h
                11h