Module: kamailio
Branch: master
Commit: 4b500ae453df1695aec7f7251a7ca4cead3cfe06
URL:
https://github.com/kamailio/kamailio/commit/4b500ae453df1695aec7f7251a7ca4c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-11-24T12:51:41+01:00
pkg/kamailio/deb: don't build tlsa for xenial [skip ci]
We are getting errors on build:
gcc -shared -g -m64 -Wl,-O2 -Wl,-E
-Wl,-Bsymbolic-functions -Wl,-z,relro -pthread -rdynamic "-ldl"
-Wl,-Bsymbolic-functions tls_domain.o tls_cfg.o tls_init.o tls_verify.o tls_locking.o
tls_select.o tls_dump_vf.o tls_bio.o tlsa_mod.o tls_server.o tls_rpc.o tls_ct_wrq.o
tls_rand.o tls_map.o tls_util.o tls_config.o -lm /usr/lib/x86_64-linux-gnu/libssl.a
/usr/lib/x86_64-linux-gnu/libcrypto.a -o tlsa.so
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(s3_meth.o): relocation R_X86_64_32
against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'tlsa.so' failed
---
Modified: pkg/kamailio/deb/debian/backports/xenial
Modified: pkg/kamailio/deb/xenial/rules
---
Diff:
https://github.com/kamailio/kamailio/commit/4b500ae453df1695aec7f7251a7ca4c…
Patch:
https://github.com/kamailio/kamailio/commit/4b500ae453df1695aec7f7251a7ca4c…
---
diff --git a/pkg/kamailio/deb/debian/backports/xenial
b/pkg/kamailio/deb/debian/backports/xenial
index cfc16b2af3a..e3ebe44e0cf 100755
--- a/pkg/kamailio/deb/debian/backports/xenial
+++ b/pkg/kamailio/deb/debian/backports/xenial
@@ -64,6 +64,9 @@ sed -i -e '/^ libwolfssl-dev,/d' \
sed -i -e '/^PACKAGE_GROUPS += tls_wolfssl/d' ${DIST}/rules
sed -i -e '/--EXCLUDED--/i EXTRA_EXCLUDED_MODULES += tls_wolfssl' ${DIST}/rules
+# tlsa build fails
+sed -i -e 's/KTLS_INCLUDE_TLSA=yes/KTLS_INCLUDE_TLSA=no/' ${DIST}/rules
+
wrap-and-sort -sat -d ${DIST}
# clean backports scripts
diff --git a/pkg/kamailio/deb/xenial/rules b/pkg/kamailio/deb/xenial/rules
index d0b41a2ffe8..f441bd6dcd3 100755
--- a/pkg/kamailio/deb/xenial/rules
+++ b/pkg/kamailio/deb/xenial/rules
@@ -21,7 +21,7 @@ export JAVA_HOME=/usr/lib/jvm/java-gcj
export RADCLI=1
export WOLFSSL_INTERNAL=no
# tlsa
-export KTLS_INCLUDE_TLSA=yes
+export KTLS_INCLUDE_TLSA=no
export LIBSSL_STATIC_SRCLIB=yes
export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)