[Debian-ha-maintainers] Bug#1077353: heartbeat: FTBFS: heartbeat.c:1649:34: error: passing argument 1 of ‘ipc_set_pollfunc’ from incompatible pointer type [-Wincompatible-pointer-types]

Lucas Nussbaum lucas at debian.org
Sun Jul 28 17:29:12 BST 2024


Source: heartbeat
Version: 1:3.0.6-14.2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240727 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -I../include -I../linux-ha -I../linux-ha -I../libltdl -I../libltdl -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/heartbeat -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing   -ggdb2 -funsigned-char -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing   -ggdb2 -funsigned-char -MT heartbeat-heartbeat.o -MD -MP -MF .deps/heartbeat-heartbeat.Tpo -c -o heartbeat-heartbeat.o `test -f 'heartbeat.c' || echo './'`heartbeat.c
> heartbeat.c: In function ‘master_control_process’:
> heartbeat.c:1648:27: warning: Deprecated pre-processor symbol: replace with "g_main_context_set_poll_func"
>  1648 |                 g_main_set_poll_func(cl_glibpoll);
>       |                           ^~~~~~~~~~~~~~~~~~~~~~~~                                                        
> heartbeat.c:1649:34: error: passing argument 1 of ‘ipc_set_pollfunc’ from incompatible pointer type [-Wincompatible-pointer-types]
>  1649 |                 ipc_set_pollfunc(cl_poll);
>       |                                  ^~~~~~~
>       |                                  |
>       |                                  int (*)(struct pollfd *, unsigned int,  int)
> In file included from heartbeat.c:234:
> /usr/include/clplumbing/ipc.h:703:30: note: expected ‘int (*)(struct pollfd *, nfds_t,  int)’ {aka ‘int (*)(struct pollfd *, long unsigned int,  int)’} but argument is of type ‘int (*)(struct pollfd *, unsigned int,  int)’
>   703 | extern void ipc_set_pollfunc(int (*)(struct pollfd*, nfds_t, int));
>       |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> heartbeat.c:1651:20: warning: Deprecated pre-processor symbol: replace with "g_main_loop_new"
>  1651 |         mainloop = g_main_new(TRUE);
>       |                    ^~~~~~~~~~~~~~~~~                                                  
> heartbeat.c:1652:20: warning: Deprecated pre-processor symbol: replace with "g_main_loop_run"
>  1652 |         g_main_run(mainloop);
>       |                    ^~~~~~~~~~                                                         
> heartbeat.c: In function ‘hb_mcp_final_shutdown’:
> heartbeat.c:2124:9: warning: ‘sigignore’ is deprecated: Use the signal function instead [-Wdeprecated-declarations]
>  2124 |         CL_IGNORE_SIG(SIGTERM);
>       |         ^~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28,
>                  from ../include/lha_internal.h:43,
>                  from heartbeat.c:195:
> /usr/include/signal.h:363:12: note: declared here
>   363 | extern int sigignore (int __sig) __THROW
>       |            ^~~~~~~~~
> heartbeat.c: In function ‘HBDoMsg_T_REPNODES’:
> heartbeat.c:2980:17: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
>  2980 |                 memset(nodes, 0, MAXNODE);
>       |                 ^~~~~~
> heartbeat.c:3058:17: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
>  3058 |                 memset(delnodes, 0, MAXNODE);
>       |                 ^~~~~~
> heartbeat.c: In function ‘start_a_child_client’:
> heartbeat.c:4117:9: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
>  4117 |         ||      CL_SIGINTERRUPT(SIGALRM, 0) < 0) {
>       |         ^~
> /usr/include/signal.h:324:12: note: declared here
>   324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
>       |            ^~~~~~~~~~~~
> heartbeat.c:4131:17: warning: ‘sigignore’ is deprecated: Use the signal function instead [-Wdeprecated-declarations]
>  4131 |                 CL_IGNORE_SIG(SIGALRM);
>       |                 ^~~~~~~~~~~~~
> /usr/include/signal.h:363:12: note: declared here
>   363 | extern int sigignore (int __sig) __THROW
>       |            ^~~~~~~~~
> heartbeat.c: In function ‘hb_emergency_shutdown’:
> heartbeat.c:5204:9: warning: ‘sigignore’ is deprecated: Use the signal function instead [-Wdeprecated-declarations]
>  5204 |         CL_IGNORE_SIG(SIGTERM);
>       |         ^~~~~~~~~~~~~
> /usr/include/signal.h:363:12: note: declared here
>   363 | extern int sigignore (int __sig) __THROW
>       |            ^~~~~~~~~
> gmake[3]: *** [Makefile:787: heartbeat-heartbeat.o] Error 1
> gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/heartbeat'
> gmake[2]: *** [Makefile:960: all-recursive] Error 1
> gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/heartbeat'
> make[1]: *** [Makefile:585: all-recursive] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/07/27/heartbeat_3.0.6-14.2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240727;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240727&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-ha-maintainers mailing list