[ZBX-20892] Cannot build Zabbix Proxy from sources with static libs Created: 2022 Apr 13 Updated: 2023 Nov 20 |
|
Status: | Confirmed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I), Packages (C), Proxy (P) |
Affects Version/s: | 5.0.22 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Minor |
Reporter: | Khatsayuk Alexander | Assignee: | Zabbix Development Team |
Resolution: | Unresolved | Votes: | 3 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu 20.04.4 with updates |
Attachments: |
![]() ![]() ![]() ![]() ![]() |
Description |
Steps to reproduce:
I have installed libxml2-dev and all necessary build instruments. If I remove "--enable-static" option configure script end successfully and I can start make process. |
Comments |
Comment by Aigars Kadikis [ 2022 Apr 25 ] |
I'm trying to minimize the problem to a single dependency. This works fine on Ubuntu 18 LTS:
apt update
apt -y install gcc make wget libsqlite3-dev libevent-dev libxml2-dev
wget https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.22.tar.gz
tar xvf zabbix-5.0.22.tar.gz
cd zabbix-5.0.22
./configure --enable-proxy --with-sqlite3 --with-libxml2
But on Ubuntu 20 LTS there still is a dedicated 'libxml2-dev' package. However, at the end of 'configure', it says: configure: error: LIBXML2 library not found |
Comment by Aigars Kadikis [ 2022 Apr 25 ] |
Confirming |
Comment by Zaur Azimov [ 2023 Nov 20 ] |
Same problem with any static compilation: `--with-unixodbc` then: configure: error: unixODBC library not found `--with-ssh2` then: configure: error: SSH2 library not found If you compile only: `./configure --prefix=/usr --enable-proxy --with-sqlite3 --enable-static` then: configure: error: Unable to use libevent (libevent check failed)
If the --enable-static flag is removed: ./configure --prefix=/usr --enable-proxy --with-net-snmp --with-sqlite3 --with-ssh2 --with-libcurl --with-libxml2 --with-openipmi --with- openssl --with-unixodbc --with-openssl --with-unixodbc then succeeds.
Debian10/Zabbix-6.4.8 |