freeswitch / sofia-sip

Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification.
GNU Lesser General Public License v2.1
270 stars 175 forks source link

1.13.17: is not gcc 14.x ready #248

Open kloczek opened 8 months ago

kloczek commented 8 months ago

Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.

Build fails with ```console make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/sofia-sip-1.13.17/libsofia-sip-ua/sip' LTCOMPILE sip_basic.lo sip_basic.c: In function 'sip_identity_d': sip_basic.c:2885:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2885 | uri = pp + 1; | ^ sip_basic.c:2905:40: error: passing argument 3 of 'msg_params_d' from incompatible pointer type [-Wincompatible-pointer-types] 2905 | if (msg_params_d(home, &ext, ¶ms) >= 0) { | ^~~~~~~ | | | const char *** In file included from sofia-sip/sip_parser.h:52, from sip_basic.c:46: ./../msg/sofia-sip/msg_parser.h:280:55: note: expected 'const char * const**' but argument is of type 'const char ***' 280 | msg_param_t const **return_params); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ make[4]: *** [Makefile:1570: sip_basic.lo] Error 1 ```