Hi Martin.
In general I think you should try to increase verbosity in order to
debug possible issues in build enviroment.
I do not have first hand experience with this exact problem you are having,
but below is general example with flag Q=0 on system where libstirshaken
is totally missing.
$ gmake -C src/modules/stirshaken/
gmake: Entering directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
CC (clang) [M stirshaken.so] stirshaken_mod.o
stirshaken_mod.c:28:10: fatal error: 'stir_shaken.h' file not found
#include <stir_shaken.h>
^~~~~~~~~~~~~~~
1 error generated.
gmake: *** [../../Makefile.rules:100: stirshaken_mod.o] Error 1
gmake: Leaving directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
$ gmake -C src/modules/stirshaken/ Q=0
gmake: Entering directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
config.mak included
clang -fPIC -DPIC -g -m64 -pthread -DKSR_PTHREAD_MUTEX_SHARED
-Wunused-variable -Wuninitialized -DNAME='"kamailio"'
-DVERSION='"5.9.0-dev1"' -DARCH='"x86_64"'
-DOS='freebsd_'
-DOS_QUOTED='"freebsd"' -DCOMPILER='"clang FreeBSD clang
version 16.0.6 (
https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)"' -D__CPU_x86_64 -D__OS_freebsd
-DVERSIONVAL=5009000
-DCFG_DIR='"/home/mslehto/local/install/kamailio/etc/kamailio/"'
-DSHARE_DIR='"/home/mslehto/local/install/kamailio/share/kamailio/"'
-DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
-DUSE_DST_BLOCKLIST -DUSE_NAPTR -DMEM_JOIN_FREE -DF_MALLOC
-DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_CORE_STATS
-DSTATISTICS -DMALLOC_STATS -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM
-DHAVE_NETINET_IN_SYSTM -DHAVE_IP_MREQN -DUSE_RAW_SOCKS
-DHAVE_KQUEUE -DHAVE_SELECT -I. -DMOD_NAME='"stirshaken"'
-DMOD_NAMEID='stirshaken' -c stirshaken_mod.c -o
stirshaken_mod.o
stirshaken_mod.c:28:10: fatal error: 'stir_shaken.h' file not found
#include <stir_shaken.h>
^~~~~~~~~~~~~~~
1 error generated.
gmake: *** [../../Makefile.rules:100:
stirshaken_mod.o] Error 1
gmake: Leaving directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
Hope this helps, good luck.
mvh, Mikko
2024-04-19 (Fri) 16:37 UTC +0000 Martin Nyström via sr-users
<sr-users(a)lists.kamailio.org>rg>:
I am trying to build Kamailio with repo tags/5.6.4 to
get my hands on the stirshaken module that was not part of apt repositories, however it
results in a build error:
root@ip-fobby:/usr/src/kamailio# make modules modules=modules/stirshaken
make -C src/ modules
make[1]: Entering directory '/usr/src/kamailio/src'
CC (gcc) [M stirshaken.so] stirshaken_mod.o
stirshaken_mod.c:28:10: fatal error: stir_shaken.h: No such file or directory
28 | #include <stir_shaken.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../../Makefile.rules:100: stirshaken_mod.o] Error 1
make[1]: *** [Makefile:511: modules] Error 1
make[1]: Leaving directory '/usr/src/kamailio/src'
make: *** [Makefile:34: modules] Error 2
Obviously there’s no stir_shaken.h file withib the directory src/modules/stirshaken, but
I cannot see why, or how I proceed? Is this a likely symptom of faulty libstirshaken
installation?
/M
--
Mikko Lehto