Hi,
Has anyone successfully compiled Kmailio with gcov? I tried the following commands but
these do not work
```bash
make CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs
-ftest-coverage" cfg
make CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs
-ftest-coverage" all
```
I received the following compilation errors
```
...
corex_rpc.c:(.text+0x209a): undefined reference to `get_debug_facility'
corex_rpc.c:(.text+0x20d3): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2108): undefined reference to `_ksr_slog_func'
corex_rpc.c:(.text+0x2138): undefined reference to `log_stderr'
corex_rpc.c:(.text+0x2161): undefined reference to `log_color'
corex_rpc.c:(.text+0x218d): undefined reference to `dprint_color'
corex_rpc.c:(.text+0x2194): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21a0): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21c3): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21cf): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2214): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x221c): undefined reference to `my_pid'
corex_rpc.c:(.text+0x2236): undefined reference to `process_no'
corex_rpc.c:(.text+0x2281): undefined reference to `log_color'
corex_rpc.c:(.text+0x22a5): undefined reference to `dprint_color_reset'
corex_rpc.c:(.text+0x22c3): undefined reference to `_km_log_func'
corex_rpc.c:(.text+0x22ca): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x22d6): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x22fa): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2306): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2349): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2361): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2373): undefined reference to `get_debug_facility'
corex_rpc.c:(.text+0x23bd): undefined reference to `dprint_crit'
corex_rpc.c:(.text+0x23c6): undefined reference to `dprint_crit'
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'corex.so' failed
make[2]: *** [corex.so] Error 1
Makefile:511: recipe for target 'modules' failed
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/home/ubuntu/experiments/kamailio-gcov/src'
```
I suspect that my CFLAGS and LDFLAGS have overwritten the ones configured by Kamailio.
However, I haven't successfully fixed these errors. You help/suggestions would be
really appreciated!
Thanks
--
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/issues/2551