[ZBX-4360] Server from trunk will not compile on FreeBSD 7.3 Created: 2011 Nov 17  Updated: 2017 May 30  Resolved: 2012 Jun 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.9.8 (beta)
Fix Version/s: 1.8.10, 1.9.8 (beta)

Type: Incident report Priority: Trivial
Reporter: dimir Assignee: dimir
Resolution: Fixed Votes: 0
Labels: compilation, freebsd
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 [email protected]:/usr/obj/usr/src/sys/GENERIC i386



 Description   

Server compilation fails with error while trying to compile trapper:

[...]
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -I/usr/local/include -MT nodehistory.o -MD -MP -MF .deps/nodehistory.Tpo -c -o nodehistory.o nodehistory.c
In file included from nodehistory.h:24,
from nodehistory.c:23:
../../../include/comms.h:121: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'zbx_tcp_recv_ext'

      • Error code 1
        [...]

The problem is that "ssize_t" type is not recognized in comms.h in line:

ssize_t zbx_tcp_recv_ext(zbx_sock_t *s, char **data, unsigned char flags, int timeout);

Including <unistd.h> fixed the problem.

Steps to reproduce:
1) checkout trunk
2) enter trunk directory
3) run: ./bootstrap.sh && ./configure --enable-server --with-mysql && make dbschema > /dev/null && make >/dev/null
4) observer compilation error message



 Comments   
Comment by dimir [ 2011 Nov 17 ]

Set Fix Version/s.

Comment by dimir [ 2011 Nov 17 ]

Fixed in pre-1.9.8 r23322 .

Comment by dimir [ 2011 Nov 17 ]

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

Comment by dimir [ 2011 Nov 22 ]

Fixed in pre-1.8.10 r23415 .

Generated at Wed Apr 24 19:40:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.