Could that be causing it? Will I have to compile a separate CentOS 7 and CentOS 8 binary? I am trying to make it portable. The only thing I noticed is version of glibc on CentOS 8 is 2.28 and the version on CentOS7 is 2.17. The instructions for adding this repository diverge slightly between CentOS 8/9 and CentOS 7, which is why theyre listed separately below. Advertisement The CentOS project has announced a new update to the distribution, releasing CentOS 7.9 which is derived from Red Hat Enterprise Linux 7.9. A user can download and use this enterprise-level operating system free of cost. I have checked the glibc, glib-devel and, just incase, glibc-static. CentOS Linux 7. CentOS is a Linux operating system, which is a 100 compatible rebuild of the Red Hat Enterprise Linux. One major issue with this release is that the aarch64 and power9 (ALT) architectures are no longer being done as part of RHEL-7.9. Podman is available in the default Extras repos for CentOS 7 and in the AppStream repo for CentOS 8 and Stream. We are currently building the CentOS- release from those sources. Now when I move the binary over to the CentOS 7 system and I try and run it, I get the following: stats-agent: dl-call-libc-early-init.c:37: _dl_call_libc_early_init: Assertion `sym != NULL' failed. Red Hat Enterprise Linux 7.9 was released on. Stats-agent.cpp:(.text+0x45c): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking When it compiles I get the following: /tmp/ccVDW5ph.o: In function `main': If you have workloads that are currently running on these CentOS versions, you might want to review what. To try and make the code portable, I am compiling using the following command: g++ -static stats-agent.cpp -o stats-agent CentOS 8 - DecemCentOS 7 - June 30, 2024. In it, I am using the gethostbyname to resolve DNS names to IP addresses. I am developing a program that will run on both CentOS 8 and CentOS 7 systems.
0 Comments
Leave a Reply. |