From: Bart V. A. <bva...@ac...> - 2022-08-12 13:27:39
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">Hi Syahirah,</div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">Please do not run autoreconf but instead use the configure script included in the Net-SNMP source tree. While the included configure script has been tested thoroughly, running autoreconf may create a broken configure script.</div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">This is how I cross-compile Net-SNMP for ARM:</div> <div class="moz-cite-prefix"><br> </div> <blockquote> <div class="moz-cite-prefix"><font face="monospace">./configure --enable-ipv6 --prefix=... --with-defaults --enable-new-features --with-perl-modules --with-default-snmp-version=2 --with-systemd --enable-blumenthal-aes --with-python-modules --host=arm-suse-linux-gnueabi ...</font></div> <div class="moz-cite-prefix"><font face="monospace">make</font></div> </blockquote> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">As one can see when using --host=... it is not necessary to set CC, STRIP, RANLIB, etc.<br> </div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">Best regards,<br> </div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">Bart.</div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">On 8/11/22 22:22, nur syahirah syafinaz wrote:<br> </div> <blockquote type="cite" cite="mid:CAE-GJVzB=DDr...@ma..."> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr">Hi Bart, thank you so much for your help. I managed to fix the libtool and PKG-CONFIG-PATH issue. <div>However, I am facing another issue where 'config_net_snmp_config_h' files are gone every time I try to build after the net-snmp upgrade. </div> <div><br> </div> <div><font color="#999999"><b>cd net-snmp; autoreconf -i --force; CC="ccache /usr/local/gcc-10.2-2020.11-aarch64/bin/aarch64-none-linux-gnu-gcc" CXX="ccache /usr/local/gcc-10.2-2020.11-aarch64/bin/aarch64-none-linux-gnu-g++" STRIP=aarch64-none-linux-gnu-strip AR=aarch64-none-linux-gnu-ar LD=aarch64-none-linux-gnu-ld RANLIB=aarch64-none-linux-gnu-ranlib DUMPBIN=aarch64-none-linux-gnu-dumpbin LINK=aarch64-none-linux-gnu-link NM=aarch64-none-linux-gnu-nm ./configure --host=aarch64-none-linux-gnu --prefix=/workspaces/external_repo/build/cv22 --with-default-snmp-version=3 --with-sys-contact="avigilon" --with-sys-location="unknown" --with-logfile="/tmp/snmpd.log" --with-persistent-directory="/root/config/dynamic" --disable-embedded-perl --without-perl-modules --with-sysroot=/workspaces/external_repo/build/cv22 --disable-debugging --with-transports=UDP --without-kmem-usage --enable-minimialist --with-mibdirs=/root/config/dynamic/.snmp/mibs:/usr/local/share/snmp/mibs --with-openssl=internal CFLAGS="-march=armv8-a -mcpu=cortex-a53+crypto -mlittle-endian -Os"<br> aclocal: error: <a href="http://configure.ac:54" moz-do-not-send="true">configure.ac:54</a>: file 'configure.d/config_net_snmp_config_h' does not exist<br> autoreconf: aclocal failed with exit status: 1<br> /bin/sh: 1: ./configure: not found<br> make[1]: *** [<a href="http://do.mk:494" moz-do-not-send="true">do.mk:494</a>: .cv22-net_snmp-done] Error 127<br> make: *** [Makefile:198: cv22_net_snmp] Error 2</b></font><br> </div> <div><font color="#999999"><b><br> </b></font></div> <div><b style="background-color:rgb(255,255,255)"><font color="#000000"><br> </font></b></div> <div><font style="background-color:rgb(255,255,255)" color="#000000">Regards,</font></div> <div><font style="background-color:rgb(255,255,255)" color="#000000">Syahirah Syafinaz</font></div> </div> </blockquote> <br> </body> </html> |