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

Kamailio 5.7 TLS fail to compile #3796

Closed
iliesh opened this issue Mar 27, 2024 · 2 comments
Closed

Kamailio 5.7 TLS fail to compile #3796

iliesh opened this issue Mar 27, 2024 · 2 comments

Comments

@iliesh
Copy link

iliesh commented Mar 27, 2024

Description

Unable to upgrade Kamailio 5.7 on CentOS7

Error:

tls_mod.c: In function ‘fork_child’:
tls_mod.c:348:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for(int k = 0; k < 16; k++) {
  ^
tls_mod.c:348:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [tls_mod.o] Error 1
make[1]: *** [modules] Error 1

Additional Information

  • Kamailio Version - output of kamailio -v
    Current installed version:
version: kamailio 5.7.4 (x86_64/linux) 2e6e87
@henningw
Copy link
Contributor

Thanks for the report. There are also some issues like this in file_out. @xkaraman could you please have a look?

@xkaraman
Copy link
Contributor

xkaraman commented Mar 27, 2024

Fixed in #3797 and backported to 5.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants