[ZBX-1074] Compilation error on HP/UX 11.11 with Ansi C/C++ Created: 2009 Oct 07  Updated: 2017 May 30  Resolved: 2011 Jul 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.6.6
Fix Version/s: 1.8.6

Type: Incident report Priority: Major
Reporter: matthew murdock Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

HP/UX 11.11, HP Ansi C/C++ Compiler vers.C.03.37.01


Attachments: Text File mutexs.patch    
Issue Links:
Duplicate
is duplicated by ZBX-1073 While compiling on hp/ux 11.11 with a... Closed

 Description   

when compiling the libs in src/libs of zabbix_1.6.6, I come across mutex errors while compiling zbxsys. Here is the output:

  1. pwd
    /disk1/zabbix/zabbix-1.6.6/src/libs
  2. ls
    Makefile zbxcomms zbxdbcache zbxjabber zbxplugin zbxsysinfo
    Makefile.am zbxconf zbxdbhigh zbxjson zbxserver zbxwin32
    Makefile.in zbxcrypto zbxemail zbxlog zbxsms
    zbxcommon zbxdb zbxicmpping zbxnix zbxsys
  3. make
    No suffix list. <<==Dont why this occurs, but happens on all versions of hpux.
    Making all in zbxcrypto
    Making all in zbxcommon
    Making all in zbxlog
    Making all in zbxnix
    Making all in zbxconf
    Making all in zbxsysinfo
    Making all in common
    Making all in simple
    Making all in hpux
    Making all in zbxplugin
    Making all in zbxsys
    source='mutexs.c' object='mutexs.o' libtool=no \
    DEPDIR=.deps depmode=hp /bin/sh ../../../depcomp \
    cc -DHAVE_CONFIG_H -I. -I../../../include -g -c mutexs.c
    cc: "mutexs.c", line 215: error 1521: Incorrect initialization.
    cc: "mutexs.c", line 260: error 1521: Incorrect initialization.
      • Error exit code 1

Stop.

      • Error exit code 1

Stop.



 Comments   
Comment by Brian Collins [ 2011 Jul 05 ]

My colleague found that this was caused by the cc compiler on HP-UX not wanting to initialize an identifier as it was being declared. Attached patch will initialize on a separate line after declaration. Tested on HP-UX 11.11 and 11.31. This was done with Zabbix version 1.8.5.

Comment by Aleksandrs Saveljevs [ 2011 Jul 06 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-1074.

Brian, if you wish your colleague to appear in ChangeLog, too, please tell us his name.

Comment by Aleksandrs Saveljevs [ 2011 Jul 07 ]

Fixed in pre-1.8.6 in r20472.

Generated at Wed Apr 24 04:16:04 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.