[ZBX-13803] Zabbix ignores DESTDIR when performing "make install" Created: 2018 Apr 27  Updated: 2024 Apr 10  Resolved: 2018 May 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 4.0.0alpha6
Fix Version/s: 4.0.0alpha7, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: dimir Assignee: dimir
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBX-13350 Default depends on compilation option... Closed
Team: Team C
Sprint: Sprint 33, Sprint 34
Story Points: 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


 Comments   
Comment by dimir [ 2018 Apr 27 ]

Caused by ZBX-13350

Generated at Wed May 08 18:48:07 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.