Running glibc linked binary on OpenWRT

Hi,

I have a manufacturers tool I need to run that is only distributed as a binary executable. It doesn't run on OpenWRT, and I suspect the reason is that it was built with glibc and so the shared libraries are not available on the MUSL built OpenWRT system.

root@router:~/IPMICFG_1.35.2_build.240627/Linux/64bit# ldd IPMICFG-Linux.x86_64
        /lib64/ld-linux-x86-64.so.2 (0x7ff87d42b000)
        libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff87d42b000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff87d42b000)
Error relocating IPMICFG-Linux.x86_64: __strncpy_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __fprintf_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __printf_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __memcpy_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __strcpy_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __sprintf_chk: symbol not found
Error relocating IPMICFG-Linux.x86_64: __snprintf_chk: symbol not found

Is there any way to get this working? The manufacturer does not make the source available for the tool.

by recompiling the binary, or perhaps the openwrt image - How to build OpenWrt with glibc insted of musl

Thanks. So there is no 'compatibility layer' available to make it work without recompiling one or the other?

AFAIK, no.

1 Like

Google? https://www.supermicro.com/en/solutions/management-software/ipmi-utilities

image

Google? https://www.redhat.com/en/store/linux-platforms

It is very important to not conceal information.

It is also very important not to mis-quote or misrepresent information. You've quoted the system requirements for the "SMCIPMITool" which just happens to be on the same page. A good demonstration of how simply Googling a phrase and taking the first bit of information you find as gospel is very dangerous.

For accuracy so people are not misled by your post the system requirements for IPMICFG are:

Namely:
Linux Kernel version 2.6.x or higher. Ex: Red Hat Enterprise Linux (RHEL) 6.8 and 7.2 SUSE Linux Enterprise Server (SLES) 11 SP4 and 12 SP1 Ubuntu Server 14.04 LTS and 16.04 LTS

The keywords there being Linux Kernel version 2.6.x or higher.
It then goes on to list examples (Ex. being the abbreviation of Example) of Linux systems with Kernel 2.6.x or higher. In reality it would run on any Linux 2.6.x kernel based distro built with glibc, but they fail to mention that, hence why I didn't quote the link as it was not relevant to the question.

1 Like

Complain over there regarding thei$ statements, here you concealed publicly available info trying to get a free fix for others problem.

Ah, I see, you've missed the point entirely, this has nothing to do with RedHat. I'm not trying to fix anyone else's problem, I'm trying to fix my own, as I need to run this tool to configure the IPMI chip on my motherboard. Easy mistake to make.

Well, your tool only runs with glibc, specific distributions. You can rebuild OpenWRT, still zero chance with alpine. Most settings are accessible via ipmitool package.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.