net-snmp subagent cross compiling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

net-snmp subagent cross compiling

1,607 Views
FEI-Namg
Contributor IV

Hi,

I am trying to compile a net-snmp subagent for arm64 but when compiling with aarch64-linux-gnu-gcc, it says that it skips incompatible library since one is arm64 and the other is x86, such as skipping incompatible /usr/lib/x86_64-linux-gnu/libnetsnmpmibs.so when searching for -lnetsnmpmibs

 So I changed how the subagent is being compiled to use arm64 libraries but I am still missing a few libraries such as -lsensors and -lwrap saying they no such file or directory.

If anyone could provide any insight, that would be greatly appreciated

Tags (3)
0 Kudos
Reply
1 Reply

749 Views
yisey
Contributor II

You need to install the ARM64 versions of all required development libraries (e.g., libsnmp-dev:arm64, libsensors4-dev:arm64, libwrap0-dev:arm64) and set the compiler, include paths, and library paths to use them. Ensure PKG_CONFIG_PATH points to ARM64 .pc files and use ./configure --host=aarch64-linux-gnu, or consult a BMW Service Near Me for guidance, so the compiler picks the correct architecture libraries instead of x86_64 ones.

0 Kudos
Reply