pkg-kamailio-docker icon indicating copy to clipboard operation
pkg-kamailio-docker copied to clipboard

Debian Trixie and Kamailio master (6.1.0-dev1)

Open VolodyaIvanets opened this issue 5 months ago • 5 comments

Hello!

I just tried to build Kamailio deb packages from master branch using trixie image. Modules seemed to be compiled correctly. Procedure failed towards the end:

make[5]: Leaving directory '/usr/src/kamailio/src'
make[4]: Leaving directory '/usr/src/kamailio'
make[3]: Leaving directory '/usr/src/kamailio'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[2]: Leaving directory '/usr/src/kamailio/src'
make[1]: Leaving directory '/usr/src/kamailio'

Please let me know if I can provide additional information.

Thanks a lot! :)

VolodyaIvanets avatar Oct 29 '25 20:10 VolodyaIvanets

A more complete log would help to identify the error.

linuxmaniac avatar Oct 30 '25 06:10 linuxmaniac

Hello!

Sorry for the delayed response. Attaching file containing full build log. Hope this helps.

Thank you!

Kamailio build 30102025.txt

VolodyaIvanets avatar Oct 30 '25 19:10 VolodyaIvanets

-DARCH='"aarch64"

It seems a problem related to the ARM build.

linuxmaniac avatar Oct 30 '25 22:10 linuxmaniac

Same thing as https://github.com/kamailio/kamailio/issues/4235 maybe?

linuxmaniac avatar Oct 30 '25 22:10 linuxmaniac

There is the same behavior on the x86 system as well.

Kamailio build 31102025 master x86.txt

Also, I could successfully build previous versions of Kamailio on ARM system. It looks like there might be something in the dev version of Kamailio causing build procedure to fail.

VolodyaIvanets avatar Oct 30 '25 22:10 VolodyaIvanets

The problem here seems to be that it tries to find the static libraries of OpenSSL in wrong paths.

make[6]: --libs: No such file or directory
gcc -shared -g -pthread -m64 -Wl,-O2 -Wl,-E  -Wl,-z,relro -Wl,-z,now -rdynamic "-ldl" -Wl,-Bsymbolic-functions tls_bio.o tls_cfg.o tls_config.o tls_ct_wrq.o tls_domain.o tls_dump_vf.o tls_init.o tls_locking.o tls_rand.o tls_rpc.o tls_select.o tls_server.o tls_util.o tls_verify.o tlsa_mod.o  -lm /usr/lib64/libssl.a /usr/lib64/libcrypto.a   -o tlsa.so
/usr/bin/ld: cannot find /usr/lib64/libssl.a: No such file or directory
/usr/bin/ld: cannot find /usr/lib64/libcrypto.a: No such file or directory
collect2: error: ld returned 1 exit status
make[6]: *** [../../Makefile.rules:191: tlsa.so] Error 1
make[5]: *** [Makefile:510: modules] Error 1
make[5]: Leaving directory '/usr/src/kamailio/src'
make[4]: *** [Makefile:34: every-module] Error 2
make[4]: Leaving directory '/usr/src/kamailio'
make[3]: *** [debian/rules:135: build_tls] Error 2

As you can see here in the list of files https://packages.debian.org/trixie/arm64/libssl-dev/filelist, the libraries are found in some other paths like /usr/lib/aarch64-linux-gnu/libcrypto.a and /usr/lib/aarch64-linux-gnu/libcrypto.so for arm64 and x86_64-linux-gnu for amd64.

Not sure, how is this provided in the build and packaing though for debian and if anything changed from previous kamailio versions

xkaraman avatar Nov 20 '25 13:11 xkaraman

Hello Again!

I just tried and was able to build Debian packages from master branch for both ARM and x86_64 architectures. Just need to set LIBDIR accordingly: make deb LIBDIR=lib/aarch64-linux-gnu OR make deb LIBDIR=lib/x86_64-linux-gnu

Thank you.

VolodyaIvanets avatar Dec 13 '25 15:12 VolodyaIvanets