[ZBX-2946] agent does not compile on freebsd 7.3 Created: 2010 Aug 26 Updated: 2017 May 30 Resolved: 2011 Aug 27 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Installation (I) |
Affects Version/s: | 1.8.3 |
Fix Version/s: | 1.8.6 |
Type: | Incident report | Priority: | Major |
Reporter: | Aleksandrs Saveljevs | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | Archive.zip |
Description |
Building an agent on FreeBSD 7.3 fails with the following error: Making all in zabbix_agent
Problem originally described in http://www.zabbix.com/forum/showthread.php?t=18934. |
Comments |
Comment by Aleksandrs Saveljevs [ 2010 Sep 02 ] |
Could not reproduce. The agent builds correctly from both our sources and FreeBSD ports collection. Apparently, the original reporters' systems have execinfo.h, while our FreeBSD 7.3 does not. So we need to find out how did they get this header file on their systems. |
Comment by Dmitry Yakovlev [ 2010 Sep 02 ] |
Hello, I can give you access to a computer where the error comes out. (dilmas dot kras at gmail dot com, I am from Russia) |
Comment by Aleksandrs Saveljevs [ 2010 Sep 02 ] |
Thank you! I have sent you an email. |
Comment by Aleksandrs Saveljevs [ 2010 Sep 02 ] |
Header file /usr/local/include/execinfo.h comes from /usr/ports/devel/libexecinfo port and maybe we will have to specify -lexecinfo when linking. |
Comment by Aleksandrs Saveljevs [ 2010 Sep 06 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/zbx-2946-freebsd73. |
Comment by Aleksandrs Saveljevs [ 2010 Sep 06 ] |
Merged into pre-1.8.4 in r14303. |
Comment by Artem Vinokurov [ 2010 Sep 13 ] |
I have same errors. Aleksandrs how i can resolve my problem, where i can download pre-1.8.4 in r14303? |
Comment by Aleksandrs Saveljevs [ 2010 Sep 13 ] |
Artem, you have two options: (1) download a nightly pre-1.8.4 build from http://www.zabbix.com/developers.php; In both cases you will get Zabbix sources. Then type: ./bootstrap.sh [only in case (2); this requires that you have autotools and pkg-config installed] If you also need to install Zabbix server, please let me know. |
Comment by Artem Vinokurov [ 2010 Sep 15 ] |
Thanks for the answer Aleksandrs, i have freebsd 6.2 and too many ports need to update for 1.8.3 , so i decide to install zabbix 1.8.2, this version was installed without problem |
Comment by Oleksii Zagorskyi [ 2010 Oct 14 ] |
Maybe it's not important, but I will share information. What I do: edit the Makefile of the port "net-mgmt/zabbix-server" to 1.8.4rc1. (PORTVERSION=1.8.4rc1) cc -DZABBIX_DAEMON -O2 -pipe -fno-strict-aliasing -I/usr/local/include -L/usr/local/lib -o zabbix_agentd zabbix_agentd-active.o zabbix_agentd-stats.o zabbix_agentd-cpustat.o zabbix_agentd-diskdevices.o zabbix_agentd-interfaces.o zabbix_agentd-perfstat.o zabbix_agentd-vmstats.o zabbix_agentd-logfiles.o zabbix_agentd-zabbix_agentd.o zabbix_agentd-zbxconf.o zabbix_agentd-listener.o zabbix_agentd-eventlog.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/freebsd/libspecsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a -lkvm -lm -ldevstat -liconv
Stop in /usr/ports/net-mgmt/zabbix-agent/work/zabbix-1.8.4rc1/src/zabbix_agent.
Stop in /usr/ports/net-mgmt/zabbix-agent/work/zabbix-1.8.4rc1/src.
Stop in /usr/ports/net-mgmt/zabbix-agent/work/zabbix-1.8.4rc1.
Stop in /usr/ports/net-mgmt/zabbix-agent.
Stop in /usr/ports/net-mgmt/zabbix-agent. If you I compile from source according to the documentation, then i do not have any problems. gcc -DZABBIX_DAEMON -g -O2 -I/usr/local/include -L/usr/local/lib -o zabbix_agentd zabbix_agentd-active.o zabbix_agentd-stats.o zabbix_agentd-cpustat.o zabbix_agentd-diskdevices.o zabbix_agentd-interfaces.o zabbix_agentd-perfstat.o zabbix_agentd-vmstats.o zabbix_agentd-logfiles.o zabbix_agentd-zabbix_agentd.o zabbix_agentd-zbxconf.o zabbix_agentd-listener.o zabbix_agentd-eventlog.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/freebsd/libspecsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a -lkvm -lm -ldevstat -liconv |
Comment by MIt Rowe [ 2010 Oct 20 ] |
With regards to the freebsd compile issue, if one makes libexecinfo a dependancy of the port, and add -lexecinfo to the zabbix-agent makefile, the error disappears. Perhaps the freebsd zabbix-agent port maintainer [email protected] can arrange this to be added if he concurs. |
Comment by Oleksii Zagorskyi [ 2011 Jan 31 ] |
Problem is still persist. Problem related not only to the agent and to the server too. Tested 1.8.4 release of zabbix_agent. It not present in the ports collection, but it easy to copy a folders zabbix-server and zabbix-agent with another names and manually edit Makefile to point at 1.8.4 distribution. So, what i figured out. but finds not a 'libexecinfo' library (-lexecinfo): As results at the end of compilation i get the same error:
When i `configure && make` from the extracted source folder: and the same for the 'libexecinfo' library: I'll attach 'config.log' and 'configure+make-output.txt' files for both of test after you reopen this issue (now unfortunately i can't). It seems the previous solution, provided in a 14304 revision is not very gud. P.S. Library and header file of libexecinfo-1.1_3 port is installed at the "/usr/local" path. 48228:20110130:215350.872 Got signal [signal:11(SIGSEGV),reason:65537,refaddr:0x0]. Crashing ... And one additional question. How do you think - it is necessary that the zabbix-[server|proxy|agent] ports had a forced dependence of the libexecinfo port? I.e. - it is useful backtrace information under FreeBSD? Why i do that |
Comment by richlv [ 2011 Jan 31 ] |
apparently there are some problems, reopening |
Comment by Oleksii Zagorskyi [ 2011 Jan 31 ] |
"Archive.zip" with logs attached. |
Comment by Artem Vinokurov [ 2011 Jan 31 ] |
for 1.8.3, /usr/ports/devel/libexecinfo/ can be deleted during server installation, and restored afterwards |
Comment by Artem Vinokurov [ 2011 Jan 31 ] |
apparently, might also help for 1.8.4 |
Comment by Oleksii Zagorskyi [ 2011 Feb 27 ] |
Just for case. FreeBSD ports issue tracker has a issue request registered. http://www.freebsd.org/cgi/query-pr.cgi?pr=153688 |
Comment by Oleksii Zagorskyi [ 2011 May 22 ] |
I think this issue can be closed as... mmm, i don't know maybe as "won't fix" or so. The last thought that I want to share with developers: maybe handling of "libexecinfo" should be performed by using m4 script as for other external libraries, for the correct finding and linking on the different systems out of the box? |
Comment by Oleksii Zagorskyi [ 2011 Aug 04 ] |
My suggestion described in the PR156519 (see link in the previous post) taken into account by Jim Riggs in a new PR159515 (update to 1.8.6). Link is http://www.freebsd.org/cgi/query-pr.cgi?pr=159515 So let's wait an applying such changes in the FreeBSD ports collection and finally close this issue. |
Comment by richlv [ 2011 Aug 11 ] |
if everything's fixed on zabbix side i'd say we should close this one. is it so ? |
Comment by Oleksii Zagorskyi [ 2011 Aug 11 ] |
Once I suggested to close this issue but anyone not take that into account . But I would be happy to close it right now without the waiting if you agree |
Comment by richlv [ 2011 Aug 11 ] |
closing we like |
Comment by Oleksii Zagorskyi [ 2011 Aug 11 ] |
Finally will be fixed in the FreeBSD ports collection for Zabbix version 1.8.6 |
Comment by richlv [ 2011 Aug 27 ] |
reopen to deal with "fix for" version again |
Comment by Oleksii Zagorskyi [ 2011 Oct 15 ] |
Finally Zabbix 1.8.8 updated in the FreeBSD port collection !!! Versions 1.8.6 and 1.8.7 were not included in the FreeBSD port collection. |