sipcapture / heplify

Portable and Lightweight HEP Capture Agent for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
179 stars 64 forks source link

Heplify 1.66.6 not running on Rocky 8/Ubuntu 22.04 as dynamically linked binary #290

Closed myp-neal-harrington closed 1 week ago

myp-neal-harrington commented 1 week ago

Hi,

Version 1.66.6 of Heplify does not run on Rocky 8.10 (and I believe all other RHEL 8 forks): $ wget https://github.com/sipcapture/heplify/releases/download/v1.66.6/heplify ; chmod +x heplify $ ./heplify --version ./heplify: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

However the same does work for versions 1.66.5 and before: $ rm heplify ; wget https://github.com/sipcapture/heplify/releases/download/v1.66.5/heplify ; chmod +x heplify $ ./heplify --version heplify 1.66.5

The new binary requires libpcab.so.0.8 which is not available in Rocky AFAIK. Previous versions were not dynamic executables so included all dependencies in the binary.

1.66.5: ldd heplify not a dynamic executable

1.66.6: ldd heplify ./heplify: /lib64/libc.so.6: version 'GLIBC_2.34' not found (required by ./heplify) ./heplify: /lib64/libc.so.6: version 'GLIBC_2.32' not found (required by ./heplify) linux-vdso.so.1 (0x00007fff8ded5000) libpcap.so.0.8 => not found libluajit-5.1.so.2 => not found libc.so.6 => /lib64/libc.so.6 (0x00007fbd06e46000) /lib64/ld-linux-x86-64.so.2 (0x00007fbd0721c000)

Can you update your build pipeline to generate static binaries again?

Thanks, Neal.

myp-neal-harrington commented 1 week ago

Also its failing on Ubuntu 22.04 with a different dependency.

1.66.6: $ wget https://github.com/sipcapture/heplify/releases/download/v1.66.6/heplify ; chmod +x heplify $ ./heplify --version ./heplify: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

lmangani commented 1 week ago

Thanks for the report! 1.6.6 is not static for some reason. @adubovikov we need to investigate

adubovikov commented 1 week ago

need move builder to alpine, we will do tonight.

lmangani commented 1 week ago

@myp-neal-harrington the release has been fixed. Could you kindly check and confirm if everything is back to normal?

myp-neal-harrington commented 1 week ago

@lmangani Thank you, yes all working now with 1.66.6. Thanks for the quick fix!