[ZBX-7670] Zabbix 2.2.1 server (with Oracle DB) on HP-UX 11.23 'make install' fails Created: 2014 Jan 17  Updated: 2017 May 30  Resolved: 2014 Feb 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 2.2.1
Fix Version/s: 2.2.3rc1, 2.3.0

Type: Incident report Priority: Blocker
Reporter: Adam Hitchens Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compilation, hp-ux, oracle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

HP-UX, Oracle DB,
OS info:
sysname = HP-UX
nodename = hpitan3
release = B.11.23
version = U (unlimited-user license)
machine = ia64


Issue Links:
Duplicate
is duplicated by ZBX-7669 Zabbix 2.2 server (with Oracle DB) wi... Closed

 Description   

Along with this error, occasionally there is a repeated error of 'no suffix list'

Making install in zbxdbcache
source='valuecache.c' object='libzbxdbcache_a-valuecache.o' libtool=no \
DEPDIR=.deps depmode=hp2 /bin/sh ../../../depcomp \
cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../src/zabbix_server/ -I../../../src/libs/zbxalgo -g -I/oravl01/oracle/10.2.0/rdbms/public/ -c -o libzbxdbcache_a-valuecache.o `test -f 'valuecache.c' || echo './'`valuecache.c
"valuecache.c", line 568: error #3143: arithmetic on pointer to void or
function type
return ZBX_DEFAULT_STRING_HASH_FUNC(data + REFCOUNT_FIELD_SIZE);
^

"valuecache.c", line 573: error #3143: arithmetic on pointer to void or
function type
return strcmp(d1 + REFCOUNT_FIELD_SIZE, d2 + REFCOUNT_FIELD_SIZE);
^

"valuecache.c", line 573: error #3143: arithmetic on pointer to void or
function type
return strcmp(d1 + REFCOUNT_FIELD_SIZE, d2 + REFCOUNT_FIELD_SIZE);
^

"valuecache.c", line 1018: error #3143: arithmetic on pointer to void or
function type
return ptr + REFCOUNT_FIELD_SIZE;
^

"valuecache.c", line 1183: error #3143: arithmetic on pointer to void or
function type
memset((void*)item + sizeof(item->itemid) + sizeof(item->value_type), 0,
^

"valuecache.c", line 1183: error #3143: arithmetic on pointer to void or
function type
memset((void*)item + sizeof(item->itemid) + sizeof(item->value_type), 0,
^

6 errors detected in the compilation of "valuecache.c".

      • Error exit code 2

Stop.

      • Error exit code 1

Stop.

      • Error exit code 1

Stop.

      • Error exit code 1

Stop.



 Comments   
Comment by Juris Miščenko (Inactive) [ 2014 Jan 31 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-7670

Comment by Andris Zeila [ 2014 Feb 03 ]

To avoid such problems Zabbix should be compiled with -Wpointer-arith warning during development.

Comment by Andris Zeila [ 2014 Feb 03 ]

(1) After enabling warning found few more places with void pointer arithmetic. Please review r42070:HEAD

jurism All occurrences of void pointer arithmetic have been eliminated. Looks good. CLOSED

Comment by Juris Miščenko (Inactive) [ 2014 Feb 12 ]

The issue has been resolved but has not been tested on an actual HP-UX machine due to lack of databases in our test environments.

Adam, could you please download the corrected version and see if it compiles? Reports of any successes or failures would be greatly appreciated.

Comment by Alexander Vladishev [ 2014 Feb 12 ]

Fixed in pre-2.2.3 r42589 and pre-2.3.0 (trunk) r42590.

Generated at Fri Apr 26 09:57:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.