Thanks @xkaraman, the last change works properly.
I have properly packaged sources for RHEL 10 and Fedora 41. But when started build for
CentOS 9 then catch this error
```
[2025-01-27T17:22:50.142Z] [ 65%] Building C object
src/modules/json/CMakeFiles/json.dir/json_funcs.c.o
[2025-01-27T17:22:50.146Z] cd
/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/redhat-linux-build/src/modules/json &&
/usr/bin/gcc -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DARCH=\"x86_64\"
-DCC_GCC_LIKE_ASM -DCFG_DIR=\"/etc/kamailio/\" -DCOMPILER="\"gcc
11.5.0\"" -DDBG_SR_MEMORY -DDISABLE_NAGLE -DDNS_IP_HACK -DFAST_LOCK -DFMSTATS
-DF_MALLOC -DHAVE_ALLOCA_H -DHAVE_EPOLL -DHAVE_GETHOSTBYNAME2 -DHAVE_IP_MREQN
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_MSG_NOSIGNAL -DHAVE_RESOLV_RES -DHAVE_SCHED_SETSCHEDULER
-DHAVE_SCHED_YIELD -DHAVE_SELECT -DHAVE_SIGIO_RT -DHAVE_TIMEGM -DHAVE_UNION_SEMUN
-DKMSTATS -DKSR_PTHREAD_MUTEX_SHARED -DMALLOC_STATS -DMOD_NAME=\"json\"
-DMOD_NAMEID=json -DNAME=\"kamailio\" -DOS=Linux -DOS_QUOTED=\"Linux\"
-DPKG_MALLOC -DQ_MALLOC -DRAW_SOCKS -DRUN_DIR=\"/run/kamailio\"
-DSHARE_DIR=\"/usr/share/kamailio/\" -DSHM_MMAP -DSIGINFO64_WORKAROUND
-DSTATISTICS -DTLSF_MALLOC -DTLS_HOOKS -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
-DUSE_DST_BLOCKLIST -DUSE_MCAST -DUSE_NAPTR -DUSE_RAW_SOCKS -DUSE_SCTP -DUSE_TCP -DUSE_TLS
-DVERSION=\"6.1.0-dev0\" -DVERSIONVAL=6001000 -D__CPU_x86_64 -D__OS_linux
-Djson_EXPORTS -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -std=gnu11
-fPIC -ffile-prefix-map=/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/src/modules/json/= -fPIC
-Wall -funroll-loops -Wcast-align -Werror=implicit-function-declaration
-Werror=implicit-int -m64 -minline-all-stringops -falign-loops -ftree-vectorize
-fno-strict-overflow -mtune=generic -MD -MT
src/modules/json/CMakeFiles/json.dir/json_funcs.c.o -MF
CMakeFiles/json.dir/json_funcs.c.o.d -o CMakeFiles/json.dir/json_funcs.c.o -c
/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/src/modules/json/json_funcs.c
[2025-01-27T17:22:50.284Z]
/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/src/modules/json/json_funcs.c:26:10: fatal error:
json.h: No such file or directory
[2025-01-27T17:22:50.284Z] 26 | #include <json.h>
[2025-01-27T17:22:50.284Z] | ^~~~~~~~
[2025-01-27T17:22:50.301Z] compilation terminated.
[2025-01-27T17:22:50.326Z] gmake[2]: ***
[src/modules/json/CMakeFiles/json.dir/build.make:79:
src/modules/json/CMakeFiles/json.dir/json_funcs.c.o] Error 1
[2025-01-27T17:22:50.326Z] gmake[2]: Leaving directory
'/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/redhat-linux-build'
[2025-01-27T17:22:50.331Z] gmake[1]: *** [CMakeFiles/Makefile2:35943:
src/modules/json/CMakeFiles/json.dir/all] Error 2
[2025-01-27T17:22:50.332Z] gmake[1]: *** Waiting for unfinished jobs....
[2025-01-27T17:22:50.531Z] gmake[2]: Leaving directory
'/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/redhat-linux-build'
[2025-01-27T17:22:53.719Z] [ 65%] Built target ims_usrloc_scscf
[2025-01-27T17:22:53.723Z] gmake[1]: Leaving directory
'/root/rpmbuild/BUILD/kamailio-6.1.0-dev0/redhat-linux-build'
[2025-01-27T17:22:53.737Z] gmake: *** [Makefile:159: all] Error 2
[2025-01-27T17:22:53.748Z] error: Bad exit status from /var/tmp/rpm-tmp.6ObW3A (%build)
[2025-01-27T17:22:53.749Z]
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4085#issuecomment-2616475902
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4085/c2616475902(a)github.com>