pavel-odintsov / fastnetmon

FastNetMon - very fast DDoS sensor with sFlow/Netflow/IPFIX/SPAN support
https://fastnetmon.com
GNU General Public License v2.0
3.44k stars 569 forks source link

Log4cpp fails to compile on ARM64 #980

Open pavel-odintsov opened 1 year ago

pavel-odintsov commented 1 year ago

Sadly it does fail to compile:

Install package log4cpp_1_1_3
Cannot download dependency file from Google Storage. Exit code: 12
Cannot get package log4cpp_1_1_3 from cache, starting build procedure
Download log4cpp sources
Unpack log4cpp sources
Use of uninitialized value $output in concatenation (.) or string at /fastnetmon/src/scripts/perllib/Fastnetmon.pm line 250.
Command curl https://raw.githubusercontent.com/pavel-odintsov/config/master/config.guess -o./config/config.guess call failed with code -1 and output: 
Use of uninitialized value $output in concatenation (.) or string at /fastnetmon/src/scripts/perllib/Fastnetmon.pm line 250.
Command curl https://raw.githubusercontent.com/pavel-odintsov/config/master/config.sub -o./config/config.sub call failed with code -1 and output: 
Build log4cpp
Command CC=/opt/fastnetmon-community/libraries/gcc_12_1_0/bin/gcc CXX=/opt/fastnetmon-community/libraries/gcc_12_1_0/bin/g++ ./configure --prefix=/opt/fastnetmon-community/libraries/log4cpp_1_1_3 call failed with code 256 and output: checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/tmp/fastnetmon.build.dir.ao0RL5rr7G/log4cpp/config/missing: Unknown `--run' option
Try `/tmp/fastnetmon.build.dir.ao0RL5rr7G/log4cpp/config/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... config/config.guess: unable to guess system type

This script, last modified 2001-04-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (config/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2001-04-20

uname -m = aarch64
uname -r = 5.15.0-1028-aws
uname -s = Linux
uname -v = #32-Ubuntu SMP Mon Jan 9 12:29:05 UTC 2023

/usr/bin/uname -p = aarch64
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = aarch64
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
UNAME_RELEASE = 5.15.0-1028-aws
UNAME_SYSTEM  = Linux
UNAME_VERSION = #32-Ubuntu SMP Mon Jan 9 12:29:05 UTC 2023
configure: error: cannot guess build type; you must specify one

Command LD_LIBRARY_PATH=/opt/fastnetmon-community/libraries/gcc_12_1_0/lib64 make -j 4 install call failed with code 512 and output: make: *** No rule to make target 'install'.  Stop.

make for log4cpp failed
tar: log4cpp_1_1_3: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous error
pavel-odintsov commented 1 year ago

This fix worked: https://github.com/pavel-odintsov/fastnetmon/commit/bf73d9e0cd0e8187b33f5a0c459d8874646fa418 but we need to upstream it.