Hi,
we're currently in the process of trying to build proxmox-backup-client for CentOS 7 to evaluate and test the pbs beta.
We've worked through some build strategies and are currently trying a dynamically linked binary (glibc, libacl, libfuse3 etc.) w/ statically linked OpenSSL 1.1 which - while not optimal - seems to be the most promising approach.
We've ended up with a linking error caused by libproxmox depending on kernel versions >= 3.17 because the syscall getrandom(2) is being used:
I couldn't find any actual dependency information on the repositories (except for the Cargo.toml files).
Is this dep on linux>=3.17 by design (thus eliminating CentOS/RHEL 7, kernel 3.10, EOL June 2024 from the list of possibly supported OSes)?
Or could the respective code at https://git.proxmox.com/?p=proxmox....s;hb=f165dee496ba00c1578fdc9c4c104f49913059c3 maybe be patched to use either another API (like OpenSSL RAND_bytes or some suitable implementation, but afaict the module seems to already require openssl anyways) or a direct implementation?
Regards,
Dirk - IT Systems Engineer - RobHost GmbH
we're currently in the process of trying to build proxmox-backup-client for CentOS 7 to evaluate and test the pbs beta.
We've worked through some build strategies and are currently trying a dynamically linked binary (glibc, libacl, libfuse3 etc.) w/ statically linked OpenSSL 1.1 which - while not optimal - seems to be the most promising approach.
We've ended up with a linking error caused by libproxmox depending on kernel versions >= 3.17 because the syscall getrandom(2) is being used:
Code:
= note: /src/proxmox-backup-client/src/proxmox-backup-client-0.8.7/target/release/deps/libproxmox-b21d4ae9d6eb878a.rlib(proxmox-b21d4ae9d6eb878a.proxmox.8xjg2tsj-cgu.5.rcgu.o): In function `proxmox::sys::linux::random_data::hf36922a63a1c6ca9':
proxmox.8xjg2tsj-cgu.5:(.text._ZN7proxmox3sys5linux11random_data17hf36922a63a1c6ca9E+0x65): undefined reference to `getrandom'
/src/proxmox-backup-client/src/proxmox-backup-client-0.8.7/target/release/deps/libproxmox-b21d4ae9d6eb878a.rlib(proxmox-b21d4ae9d6eb878a.proxmox.8xjg2tsj-cgu.5.rcgu.o): In function `proxmox::sys::linux::fill_with_random_data::h674c6e00c2169bdd':
proxmox.8xjg2tsj-cgu.5:(.text._ZN7proxmox3sys5linux21fill_with_random_data17h674c6e00c2169bddE+0xc): undefined reference to `getrandom'
collect2: error: ld returned 1 exit status
I couldn't find any actual dependency information on the repositories (except for the Cargo.toml files).
Is this dep on linux>=3.17 by design (thus eliminating CentOS/RHEL 7, kernel 3.10, EOL June 2024 from the list of possibly supported OSes)?
Or could the respective code at https://git.proxmox.com/?p=proxmox....s;hb=f165dee496ba00c1578fdc9c4c104f49913059c3 maybe be patched to use either another API (like OpenSSL RAND_bytes or some suitable implementation, but afaict the module seems to already require openssl anyways) or a direct implementation?
Regards,
Dirk - IT Systems Engineer - RobHost GmbH