[ZBX-15411] Compilation for zabbix-agent Fails on Solaris 11.11 Created: 2019 Jan 04 Updated: 2019 Jan 09 Resolved: 2019 Jan 09 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 4.0.2 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Major |
Reporter: | Michael Colletti | Assignee: | Zabbix Support Team |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | config.log |
Description |
Steps to reproduce: Download 4.0.2 to Solaris 11 box Try to compile agents using ./configure --enable agents Encounter the following error checking for libpcre support... no This only occurs with building the agent --enable-agent when giving just a configure. pcre and pcre2 are installed as is gcc and make.
Seeing other failures and errors for GCC and libraries missing. Is 4.0.2 supported on uname -a (SunOS 5.11 11.4.4.4.0 sun4v sparc sun4v) Perhaps there are environmental things that can be reviewed. Log attached. Thanks in advance
Result: |
Comments |
Comment by Alexey Pustovalov [ 2019 Jan 04 ] |
You do not have libpcre-dev package on your system. Please install it and try again. |
Comment by Michael Colletti [ 2019 Jan 07 ] |
Thanks Alexey....I have the SAs trying to get that package in the supported Solaris world. We're only seeing it in OpenCSW and were hoping the image dependencies were able to be satisfied with native Solaris packages for support reasons. Hoping I can compile get the agent bins and deploy. Hoping that I wouldn't have to have them install the package across the env. Does the --enable-static flag work on 4.0.2 and solaris 11.11 ? |
Comment by Alexey Pustovalov [ 2019 Jan 07 ] |
Yes, it works |
Comment by Michael Colletti [ 2019 Jan 08 ] |
Thanks Alexey! Is native pcre installs on 11.11 supported without the applies of the pcre from OpenCSW? Can't find any dev libs in solaris to support this. Would the best thing be to use OpenCSW and then compile with the --enable-static frags so the libraries will be compiled in the binaries. I have a precompiled 3.x binary and that doesn't seem to have a problem. Was pretty sure pcre was a requirement in the pre 4.x world. |
Comment by Glebs Ivanovskis [ 2019 Jan 08 ] |
Development package simply contains header files (*.h) in addition to the library itself. You can simply download libpcre source files and point Zabbix configure script to the directory containing these files (usually "include") using the following option: --with-libpcre-include[=DIR] use libpcre include headers from given path. |
Comment by Michael Colletti [ 2019 Jan 09 ] |
This totally hooked me up. Thanks Alexey and Glebs, you both are truly Dope! |