[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: Text File config.log     Text File config.log     File configure     File configure     Text File configure.log    

 Description   

today i have compiled Zabbix Agent to test on HPUX IA64 release 11.23
and i have find some problem, the main one is this (other guy on forum
have found it http://www.zabbix.com/forum/showthread.php?t=26535):

Compile Error:


cc -DSYSCONFDIR="\"/usr/local/etc\"" -g -o zabbix_agent
zabbix_agent-zabbix_agent.o zabbix_agent-stats.o
zabbix_agent-cpustat.o zabbix_agent-diskdevices.o
zabbix_agent-perfstat.o zabbix_agent-vmstats.o zabbix_agent-zbxconf.o
../../src/libs/zbxsysinfo/libzbxagentsysinfo.a
../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a
../../src/libs/zbxsysinfo/agent/libagentsysinfo.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
../../src/libs/zbxexec/libzbxexec.a -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
if_freenameindex (first referenced in
../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a(libspecsysinfo_a-net.o))
(code)
if_nameindex (first referenced in
../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a(libspecsysinfo_a-net.o))
(code)

      • Error exit code 1

I have solved in this mode:

  1. export LDFLAGS="-lipv6"
  2. ./configure --enable-agent
  3. make
  4. make install


 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 ZBX-1998 as well ?

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)
./configure[7317]: Syntax error at line 8474 : `(' is not expected.

Comment by dimir [ 2012 Jul 10 ]

I just checked on 11.11 itanium, there is no such error:

[...]
checking for architecture... ok (hpux11.31)
checking for ICONV support... yes
[...]

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
<Sasha> CLOSED

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
<Sasha> CLOSED

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.

Generated at Fri Apr 26 06:31:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.