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

Zabbix ignores DESTDIR when performing "make install"

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0.0alpha6
    • 4.0.0alpha7, 4.0 (plan)
    • Installation (I)
    • None
    • Team C
    • Sprint 33, Sprint 34
    • 2

    Description

      Steps to reproduce:

      1. $ ./configure --prefix=/usr/local/zabbix-install --enable-agent -q
        
        
        Configuration:
        
        Detected OS: linux-gnu
        Install path: /usr/local/zabbix-install
        Compilation arch: linux
        
        Compiler: cc
        Compiler flags: -g -O2 
        
        Library-specific flags:
        
        Enable server: no
        
        Enable proxy: no
        
        Enable agent: yes
        Agent details:
        TLS: no
        Linker flags: -rdynamic 
        Libraries: -lm -ldl -lresolv -lpcreposix -lpcre 
        Config file: /usr/local/zabbix-install/etc/zabbix_agentd.conf
        Modules: /usr/local/zabbix-install/lib/modules
        
        Enable Java gateway: no
        
        LDAP support: no
        IPv6 support: no
        
        ***********************************************************
        * Now run 'make install' *
        * *
        * Thank you for using Zabbix! *
        * <http://www.zabbix.com> *
        ***********************************************************
        
      1. $ make -s DESTDIR=/tmp/zabbix-destdir install
        Making install in src
        Making install in libs
        Making install in zbxcrypto
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxcommon
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxlog
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxalgo
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxnix
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxconf
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxhttp
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxsysinfo
        Making install in agent
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in common
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in simple
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in linux
        ar: `u' modifier ignored since `D' is the default (see `U')
        ar: `u' modifier ignored since `D' is the default (see `U')
        ar: `u' modifier ignored since `D' is the default (see `U')
        ar: `u' modifier ignored since `D' is the default (see `U')
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxsys
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxcomms
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxjson
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxexec
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxmodules
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxregexp
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxipcservice
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zbxcompress
        ar: `u' modifier ignored since `D' is the default (see `U')
        Making install in zabbix_agent
        /bin/mkdir -p '/tmp/zabbix-destdir/usr/local/zabbix-install/sbin'
        /usr/bin/install -c zabbix_agentd '/tmp/zabbix-destdir/usr/local/zabbix-install/sbin'
        /bin/mkdir: cannot create directory ‘/usr/local/zabbix-install’: Permission denied
        

      Result:
      make install fails because of incorrectly trying to install into /
      Expected:
      make install succeeds installing everything under /tmp/zabbix-destdir

       

      Files/directories affected:

      Agent

      • /etc/zabbix/zabbix_agentd.conf
      • /etc/zabbix/zabbix_agentd.conf.d
      • /usr/lib/zabbix/modules

      Server

      • /etc/zabbix/zabbix_server.conf
      • /etc/zabbix/zabbix_server.conf.d
      • /usr/share/zabbix/externalscripts
      • /usr/share/zabbix/alertscripts
      • /usr/lib/zabbix/modules

      Proxy

      • /etc/zabbix/zabbix_proxy.conf
      • /etc/zabbix/zabbix_proxy.conf.d
      • /usr/share/zabbix/externalscripts
      • /usr/lib/zabbix/modules

      Attachments

        Issue Links

          Activity

            People

              dimir dimir
              dimir dimir
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: