Debian Trixie and Kamailio master (6.1.0-dev1)
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! :)
A more complete log would help to identify the error.
Hello!
Sorry for the delayed response. Attaching file containing full build log. Hope this helps.
Thank you!
-DARCH='"aarch64"
It seems a problem related to the ARM build.
Same thing as https://github.com/kamailio/kamailio/issues/4235 maybe?
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.
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
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.