[Bug 1869751] [NEW] [focal] pacemaker FTBFS because of deprecated ftime()
Rafael David Tinoco
rafaeldtinoco at ubuntu.com
Mon Mar 30 15:27:59 UTC 2020
Public bug reported:
https://people.canonical.com/~doko/ftbfs-report/test-rebuild-20200327
-focal-focal.html
shows that pacemaker started to be FTBFS because of:
"""
gcc -DHAVE_CONFIG_H -I. -I../../include -DSUPPORT_REMOTE -I../../include -I../../include -I../../libltdl -I../../libltdl -DPCMK_TIME_EMERGENCY_CGT -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/heartbeat -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include -fPIE -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb -fgnu89-inline -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat-security -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wwrite-strings -Wunused-but-set-variable -Wformat=2 -Wformat-nonliteral -fstack-protector-strong -Werror -c -o pacemaker_remoted-pacemaker-execd.o `test -f 'pacemaker-execd.c' || echo './'`pacemaker-execd.c
execd_commands.c: In function ‘stonith_recurring_op_helper’:
execd_commands.c:257:5: error: ‘ftime’ is deprecated [-Werror=deprecated-declarations]
257 | ftime(&cmd->t_queue);
| ^~~~~
In file included from execd_commands.c:23:
/usr/include/i386-linux-gnu/sys/timeb.h:39:12: note: declared here
39 | extern int ftime (struct timeb *__timebuf)
| ^~~~~
execd_commands.c: In function ‘schedule_lrmd_cmd’:
execd_commands.c:389:5: error: ‘ftime’ is deprecated [-Werror=deprecated-declarations]
389 | ftime(&cmd->t_queue);
| ^~~~~
"""
And man page shows:
SYNOPSIS
#include <sys/timeb.h>
int ftime(struct timeb *tp);
DESCRIPTION
NOTE: This function is deprecated, and will be removed in a future version of the GNU C library. Use clock_gettime(2) instead.
I'll fix this together with other fixes, opening this bug to track the issue.
** Affects: pacemaker (Ubuntu)
Importance: High
Assignee: Rafael David Tinoco (rafaeldtinoco)
Status: Confirmed
** Changed in: pacemaker (Ubuntu)
Status: New => Won't Fix
** Changed in: pacemaker (Ubuntu)
Status: Won't Fix => Confirmed
** Changed in: pacemaker (Ubuntu)
Importance: Undecided => High
** Changed in: pacemaker (Ubuntu)
Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco)
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to pacemaker in Ubuntu.
https://bugs.launchpad.net/bugs/1869751
Title:
[focal] pacemaker FTBFS because of deprecated ftime()
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pacemaker/+bug/1869751/+subscriptions
More information about the Ubuntu-server-bugs
mailing list