linuxmaniac created an issue (kamailio/kamailio#4156)
Forwarded from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096894
The package fails to build in a test rebuild on at least amd64 with gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The severity of this report will be raised before the forky release.
The full build log can be found at: http://qa-logs.debian.net/2025/02/16/amd64exp/kamailio_6.0.0-1_unstable_gcce... The last lines of the build log are at the end of this report.
linuxmaniac left a comment (kamailio/kamailio#4156)
``` DUSE_FUTEX -DHAVE_SELECT -I/usr/include/libxml2 -DMOD_NAME='"pua"' -DMOD_NAMEID='pua' -c hash.c -o hash.o In file included from /usr/include/libbson-1.0/bson/bson-compat.h:35, from /usr/include/libbson-1.0/bson/bson.h:23, from /usr/include/libmongoc-1.0/mongoc/mongoc.h:22, from /usr/include/libmongoc-1.0/mongoc.h:18, from mongodb_connection.h:28, from mongodb_connection.c:26: /usr/include/libbson-1.0/bson/bson-macros.h:213:34: error: expected ‘;’ before ‘void’ 213 | static BSON_INLINE BSON_NORETURN void | ^~~~ /usr/include/libbson-1.0/bson/bson-macros.h:220:34: error: expected ‘;’ before ‘void’ 220 | static BSON_INLINE BSON_NORETURN void | ^~~~ gcc -fPIC -DPIC -pthread -funroll-loops -Wcast-align -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kamailio-6.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVERSION_NODATE -DNAME='"kamailio"' -DVERSION='"6.0.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 15.0.1"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=6000000 -DCFG_DIR='"/etc/kamailio/"' -DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_NAPTR -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKAROUND -DUSE_FUTEX -DHAVE_SELECT -DMOD_NAME='"ims_dialog"' -DMOD_NAMEID='ims_dialog' -c dlg_req_within.c -o dlg_req_within.o make[4]: *** [../../Makefile.rules:100: mongodb_connection.o] Error 1 make[3]: *** [Makefile:511: modules] Error 1 make[3]: Leaving directory '/build/reproducible-path/kamailio-6.0.0/src' make[2]: *** [Makefile:34: every-module] Error 2 make[2]: Leaving directory '/build/reproducible-path/kamailio-6.0.0' make[1]: *** [debian/rules:148: build_mongodb] Error 2 make[1]: *** Waiting for unfinished jobs.... ```
linuxmaniac left a comment (kamailio/kamailio#4156)
``` ims_dialog.c: In function ‘mod_init’: ims_dialog.c:573:27: error: passing argument 1 of ‘register_timer’ from incompatible pointer type [-Wincompatible-pointer-types] 573 | if(register_timer(print_all_dlgs, 0, 10) < 0) { | ^~~~~~~~~~~~~~ | | | void (*)(void) In file included from ../../core/pt.h:31, from ../../core/counters.h:37, from ../../core/sr_module.h:44, from ims_dialog.c:7: ../../core/timer.h:191:35: note: expected ‘void (*)(unsigned int, void *)’ but argument is of type ‘void (*)(void)’ 191 | int register_timer(timer_function f, void *param, unsigned int interval); | ~~~~~~~~~~~~~~~^ In file included from ims_dialog.c:27: dlg_handlers.h:199:6: note: ‘print_all_dlgs’ declared here 199 | void print_all_dlgs(); | ^~~~~~~~~~~~~~ make[4]: *** [../../Makefile.rules:100: ims_dialog.o] Error 1 make[4]: *** Waiting for unfinished jobs.... ```