[ZBX-8755] compiling on FreeBSD gives warnings about deprecated usage of sys/timeb.h Created: 2014 Sep 15  Updated: 2017 May 30  Resolved: 2016 Jan 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 2.2.6
Fix Version/s: 3.0.0alpha6

Type: Incident report Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: compilation, freebsd, warning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 9.2-RELEASE



 Description   
$ uname -or
FreeBSD 9.2-RELEASE

$ make > /dev/null
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from md5.c:54:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from base64.c:20:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from misc.c:20:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from xml.c:20:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from comms.c:20:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
In file included from ../../../include/sysinc.h:378,
                 from ../../../include/common.h:23,
                 from str.c:20:
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes <sys/timeb.h> which is deprecated"
...


 Comments   
Comment by zentarim [ 2014 Sep 15 ]

Version 2.4.0 have the same problem

Comment by Viktors Tjarve [ 2015 Dec 29 ]

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

Comment by Sandis Neilands (Inactive) [ 2016 Jan 07 ]

(1) Please review. Removed configure check for sys/timeb.h. On Windows we ask for the header explicitly in build/win32/include/config.h. Also fixed definition of a variable which is only used in Windows by putting it in ifdefs. RESOLVED in r57466.

viktors.tjarve Looks good. Successfully tested.

Comment by Viktors Tjarve [ 2016 Jan 07 ]

Released in:

  • pre-3.0.0alpha6 r57475, r57478
Generated at Tue Apr 23 11:06:04 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.