Module: kamailio
Branch: master
Commit: 05e06cb01a2fbef6c3077ca46a1ef5dac1488a7f
URL: https://github.com/kamailio/kamailio/commit/05e06cb01a2fbef6c3077ca46a1ef5d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-02-17T20:32:27+01:00
CONTRIBUTING.md: note about personal branches of developers
- prefix with `developerid/` when creating a personal branch inside
Kamailio GIT repository
---
Modified: .github/CONTRIBUTING.md
---
Diff: https://github.com/kamailio/kamailio/commit/05e06cb01a2fbef6c3077ca46a1ef5d…
Patch: https://github.com/kamailio/kamailio/commit/05e06cb01a2fbef6c3077ca46a1ef5d…
---
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 1705611aaa..1ac2f598e9 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -77,6 +77,9 @@ and commit history, there are several *rules* required for each contribution.
* code **should** be formatted with **clang-format** or to match the style of
the component that the commit applies to. The `.clang-format` file is part of
Kamailio source code tree, in the root folder.
+ * personal branches of developers done inside Kamailio GIT repository must be
+ prefixed with `developerid/`, e.g., `alice/new-feature`. Do not use just
+ `new-feature` or `alice-new-feature` or other variant without `developerid/`.
### Commit Message Format ###
This module provides db api interface to redis database
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1422
-- Commit Summary --
* Modules: db_redis for usrloc module
-- File Changes --
A src/modules/db_redis/Makefile (36)
A src/modules/db_redis/README (89)
A src/modules/db_redis/db_redis.c (100)
A src/modules/db_redis/doc/Makefile (4)
A src/modules/db_redis/doc/db_redis.xml (45)
A src/modules/db_redis/doc/db_redis_admin.xml (86)
A src/modules/db_redis/redisdb_base.c (1189)
A src/modules/db_redis/redisdb_connection.c (100)
A src/modules/db_redis/redisdb_connection.h (43)
A src/modules/db_redis/redisdb_dbase.h (96)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1422.patchhttps://github.com/kamailio/kamailio/pull/1422.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1422
See <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…>
------------------------------------------
[...truncated 280.72 KB...]
CC (gcc) [M snmpstats.so] sub_agent.o
LD (gcc) [M snmpstats.so] snmpstats.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kcarrierroute"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M carrierroute.so] parser_carrierroute.o
CC (gcc) [M carrierroute.so] cr_db.o
CC (gcc) [M carrierroute.so] cr_config.o
CC (gcc) [M carrierroute.so] config.o
CC (gcc) [M carrierroute.so] cr_func.o
CC (gcc) [M carrierroute.so] cr_fifo.o
CC (gcc) [M carrierroute.so] cr_domain.o
CC (gcc) [M carrierroute.so] cr_carrier.o
CC (gcc) [M carrierroute.so] cr_rule.o
CC (gcc) [M carrierroute.so] cr_map.o
CC (gcc) [M carrierroute.so] db_carrierroute.o
CC (gcc) [M carrierroute.so] cr_fixup.o
CC (gcc) [M carrierroute.so] carrierroute.o
CC (gcc) [M carrierroute.so] cr_data.o
CC (gcc) [M carrierroute.so] prime_hash.o
make[4]: 'libtrie.so.1.0' is up to date.
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M carrierroute.so] carrierroute.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kxmpp"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M xmpp.so] sha.o
CC (gcc) [M xmpp.so] xmpp_server.o
CC (gcc) [M xmpp.so] xmpp_api.o
CC (gcc) [M xmpp.so] xpool.o
CC (gcc) [M xmpp.so] xode.o
CC (gcc) [M xmpp.so] xode_str.o
CC (gcc) [M xmpp.so] xmpp_component.o
CC (gcc) [M xmpp.so] xmpp.o
CC (gcc) [M xmpp.so] util.o
CC (gcc) [M xmpp.so] xsnprintf.o
CC (gcc) [M xmpp.so] xstream.o
CC (gcc) [M xmpp.so] xode_from.o
CC (gcc) [M xmpp.so] network.o
LD (gcc) [M xmpp.so] xmpp.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kcpl"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M cplc.so] sub_list.o
CC (gcc) [M cplc.so] cpl_parser.o
CC (gcc) [M cplc.so] cpl_run.o
CC (gcc) [M cplc.so] cpl_time.o
CC (gcc) [M cplc.so] cpl_loader.o
CC (gcc) [M cplc.so] cpl_db.o
CC (gcc) [M cplc.so] cpl_nonsig.o
CC (gcc) [M cplc.so] cpl_log.o
CC (gcc) [M cplc.so] cplc.o
CC (gcc) [M cplc.so] cpl_sig.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M cplc.so] cplc.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kredis"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:39:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < reply->elements; ++i) {
^
redis_dbase.c:39:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
redis_dbase.c: In function 'db_redis_build_entry_manual_keys':
redis_dbase.c:238:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_find_query_key':
redis_dbase.c:276:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_build_query_keys':
redis_dbase.c:563:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < reply->elements; ++i) {
^
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:699:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t j = 0; j < reply->element[1]->elements; ++i, ++j) {
^
redis_dbase.c:727:14: error: conflicting types for 'i'
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c:619:12: note: previous definition of 'i' was here
size_t i = 0;
^
redis_dbase.c:727:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:961:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:989:17: error: redefinition of 'col'
for (size_t col = manual_keys_count; col < reply->elements; ++col) {
^
redis_dbase.c:961:17: note: previous definition of 'col' was here
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:989:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = manual_keys_count; col < reply->elements; ++col) {
^
redis_dbase.c: In function 'db_redis_perform_query':
redis_dbase.c:1063:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1102:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1110:18: error: redefinition of 'j'
for (int j = 0; j < _nc; ++j) {
^
redis_dbase.c:1102:18: note: previous definition of 'j' was here
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1110:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < _nc; ++j) {
^
redis_dbase.c:1137:23: error: redefinition of 'key'
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1063:23: note: previous definition of 'key' was here
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1137:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1288:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:1360:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *type_key = type_keys; type_key; type_key = type_key->next) {
^
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1422:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1462:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1495:23: error: redefinition of 'key'
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1422:23: note: previous definition of 'key' was here
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1495:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1536:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:1567:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _nu; ++i) {
^
redis_dbase.c:1596:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < update_queries; ++i) {
^
redis_dbase.c: In function 'db_redis_query':
redis_dbase.c:1692:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_insert':
redis_dbase.c:1816:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c:1840:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *k = type_keys; k; k = k->next) {
^
redis_dbase.c: In function 'db_redis_delete':
redis_dbase.c:1937:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_update':
redis_dbase.c:2048:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
../../Makefile.rules:100: recipe for target 'redis_dbase.o' failed
make[3]: *** [redis_dbase.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
Makefile:27: recipe for target 'every-module' failed
make[1]: *** [every-module] Error 2
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
debian/rules:137: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.16973/tmp/hooks/C10shell starting
┌──────────────────────────────────────────────────────────────────────────────┐
│ FTBFS - problem with building Debian package │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEB_KEEP_BUILD_ENV is not set to 'true', not keeping build environment │
└──────────────────────────────────────────────────────────────────────────────┘
I: user script /var/cache/pbuilder/build/cow.16973/tmp/hooks/C10shell finished
I: unmounting /tmp/apt-jdg_Wu2KAb filesystem
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.16973
+ '[' 1 -eq 0 ']'
+ bailout 1 'Error: Failed to build with cowbuilder.'
+ '[' -n 1 ']'
+ EXIT=1
+ '[' -n 'Error: Failed to build with cowbuilder.' ']'
+ echo 'Error: Failed to build with cowbuilder.'
Error: Failed to build with cowbuilder.
+ rm -f /var/run/lock/jessie-amd64.building.11198
+ '[' -r /var/run/lock/jessie-amd64.update.11198 ']'
+ '[' '' = true ']'
+ echo '*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***'
*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***
+ rm -f '<https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…'>
+ '[' -n /tmp/tmp.90anmxANzj ']'
+ rm -rf /tmp/tmp.90anmxANzj
+ '[' -n /tmp/apt-jdg_Wu2KAb ']'
+ sudo rm -rf /tmp/apt-jdg_Wu2KAb
+ '[' -n 6653 ']'
++ sed -e 's/^\([0-9]*\).*/\1/'
+ SECONDS=319
++ date
+ echo '*** Finished execution of /usr/bin/build-and-provide-package at Thu Feb 15 03:07:54 UTC 2018 [running 319 seconds] ***'
*** Finished execution of /usr/bin/build-and-provide-package at Thu Feb 15 03:07:54 UTC 2018 [running 319 seconds] ***
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording fingerprints
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: report/*.tap
Did not find any matching files.
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
See <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…>
------------------------------------------
[...truncated 291.56 KB...]
CC (gcc) [M xmpp.so] xode.o
CC (gcc) [M xmpp.so] xode_str.o
CC (gcc) [M xmpp.so] xmpp_component.o
CC (gcc) [M xmpp.so] xmpp.o
CC (gcc) [M xmpp.so] util.o
CC (gcc) [M xmpp.so] xsnprintf.o
CC (gcc) [M xmpp.so] xstream.o
CC (gcc) [M xmpp.so] xode_from.o
CC (gcc) [M xmpp.so] network.o
LD (gcc) [M xmpp.so] xmpp.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kcpl"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M cplc.so] sub_list.o
CC (gcc) [M cplc.so] cpl_parser.o
CC (gcc) [M cplc.so] cpl_run.o
CC (gcc) [M cplc.so] cpl_time.o
CC (gcc) [M cplc.so] cpl_loader.o
CC (gcc) [M cplc.so] cpl_db.o
CC (gcc) [M cplc.so] cpl_nonsig.o
CC (gcc) [M cplc.so] cpl_log.o
CC (gcc) [M cplc.so] cplc.o
CC (gcc) [M cplc.so] cpl_sig.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M cplc.so] cplc.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make every-module group_include="kredis"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:38:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("printing %lu elements in array reply\n", reply->elements);
^
redis_dbase.c:38:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:39:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < reply->elements; ++i) {
^
redis_dbase.c:39:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
redis_dbase.c: In function 'db_redis_build_entry_manual_keys':
redis_dbase.c:238:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_find_query_key':
redis_dbase.c:276:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_build_query_keys':
redis_dbase.c:563:25: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < reply->elements; ++i) {
^
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:670:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 12 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of reply elements for scan on table '%.*s', expected 2, got %lu\n",
^
redis_dbase.c:670:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
redis_dbase.c:699:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t j = 0; j < reply->element[1]->elements; ++i, ++j) {
^
redis_dbase.c:702:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid null key at cursor result index %lu while scanning table '%.*s'\n",
^
redis_dbase.c:702:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:707:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid key type at cursor result index %lu while scanning table '%.*s', expected string\n",
^
redis_dbase.c:707:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:727:14: error: conflicting types for 'i'
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c:619:12: note: previous definition of 'i' was here
size_t i = 0;
^
redis_dbase.c:727:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:961:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:970:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:970:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:985:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 13 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of columns at row %d/%d, expecting %d, got %lu\n",
^
redis_dbase.c:985:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'size_t' [-Wformat=]
redis_dbase.c:989:17: error: redefinition of 'col'
for (size_t col = manual_keys_count; col < reply->elements; ++col) {
^
redis_dbase.c:961:17: note: previous definition of 'col' was here
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:989:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = manual_keys_count; col < reply->elements; ++col) {
^
redis_dbase.c:996:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("converting column #%lu of row #%d", colidx, RES_ROW_N(_r));
^
redis_dbase.c:996:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_query':
redis_dbase.c:1063:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1102:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1110:18: error: redefinition of 'j'
for (int j = 0; j < _nc; ++j) {
^
redis_dbase.c:1102:18: note: previous definition of 'j' was here
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1110:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < _nc; ++j) {
^
redis_dbase.c:1137:23: error: redefinition of 'key'
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1063:23: note: previous definition of 'key' was here
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1137:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1288:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:1297:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1297:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:1360:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *type_key = type_keys; type_key; type_key = type_key->next) {
^
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1422:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1462:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < *manual_keys_count; ++j) {
^
redis_dbase.c:1495:23: error: redefinition of 'key'
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1422:23: note: previous definition of 'key' was here
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1495:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *key = *keys; key; key = key->next) {
^
redis_dbase.c:1536:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (size_t col = 0; col < reply->elements; ++col) {
^
redis_dbase.c:1545:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1545:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:1567:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _nu; ++i) {
^
redis_dbase.c:1596:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < update_queries; ++i) {
^
redis_dbase.c: In function 'db_redis_query':
redis_dbase.c:1692:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_insert':
redis_dbase.c:1816:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c:1840:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *k = type_keys; k; k = k->next) {
^
redis_dbase.c: In function 'db_redis_delete':
redis_dbase.c:1937:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
redis_dbase.c: In function 'db_redis_update':
redis_dbase.c:2048:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < _n; ++i) {
^
../../Makefile.rules:100: recipe for target 'redis_dbase.o' failed
make[3]: *** [redis_dbase.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie/src'
Makefile:27: recipe for target 'every-module' failed
make[1]: *** [every-module] Error 2
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev3+0~20180215005653.1045+jessie'
debian/rules:137: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.11579/tmp/hooks/C10shell starting
┌──────────────────────────────────────────────────────────────────────────────┐
│ FTBFS - problem with building Debian package │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEB_KEEP_BUILD_ENV is not set to 'true', not keeping build environment │
└──────────────────────────────────────────────────────────────────────────────┘
I: user script /var/cache/pbuilder/build/cow.11579/tmp/hooks/C10shell finished
I: unmounting /tmp/apt-jdg_kV45dE filesystem
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.11579
+ '[' 1 -eq 0 ']'
+ bailout 1 'Error: Failed to build with cowbuilder.'
+ '[' -n 1 ']'
+ EXIT=1
+ '[' -n 'Error: Failed to build with cowbuilder.' ']'
+ echo 'Error: Failed to build with cowbuilder.'
Error: Failed to build with cowbuilder.
+ rm -f /var/run/lock/jessie-i386.building.9191
+ '[' -r /var/run/lock/jessie-i386.update.9191 ']'
+ '[' '' = true ']'
+ echo '*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***'
*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***
+ rm -f '<https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…'>
+ '[' -n /tmp/tmp.AJKo5E1j1f ']'
+ rm -rf /tmp/tmp.AJKo5E1j1f
+ '[' -n /tmp/apt-jdg_kV45dE ']'
+ sudo rm -rf /tmp/apt-jdg_kV45dE
+ '[' -n 3128 ']'
++ sed -e 's/^\([0-9]*\).*/\1/'
+ SECONDS=319
++ date
+ echo '*** Finished execution of /usr/bin/build-and-provide-package at Thu Feb 15 02:09:09 UTC 2018 [running 319 seconds] ***'
*** Finished execution of /usr/bin/build-and-provide-package at Thu Feb 15 02:09:09 UTC 2018 [running 319 seconds] ***
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording fingerprints
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: report/*.tap
Did not find any matching files.
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?