Re: Libtool issue

Bart Van Assche <[email protected]> Fri, 12 Aug 2022 06:27:24 -0700
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 : 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 :
.cv22-net_snmp-done] Error 127

make: *** [Makefile:198: cv22_net_snmp] Error 2

Regards,

Syahirah Syafinaz

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users