-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello,
I tried compiling the source code but ended up with a lot of undefined references when executing the command:
make HOST=aarch64-linux-gnu -j4
The error:
CXXLD test/test_defi
/usr/bin/ld: defid-defid.o: in function AppInit(int, char**)': defid.cpp:(.text+0x1c8): undefined reference to
SetupServerArgs()'
/usr/bin/ld: defid.cpp:(.text+0x3cc): undefined reference to LicenseInfo[abi:cxx11]()' /usr/bin/ld: defid.cpp:(.text+0x5a8): undefined reference to
InitLogging()'
/usr/bin/ld: defid.cpp:(.text+0x5ac): undefined reference to InitParameterInteraction()' /usr/bin/ld: defid.cpp:(.text+0x5b0): undefined reference to
AppInitBasicSetup()'
/usr/bin/ld: defid.cpp:(.text+0x5c0): undefined reference to AppInitParameterInteraction()' /usr/bin/ld: defid.cpp:(.text+0x5d0): undefined reference to
AppInitSanityChecks()'
/usr/bin/ld: defid.cpp:(.text+0x648): undefined reference to AppInitLockDataDirectory()' /usr/bin/ld: defid.cpp:(.text+0x65c): undefined reference to
AppInitMain(InitInterfaces&)'
/usr/bin/ld: defid.cpp:(.text+0x668): undefined reference to Interrupt()' /usr/bin/ld: defid.cpp:(.text+0x670): undefined reference to
Shutdown(InitInterfaces&)'
I'm running a 64bit version of Bullseye
To install I created a bash script to install. (below)
Any help would be appreciated. Many thanks
(My source directory is different, but I don't believe that should make any difference)
cd /home/${USER}/Software
wget https://github.com/DeFiCh/ain/archive/refs/tags/v3.2.8.tar.gz
tar -xf v3.2.8.tar.gz
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 curl -y
sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev -y
sudo apt-get install libminiupnpc-dev libzmq3-dev libsecp256k1-dev -y
sudo apt-get install g++-aarch64-linux-gnu -y
cd /home/${USER}/Software/ain-3.2.8/
./contrib/install_db4.sh /home/${USER}/Software/ain-3.2.8/
cd /home/${USER}/Software/ain-3.2.8/depends
make HOST=aarch64-linux-gnu NO_QT=1
cd ..
./autogen.sh
export BDB_PREFIX='/home/${USER}/Software/ain-3.2.8/db4'
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" CXXFLAGS="-march=armv8-a+crc+crypto" --prefix=$PWD/depends/aarch64-linux-gnu --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
make HOST=aarch64-linux-gnu -j4
make install