From: nur s. s. <sya...@gm...> - 2022-07-29 02:05:02
|
Hi, I am trying to upgrade the netsmp lib to v5.9.1 and whenever I try to compile, it fails. It has the "libtool not found" error even though it has been installed. Does anyone have the same issue as mine? Need help on this. Thanks in advance. Regards, Syahirah |
From: Bart V. A. <bva...@ac...> - 2022-07-29 03:54:37
|
On 7/28/22 19:04, nur syahirah syafinaz wrote: > I am trying to upgrade the netsmp lib to v5.9.1 and whenever I try to > compile, it fails. > It has the "libtool not found" error even though it has been installed. That's unexpected. How do you build Net-SNMP? Bart. |
From: 김동휘 <and...@ro...> - 2022-08-05 09:00:57
|
Dear All. I am now implement a net-snmp agent and have many questions and problems. But I don't know anyone who help me. So I have tried to ask that site a question by sending an e-mail to 'Net...@li...' but the title of the mail is only displayed on that site, the mail content isn't. Could you let me know how to ask a question at the net-snmp mailing-list[Sourceforge]. I have never found a solution to clear my problem. Please help me. Your emails to tell me how to ask questions will be a lot of strength for me. Best regards. ===================================================================== -----Original Message----- From: Bart Van Assche [mailto:bva...@ac...] Sent: Friday, July 29, 2022 12:54 PM To: nur syahirah syafinaz <sya...@gm...>; Net...@li... Subject: Re: Libtool issue On 7/28/22 19:04, nur syahirah syafinaz wrote: > I am trying to upgrade the netsmp lib to v5.9.1 and whenever I try to > compile, it fails. > It has the "libtool not found" error even though it has been installed. That's unexpected. How do you build Net-SNMP? Bart. _______________________________________________ Net-snmp-users mailing list Net...@li... Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users |
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> |
From: nur s. s. <sya...@gm...> - 2022-08-23 01:58:36
|
*/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: .libs/snmptrapd_handlers.o: in function `command_handler':snmptrapd_handlers.c:(.text+0x508): undefined reference to `convert_v1pdu_to_v2'/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: snmptrapd_handlers.c:(.text+0x5b0): undefined reference to `run_shell_command'/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: .libs/snmptrapd_handlers.o: in function `axforward_handler':snmptrapd_handlers.c:(.text+0x638): undefined reference to `send_v2trap'/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: .libs/snmptrapd_auth.o: in function `netsnmp_trapd_auth':snmptrapd_auth.c:(.text+0x8c): undefined reference to `convert_v1pdu_to_v2'/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: snmptrapd_auth.c:(.text+0x164): undefined reference to `vacm_check_view_contents'/usr/local/gcc-10.2-2020.11-aarch64/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: .libs/snmptrapd_auth.o: in function `init_netsnmp_trapd_auth':snmptrapd_auth.c:(.text+0x1bc): undefined reference to `init_vacm_config_tokens'collect2: error: ld returned 1 exit statusmake[3]: *** [Makefile:363: libnetsnmptrapd.la <http://libnetsnmptrapd.la>] Error 1make[2]: *** [Makefile:674: subdirs] Error 1make[1]: *** [do.mk:497 <http://do.mk:497>: .cv22-net_snmp-done] Error 2make: *** [Makefile:198: cv22_net_snmp] Error 2* Hi Bart, I need your advice on this error. I managed to solve the previous issue but I got this error this time. Thanks a lot in advance. On Fri, Aug 12, 2022 at 9:27 PM Bart Van Assche <bva...@ac...> wrote: > Hi Syahirah, > > 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. > > This is how I cross-compile Net-SNMP for ARM: > > ./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 ... > make > > > As one can see when using --host=... it is not necessary to set CC, STRIP, > RANLIB, etc. > > Best regards, > > Bart. > > On 8/11/22 22:22, nur syahirah syafinaz wrote: > > Hi Bart, thank you so much for your help. I managed to fix the libtool and > PKG-CONFIG-PATH issue. > 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. > > > > > > > *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" aclocal: error: configure.ac:54 > <http://configure.ac:54>: file 'configure.d/config_net_snmp_config_h' does > not exist autoreconf: aclocal failed with exit status: 1 /bin/sh: 1: > ./configure: not found make[1]: *** [do.mk:494 <http://do.mk:494>: > .cv22-net_snmp-done] Error 127 make: *** [Makefile:198: cv22_net_snmp] > Error 2* > > > Regards, > Syahirah Syafinaz > > > |