Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC 14 multiply modules failures #2784

Open
volga629-1 opened this issue Mar 21, 2025 · 0 comments
Open

GCC 14 multiply modules failures #2784

volga629-1 opened this issue Mar 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@volga629-1
Copy link

volga629-1 commented Mar 21, 2025

Hello Everyone, I am trying to compile freeswitch version 1.10.11 with gcc 14.2 or 14 and multiply modules are failing

making all mod_xml_rpc
make[4]: Entering directory '/home/volga629/rpmbuild/BUILD/freeswitch-1.10.11-build/freeswitch-1.10.11/src/mod/xml_int/mod_xml_rpc'
  CC       mod_xml_rpc_la-mod_xml_rpc.lo
mod_xml_rpc.c: In function 'is_authorized':
mod_xml_rpc.c:362:67: error: passing argument 6 of 'user_attributes' from incompatible pointer type [-Wincompatible-pointer-types]
  362 |         if (!user_attributes(user, domain_name, NULL, NULL, NULL, &allowed_commands)) {
      |                                                                   ^~~~~~~~~~~~~~~~~
      |                                                                   |
      |                                                                   char **
mod_xml_rpc.c:249:148: note: expected 'const char **' but argument is of type 'char **'
  249 |                                                                   const char **ppasswd, const char **pvm_passwd, const char **palias, const char **pallowed_commands)
      |                                                                                                                                       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
mod_xml_rpc.c: In function 'handler_hook':
mod_xml_rpc.c:947:86: error: passing argument 5 of 'ConnRead' from incompatible pointer type [-Wincompatible-pointer-types]
  947 |                                                 ConnRead(r->connP, 2000, NULL, NULL, &readError);
      |                                                                                      ^~~~~~~~~~
      |                                                                                      |
      |                                                                                      char **
In file included from /home/volga629/rpmbuild/BUILD/freeswitch-1.10.11-build/freeswitch-1.10.11/libs/xmlrpc-c/include/../lib/abyss/src/http.h:7,
                 from mod_xml_rpc.c:70:

gcc -DHAVE_CONFIG_H -I. -I../include  -I../include   -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c -o hash.o hash.c
hash.c: In function ‘hash_delete’:
hash.c:141:28: error: passing argument 1 of ‘iks_stack_delete’ from incompatible pointer type [-Wincompatible-pointer-types]
  141 |         iks_stack_delete (h->s);
      |                           ~^~~
      |                            |
      |                            ikstack * {aka struct ikstack_struct *}
In file included from hash.c:8:
../include/iksemel.h:27:34: note: expected ‘ikstack **’ {aka ‘struct ikstack_struct **’} but argument is of type ‘ikstack *’ {aka ‘struct ikstack_struct *’}
   27 | void iks_stack_delete (ikstack **sp);
      |                        ~~~~~~~~~~^~
@volga629-1 volga629-1 added the bug Something isn't working label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant