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

master: failed build on CentOS7 #2146

Closed
sergey-safarov opened this issue Nov 24, 2019 · 1 comment
Closed

master: failed build on CentOS7 #2146

sergey-safarov opened this issue Nov 24, 2019 · 1 comment

Comments

@sergey-safarov
Copy link
Member

redis_dbase.c: In function 'db_redis_scan_query_keys':                                                                     
redis_dbase.c:1086:5: error: 'for' loop initial declarations are only allowed in C99 mode                                  
     for (redis_key_t *set_key = set_keys; set_key; set_key = set_key->next) {                                             
     ^                                                                                                                     
redis_dbase.c:1086:5: note: use option -std=c99 or -std=gnu99 to compile your code                                         
make[2]: *** [redis_dbase.o] Error 1                                                                                       
make[1]: *** [modules] Error 1                                                                                             
make[1]: Leaving directory `/root/rpmbuild/BUILD/kamailio-5.4.0-dev2/src'                                                  
make: *** [every-module] Error 2 

Looks as need similar fix like daa86b2

henningw added a commit that referenced this issue Nov 24, 2019
- declare variables at the beginning of the function (GH #2146)
- error message: redis_dbase.c: In function 'db_redis_scan_query_keys':
  redis_dbase.c:1086:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (redis_key_t *set_key = set_keys; set_key; set_key = set_key->next)
@henningw
Copy link
Contributor

fixed in 278ff3a - please re-open if it still fails on CentOS7

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

2 participants