I have updated `src/modules/regex/Makefile`
```diff
diff --git a/src/modules/regex/Makefile b/src/modules/regex/Makefile
index db036b67d9..1ccf92a4e8 100644
--- a/src/modules/regex/Makefile
+++ b/src/modules/regex/Makefile
@@ -6,6 +6,7 @@ NAME=regex.so
ifeq ($(CROSS_COMPILE),)
PCRE_BUILDER = $(shell command -v pcre2-config)
+$(info $(PCRE_BUILDER))
endif
ifeq ($(PCRE_BUILDER),)
```
And now `make` output shows builder values
```sh
[root@nout regex]# make clean && make
/usr/bin/pcre2-config
/usr/bin/pcre2-config
make: --libs8: No such file or directory
CC (gcc) [M regex.so] regex_mod.o
LD (gcc) [M regex.so] regex.so
```
Then I deleted a string
```
LIBS+=$(PCRELIBS)
```
The error was not printed anymore. Then, I made a conclusion, the error related to the
updated list of used libs.
Then I added the deleted sting back and printed `LIBS` value before and after the update.
```diff
diff --git a/src/modules/regex/Makefile b/src/modules/regex/Makefile
index db036b67d9..354377b0b5 100644
--- a/src/modules/regex/Makefile
+++ b/src/modules/regex/Makefile
@@ -17,6 +17,8 @@ else
endif
DEFS+=$(PCREDEFS)
+$(info $(LIBS))
LIBS+=$(PCRELIBS)
+$(info $(LIBS))
include ../../Makefile.modules
```
The output looks like
```
[root@nout regex]# make clean && make
-ldl -lresolv -lm
-ldl -lresolv -lm -lpcre2-8
-ldl -lresolv -lm
-ldl -lresolv -lm -lpcre2-8
make: --libs8: No such file or directory
-ldl -lresolv -lm
-ldl -lresolv -lm -lpcre2-8
make: --libs8: No such file or directory
CC (gcc) [M regex.so] regex_mod.o
LD (gcc) [M regex.so] regex.so
```
Looks like `LIBS` value update is correct and nothing to fix here.
Probable here build tools issues like
https://github.com/wolfSSL/wolfssl/issues/8190
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4025#issuecomment-2491519828
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4025/2491519828(a)github.com>