Cshark package is not available MT7623 (BPI-R2)

When compiling openwrt on Debian 9, I recieve the following error:
EDIT: Tried compiling on centOS with the same errror :frowning:

[ 20%] Building C object CMakeFiles/cshark.dir/src/uclient.c.o
/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/src/uclient.c: In function 'cshark_uclient_init':
/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/src/uclient.c:170:50: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1007 [-Werror=format-truncation=]
   snprintf(extra_tags, BUFSIZ, "?additional_tags=%s", config.tags);
                                                  ^~   ~~~~~~
/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/src/uclient.c:170:3: note: 'snprintf' output between 18 and 1041 bytes into a destination of size 1024
   snprintf(extra_tags, BUFSIZ, "?additional_tags=%s", config.tags);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
CMakeFiles/cshark.dir/build.make:88: recipe for target 'CMakeFiles/cshark.dir/src/uclient.c.o' failed
make[6]: *** [CMakeFiles/cshark.dir/src/uclient.c.o] Error 1
make[6]: Leaving directory '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e'
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/cshark.dir/all' failed
make[5]: *** [CMakeFiles/cshark.dir/all] Error 2
make[5]: Leaving directory '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e'
Makefile:129: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e'
Makefile:62: recipe for target '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/.built' failed
make[3]: *** [/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/.built] Error 2
make[3]: Leaving directory '/home/domuser/openwrt/feeds/packages/net/cshark'
time: package/feeds/packages/cshark/compile#0.13#0.02#0.26
package/Makefile:107: recipe for target 'package/feeds/packages/cshark/compile' failed
make[2]: *** [package/feeds/packages/cshark/compile] Error 2
make[2]: Leaving directory '/home/domuser/openwrt'
package/Makefile:103: recipe for target '/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/domuser/openwrt'
/home/domuser/openwrt/include/toplevel.mk:216: recipe for target 'world' failed

I cannot get past this error. Even If I deselct cloudshark, something must still depend on it because it keeps failing.

This is for a Banana Pi RP2. I cannot find anything relevant on google and I'm not a programmer, so I do not know where to begin. Can someone help? Hopefully, the issue is simple.

EDIT:

Now I get the following issue after hours of compiling (again....further than I've ever gotten):

arm-openwrt-linux-muslgnueabi-gcc -Wall -Os -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35:bandwidthd-2.0.1-35 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -DHAVE_CONFIG_H -DINSTALL_DIR=""/usr/share/bandwidthd"" -c -o conf.tab.o conf.tab.c
In file included from conf.y:12:0:
bandwidthd.h:219:17: warning: inline function 'DstCredit' declared but never defined
inline void DstCredit(uint32_t ipaddr, unsigned int psize);
^~~~~~~~~
In file included from conf.y:12:0:
bandwidthd.h:206:23: warning: inline function 'FindIp' declared but never defined
inline struct IPData *FindIp(uint32_t ipaddr);
^~~~~~
bandwidthd.h:203:17: warning: inline function 'Credit' declared but never defined
inline void Credit(struct Statistics *Stats, const struct ip *ip);
^~~~~~
bandwidthd.h:200:17: warning: inline function 'IpAddr' declared but never defined
inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);
^~~~~~
flex -Pbdconfig_ -s -i -t -I conf.l > conf.l.c
arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35:bandwidthd-2.0.1-35 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -DHAVE_CONFIG_H -c -o conf.l.o conf.l.c
arm-openwrt-linux-muslgnueabi-gcc -Wall -Os -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35:bandwidthd-2.0.1-35 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/include -DHAVE_CONFIG_H -DINSTALL_DIR=""/usr/share/bandwidthd"" bandwidthd.o graph.o sqlite.o conf.tab.o conf.l.o -o bandwidthd -L/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -L/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/lib -L/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/lib -L/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/lib -znow -zrelro -L/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -L/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/lib -L/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/lib -L/home/domuser/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/lib -znow -zrelro -Wl,-rpath-link,/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -lpcap -lgd -lpng -lm -lresolv
bandwidthd.o: In function RCDF_Load': bandwidthd.c:(.text+0xb14): undefined reference toFindIp'
bandwidthd.o: In function PacketCallback': bandwidthd.c:(.text+0x1230): undefined reference toFindIp'
bandwidthd.c:(.text+0x1244): undefined reference to Credit' bandwidthd.c:(.text+0x124c): undefined reference toFindIp'
bandwidthd.c:(.text+0x1260): undefined reference to Credit' bandwidthd.c:(.text+0x127c): undefined reference toFindIp'
bandwidthd.c:(.text+0x1290): undefined reference to Credit' bandwidthd.c:(.text+0x1298): undefined reference toFindIp'
bandwidthd.c:(.text+0x12ac): undefined reference to `Credit'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'bandwidthd' failed
make[4]: *** [bandwidthd] Error 1
make[4]: Leaving directory '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35'
Makefile:224: recipe for target '/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35/.built' failed
make[3]: *** [/home/domuser/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bandwidthd-no-db/bandwidthd-2.0.1-35/.built] Error 2
make[3]: Leaving directory '/home/domuser/openwrt/feeds/packages/utils/bandwidthd'
time: package/feeds/packages/bandwidthd/no-db/compile#5.18#1.15#9.24
package/Makefile:107: recipe for target 'package/feeds/packages/bandwidthd/compile' failed
make[2]: *** [package/feeds/packages/bandwidthd/compile] Error 2
make[2]: Leaving directory '/home/domuser/openwrt'
package/Makefile:103: recipe for target '/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/domuser/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/domuser/openwrt'
/home/domuser/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

I don't know where to start with this. To google I go!!

So, I just tried to open build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/cshark-2015-11-24-e575ab3d35d75a6f70488001fcba45690ebe9b3e/src/uclient.c:170:50

and I found:

snprintf(extra_tags, BUFSIZ, "?additional_tags=%s", config.tags);

and modified it to

snprintf(extra_tags, BUFSIZ+18, "?additional_tags=%s", config.tags);

And it appears as though its building ok now. This is the furthest I've gotten in 3 days. I'll post here if this gets me a successful compile of openwrt for banana pi r2.

EDIT:

The above solution fixed my first issue, now i'm stuck with the issue in the edit above.

I was unable to get passed any of the errors.

My journey ends with LEDE/OpenWRT.

Here is the last error I get:

. /home/domuser/bpi-r2_lede/include/shell.sh; xzcat /home/domuser/bpi-r2_lede/dl/uboot-mtk-bpi-r2-v1.0.tar.xz | tar -C /home/domuser/bpi-r2_lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/uboot-mtk-bpi-r2-bpi_r2/uboot-mtk-bpi-r2-v1.0/.. -xf -

tar: This does not look like a tar archive

Thanks.