## Error Messages
```
In file included from /usr/include/mysql/mysql.h:64:0,
from km_dbase.c:36:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
#include <mysql/plugin_auth_common.h>
^
```
## Environment
Ubuntu-14.04
Kamailio-4.3.3
libmysqlclient-dev-5.7.9
``` bash
$ mysql_config --include
-I/usr/include/mysql
```
## Possible Causes
Makefile in modules/db_mysql will replace the string "-I/usr/include/mysql" to "-I/usr/include", the latter one will make the compilation fail but the former one won't. However it did not happen when compiling using mysql 5.6 or 5.5 etc. Not sure if there is anything changed in mysql 5.7.
## Possible Fixes
Add the original include path created by mysql_config:
```diff
diff --git a/modules/db_mysql/Makefile b/modules/db_mysql/Makefile
index 1cea920..ea6ccac 100644
--- a/modules/db_mysql/Makefile
+++ b/modules/db_mysql/Makefile
@@ -20,7 +20,8 @@ endif
ifneq ($(MYSQLCFG),)
# use autodetection
- DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I[^ ]*\)\/mysql/\1/g' )
+ DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I[^ ]*\)\/mysql/\1/g' ) \
+ $(shell $(MYSQLCFG) --include
LIBS = $(shell $(MYSQLCFG) --libs)
else
```
Or, apply the above patch when mysql's version >= 5.7, assuming it only occurs in mysql 5.7.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/419
Hey guys,
Not sure if there have been any changes but I have an interesting problem
here when using TCP:
*The BT is as follows:*
#0 local_timer_list_expire (h=0xa0f128 <tcp_reader_ltimer+178664>,
t=723807134, l=0x9e3740 <tcp_reader_ltimer>) at local_timer.c:198
#1 local_timer_expire (t=723807134, h=<optimized out>) at local_timer.c:227
#2 local_timer_run (lt=lt@entry=0x9e3740 <tcp_reader_ltimer>,
saved_ticks=723807150) at local_timer.c:250
#3 0x00000000005d8417 in tcp_reader_timer_run () at tcp_read.c:1682
#4 tcp_receive_loop (unix_sock=<optimized out>) at tcp_read.c:1734
#5 0x00000000005c81c8 in tcp_init_children () at tcp_main.c:4788
#6 0x00000000004a9da3 in main_loop () at main.c:1664
#7 0x000000000042411e in main (argc=<optimized out>, argv=<optimized out>)
at main.c:2566
This seems to be related to clearing timers for TCP connections. The crash
is related to the following code:
*_timer_rm_list(tl)*
where it does a null pointer deref on tl->next and tl->prev, which,
according to the bt, are null (see below).
*(gdb) print *tl*
$14 = {next = 0x0, prev = 0x0, expire = 723807134, initial_timeout = 32,
data = 0x7fbbb05aa628, f = 0x5d02f0 <tcpconn_read_timeout>, flags = 512,
slow_idx = 0}
Any ideas?
Cheers
Jason
Module: kamailio
Branch: master
Commit: 92573a292efc6583e57ab7ee13c569b02203e69a
URL: https://github.com/kamailio/kamailio/commit/92573a292efc6583e57ab7ee13c569b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-26T10:21:37+01:00
test/travis: reorganizing the content with more sections
---
Modified: test/travis/README.md
---
Diff: https://github.com/kamailio/kamailio/commit/92573a292efc6583e57ab7ee13c569b…
Patch: https://github.com/kamailio/kamailio/commit/92573a292efc6583e57ab7ee13c569b…
---
diff --git a/test/travis/README.md b/test/travis/README.md
index 4abb60c..3b628c5 100644
--- a/test/travis/README.md
+++ b/test/travis/README.md
@@ -1,18 +1,25 @@
-Travis-ci build
-===============
+Kamailio Travis-CI Builds
+=========================
-The build environment is based on docker containers, so it can be easily
-reproducible by any developer of the project.
+Overview
+--------
-The container we use is build at [docker hub](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/)
-It's Debian Stretch based image build [DockerFile](https://github.com/linuxmaniac/pkg-kamailio-docker/blob/master/…
+The Travis-CI build environment for Kamailio is based on docker containers,
+so it can be easily reproducible by any developer of the project on local
+systems.
-Build locally
+Docker containers
+-----------------
+
+The default used container is built at [docker hub](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/)
+and it is a Debian Stretch based image done with the following [DockerFile](https://github.com/linuxmaniac/pkg-kamailio-docker/blob/master/…
+
+Build Locally
-------------
Same steps defined at [.travis.yml](https://github.com/kamailio/kamailio/blob/master/.travis.yml):
-- Choose the compiler you want to use setting `CC` to `gcc` or `clang`
+ * Choose the compiler to be used by setting the variable `CC` to `gcc` or `clang`
```
$ docker pull linuxmaniac/pkg-kamailio-docker:stretch
@@ -21,10 +28,10 @@ $ docker run \
/bin/bash -c "export CC=gcc; cd /code; ./test/travis/build_travis.sh"
```
-You can always [login](./README.md#login-inside-the-build-environment) inside the container
-and build it [manually](http://www.kamailio.org/wiki/install/devel/git#compile_kamailio)
+One can always [login](./README.md#login-inside-the-build-environment) inside
+the container and build everything [manually](http://www.kamailio.org/wiki/install/devel/git#compile_kamailio)
-Clean sources
+Clean Sources
-------------
```
@@ -33,7 +40,7 @@ $ docker run \
/bin/bash -c "cd /code; make -f debian/rules clean; rm -rf debian"
```
-Login inside the build environment
+Login Inside The Build Environment
----------------------------------
```
@@ -41,11 +48,11 @@ $ docker run -i -t \
-v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch /bin/bash
```
-Test other Debian distributions
--------------------------------
+Use Other Debian Distributions
+------------------------------
There are several container [images available](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/tags/) already.
-You just need to use any of the them selecting the proper tag
+One can just use any of the them by selecting the proper tag:
```
$ export $DIST=sid
@@ -59,4 +66,4 @@ $ docker run \
TODO
----
-- tests inside the docker container
+ * tests inside the docker container
Hello,
Kamailio SIP Server v4.3.4 stable release is out.
This is a maintenance release of the latest stable branch, 4.3, that
includes fixes since release of v4.3.3. There is no change to database
schema or configuration language structure that you have to do on
previous installations of v4.3.x. Deployments running previous v4.x.x
versions are strongly recommended to be upgraded to v4.3.4.
For more details about version 4.3.4 (including links and guidelines to
download the tarball or from GIT repository), visit:
* http://www.kamailio.org/w/2015/11/kamailio-v4-3-4-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda