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

Zabbix fails to build in separate build directory

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.20
    • None
    • None
    • Linux

      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

            zabbix.support Zabbix Support Team
            jpalus Jan Palus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: