ks.h: No such file or directory
I can't compile FreeSWITCH 1.10.7 on CentOS 7
The problem is with mod_verto:
making all mod_verto
make[4]: Entering directory /usr/src/freeswitch/src/mod/endpoints/mod_verto'
CC mod_verto_la-mod_verto.lo
**mod_verto.c:46:16: fatal error: ks.h: No such file or directory**
#include "ks.h"
^
compilation terminated.
make[4]: *** [mod_verto_la-mod_verto.lo] Error 1
make[4]: Leaving directory /usr/src/freeswitch/src/mod/endpoints/mod_verto'
make[3]: *** [mod_verto-all] Error 1
make[3]: Leaving directory /usr/src/freeswitch/src/mod'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /usr/src/freeswitch/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/freeswitch'
make: *** [all] Error 2
Describe the bug
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Using this example configuration...
- Dial into conference using verto
- Play my_problem_file.mp4 into conference
- FreeSWITCH crashes
Expected behavior A clear and concise description of what you expected to happen.
Package version or git hash
- Version [e.g. 1.10.4]
Trace logs Provide freeswitch logs w/ DEBUG and UUID logging enabled
backtrace from core file If applicable, provide the full backtrace from the core file.
(gdb) set pagination off
(gdb) set logging file /tmp/backtrace.log
(gdb) set logging on
Copying output to /tmp/backtrace.log.
(gdb) bt
(gdb) bt full
(gdb) info threads
(gdb) thread apply all bt
(gdb) thread apply all bt full
(gdb) set logging off
Done logging to /tmp/backtrace.log.
(gdb) quit
is it a Kernel relate problem?
Any Hint?
Do you have libks installed?
https://files.freeswitch.org/repo/yum/centos-release/7/x86_64/libks-1.7.0-16.el7.centos.rpm
libks solved the issue. Libks requirement is libatomic: yum install libatomic Thank you
I have the same problem on CentOS 8 (ks.h: No such file or directory). Unfortunately libks-1.7.0-16.el7.centos.rpm cannot be installed on el8.
I solved this problem by following
git clone https://github.com/signalwire/libks
cd libks
cmake . #cmake version 3.22.0
make && make install
export CPLUS_INCLUDE_PATH=/usr/include/libks
export C_INCLUDE_PATH=/usr/include/libks
#then make mod_verto