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

Cannot build RPM packages with source tarball created using newer autoconf/automake

XMLWordPrintable

    • Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023)
    • 1

      Take package sources for el8 https://repo.zabbix.com/zabbix/6.0/rhel/8/SRPMS/zabbix-6.0.13-release1.el8.src.rpm
      Unpack. Delete include zabbix source tarball.

      Prepare to build rpms. Install dependencies as needed. Edit the version in zabbix.spec file if needed.

      Prepare to systems with different versions of autoconf/automake.

      I used:

      Older:

      • Rocky 8
      • automake (GNU automake) 1.16.1
      • autoconf (GNU Autoconf) 2.69

      Newer:

      • Arch
      • automake (GNU automake) 1.16.5
      • autoconf (GNU Autoconf) 2.71

      Clone ssh://[email protected]:7999/zbx/zabbix.git on both systems.

      Prepare source tarballs on both systems from the same commit.

      ./bootstrap.sh && ./configure && make gettext && make dbschema && cd src/go/ && go mod vendor && cd - && make dist

      Try building rpm packages.

      With the source tarball made on older system it builds fine.

      With the source tarball made on a newer system it fails.

      ...
      checking size of void *... 8
      checking for Oracle support... no
      checking for SQLite3 library >= 3.0.0... yes
      checking for function sqlite3_open_v2() in sqlite3.h... yes
      checking for Zabbix server/proxy database selection... ok
      checking for multirow insert statements... no
      configure: error: LIBXML2 library not found
      error: Bad exit status from /var/tmp/rpm-tmp.xrVP0O (%build)
      RPM build errors:
          Bad exit status from /var/tmp/rpm-tmp.xrVP0O (%build)
      (error) building zabbix packages for rhel-8-x86_64 (rhel-8-x86_64) in /tmp/build-rhel-8-x86_64.Qm52FbaP failed

      Affects all rpm systems that we build for: rhel 7,8,9 sles 12,15
      Debians are not affected. Even the old ones.

            jlambda Juris Lambda
            yurii Jurijs Klopovskis
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: