[ZBX-5171] HPUX 11.23 IA64 Agent Compile Problem - Possible Workaround Created: 2012 Jun 12 Updated: 2017 May 30 Resolved: 2012 Aug 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.0 |
Fix Version/s: | 2.0.3rc1, 2.1.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Dimitri Bellini | Assignee: | dimir |
Resolution: | Fixed | Votes: | 0 |
Labels: | agent, compile, hp-ux | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
HPUX 11.23 IA64 |
Attachments: | config.log config.log configure configure configure.log |
Description |
today i have compiled Zabbix Agent to test on HPUX IA64 release 11.23 Compile Error: cc -DSYSCONFDIR="\"/usr/local/etc\"" -g -o zabbix_agent
I have solved in this mode:
|
Comments |
Comment by dimir [ 2012 Jun 26 ] |
Confirmed on HP-UX 11.23 Itanium. |
Comment by dimir [ 2012 Jun 26 ] |
This problem is introduced in 2.0 with net.if.discovery functionality. In order to discover network interfaces if_nameindex() and if_freenameindex() functions are used. From the man page it is stated that (as Dimitri Bellini suggested above) in order to use these functions application should be linked with libipv6 library. |
Comment by dimir [ 2012 Jun 26 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-5171 . |
Comment by richlv [ 2012 Jun 27 ] |
i assume not, but maybe this solved parts of |
Comment by dimir [ 2012 Jun 29 ] |
Nope, that issue is about server compilation. Actually I haven't even tried compiling Server on HP-UX. |
Comment by Eric Wertman [ 2012 Jul 02 ] |
I took a stab at compiling the svn version, configure is croaking on me here: checking for architecture... ok (hpux11.11) |
Comment by dimir [ 2012 Jul 10 ] |
I just checked on 11.11 itanium, there is no such error: [...] Did you check out the svn://svn.zabbix.com/branches/dev/ZBX-5171 branch and generated configure script using ./bootstrap.sh? Could you attach config.log and configure files? |
Comment by Eric Wertman [ 2012 Jul 10 ] |
Yes, I pulled that version from svn and ran bootstrap.sh to generate the configure script. Attaching configure and config.log. Thanks for your help. |
Comment by dimir [ 2012 Jul 10 ] |
I have added commit (r28786) to the branch. Could you try that again and if that fails, reattach new configure and config.log please. As I understood you ran ./configure without any options. That still should not be giving an error above but in any case, could you also try ./configure --enable-agent and see if you get the error again. |
Comment by Eric Wertman [ 2012 Jul 10 ] |
Same result... I did use --enable-agent, I have been except for the last run I supplied I forgot to use it. |
Comment by dimir [ 2012 Jul 11 ] |
Could you also generate the output from configure? ./configure --enable-agent >/tmp/configure.log 2>&1 and attach /tmp/configure.log too? |
Comment by Eric Wertman [ 2012 Jul 11 ] |
configure.log attached, thanks. |
Comment by Alexander Vladishev [ 2012 Jul 12 ] |
(1) compilation does not work under HP-UX 11.11 PA-RISC with native compiler /usr/ccs/bin/ld: Can't find library: "ipv6" Related information: http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02258083/c02258083.pdf <dimir> RESOLVED in r28911 |
Comment by Alexander Vladishev [ 2012 Jul 12 ] |
(2) Please review my changes in r28813 <dimir> Fine with me. CLOSED |
Comment by dimir [ 2012 Jul 16 ] |
Eric, thank you for your attachments. It's still unclear why the error happens though. I could not reproduce it on 11.11, 11.23, 11.31. Could you try the latest commit and see if the problem is still there? Which OS version do you have by the way? |
Comment by Eric Wertman [ 2012 Jul 23 ] |
I'm using HP-UX 11.11. Now the configure errors out with this. configure: error: cannot compile agent because ipv6 library is not available I'm assuming this is by design and I need to install the ipv6 libraries. It's not installed by default on older HP-UX versions, so not having it will be a common problem for older OS versions. I was hoping to be able to bypass the requirement. |
Comment by dimir [ 2012 Jul 27 ] |
OK, it was decided to get rid of the ipv6 library dependency for the older HP-UX machinges (prior to 11.31). The code is being tested and will be available on Monday I believe. |
Comment by dimir [ 2012 Jul 27 ] |
(3) Get rid of agent ipv6 library dependency. <dimir> RESOLVED in r29190 |
Comment by Alexander Vladishev [ 2012 Aug 29 ] |
(4) We don't use strtok() function. Please remove it from new code. <dimir> RESOLVED in r29939 <Sasha> CLOSED |
Comment by Alexander Vladishev [ 2012 Aug 29 ] |
(5) please review my changes in r29933. <dimir> CLOSED |
Comment by Alexander Vladishev [ 2012 Aug 30 ] |
Successfully tested! Please review my changes in r29944. |
Comment by dimir [ 2012 Aug 30 ] |
Fixed in pre-2.0.3 r29952, pre-2.1.0 r29953. |