net-snmp subagent cross compiling

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

net-snmp subagent cross compiling

396 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

299 Views
yisey
Contributor I

To resolve your issue, make sure you're using the arm64 versions of the libraries like libwrap and libsensors. You need to install the appropriate arm64 versions of these libraries. Double-check that the paths to these libraries are correctly specified in your build configuration, ensuring they point to the arm64 versions. In between all the technical tasks, you can take a break with conversation games for adults to refresh your mind. Additionally, set your system's library path (LD_LIBRARY_PATH) to include the arm64 library directories. This will help ensure that the correct libraries are used during the compilation.

0 Kudos
Reply