Here is a full functionnal result on munin ( fix for cputemp and df plugins needed)
Just added disk , so no history !
Here is a full functionnal result on munin ( fix for cputemp and df plugins needed)
Just added disk , so no history !
Hello ,
Now ( in my opinion) snmp addon is fully fonctionnal in master branch.
At least for me it's ok.
If someone need something missing , tell me , I'll look !
PR for 8.2 done
PR on master to fix something I have forget
Hi !
I have change PKG_URL with that : V5-7-patches.tar.gz
And it ends with that :
/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/snmp_debug.c: In function 'snmp_debug_shutdown':
/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/snmp_debug.c:607:16: error: 'debug_num_tokens' undeclared (first use in this function)
for (i=0; i<debug_num_tokens; i++) {
^~~~~~~~~~~~~~~~
/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/snmp_debug.c:607:16: note: each undeclared identifier is reported only once for each function it appears in
In file included from /build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/include/net-snmp/utilities.h:40:0,
from /build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/snmp_debug.c:41:
/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/snmp_debug.c:608:18: error: 'dbg_tokens' undeclared (first use in this function)
SNMP_FREE(dbg_tokens [i].token_name);
^
/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/include/net-snmp/library/tools.h:57:34: note: in definition of macro 'SNMP_FREE'
#define SNMP_FREE(s) do { if (s) { free((void *)s); s=NULL; } } while(0)
^
make[1]: *** [Makefile:98: snmp_debug.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile: /build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/toolchain/bin/aarch64-libreelec-linux-gnueabi-gcc -I../include -I/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/include -I. -I../snmplib -I/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib -march=armv8-a+crc+fp+simd -mabi=lp64 -Wno-psabi -mcpu=cortex-a53+crc+fp+simd -fomit-frame-pointer -Wall -pipe -Os -flto -ffat-lto-objects -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -march=armv8-a+crc+fp+simd -mabi=lp64 -Wno-psabi -mcpu=cortex-a53+crc+fp+simd -fomit-frame-pointer -Wall -pipe -Os -flto -ffat-lto-objects -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -c /build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/snmplib/cert_util.c -o cert_util.o
make[1]: Leaving directory '/build/LibreELEC.tv/build.LibreELEC-WeTek_Play_2.aarch64-8.2.0/net-snmp-5-7-patches/.aarch64-libreelec-linux-gnueabi/snmplib'
make: *** [Makefile:656: subdirs] Error 1
Display More
Nevermind , it's just a test with recent patch , but actual 5.7.3 compile and work fine !
Hello , this was discuss in the PR , and this morning , I 've tried build le 5-7-patches branch.
That was unsuccessful , compilation stop with and error.
So this branch don't compile
Here is the plugin for libreelec 8.2.0 for Rpi2 !
Build in progress
Hi Guys,
After searching many thing , I finally have a fully fonctionnal snmp on my wetek-play 2
first updating config.sub in net-snmp source , then the most important part
1- Don't enable mini agent !!!
LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
line 46.
Because mini agent is just useless
'The "mini-agent" is effectively the standard agent, but with almost
none of the MIB modules included. (Just those "essential" for the
operation of the agent).
system mibs was not present , for exemple , snmpwalk with mini agent : 135 lines , without : 3000+
2- compile statically because libsnmpagent don't link as a separate .so file
diff --git a/packages/addons/service/net-snmp/package.mk b/packages/addons/service/net-snmp/package.mk
index 7994d8a..3a3d6ec 100644
--- a/packages/addons/service/net-snmp/package.mk
+++ b/packages/addons/service/net-snmp/package.mk
@@ -40,9 +40,8 @@ PKG_CONFIGURE_OPTS_TARGET="--with-defaults \
--disable-deprecated \
--disable-snmptrapd-subagent \
--disable-scripts \
- --enable-static=no \
- --enable-shared=yes \
- --enable-mini-agent \
+ --enable-static=yes \
+ --enable-shared=no \
--with-nl \
--with-logfile=/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID} \
--with-persistent-directory=/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID} \
@@ -68,8 +67,8 @@ addon() {
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
cp -r $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/bin $PKG_BUILD/.$TARGET_NAME/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID}/share $ADDON_BUILD/$PKG_ADDON_ID/
#Do not copy symlinks
- find $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/lib/ -type f -name '*.so.*' -exec cp '{}' $ADDON_BUILD/$PKG_ADDON_ID/lib/ \;
+ #find $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/lib/ -type f -name '*.so.*' -exec cp '{}' $ADDON_BUILD/$PKG_ADDON_ID/lib/ \;
#remove all but major version from so file
- for f in $ADDON_BUILD/$PKG_ADDON_ID/lib/*.so.* ; do mv "$f" "${f%.*.*}" ; done
+ #for f in $ADDON_BUILD/$PKG_ADDON_ID/lib/*.so.* ; do mv "$f" "${f%.*.*}" ; done
}
Display More
I can submit a pull request if needed !
Hello,
On wetek play 2 ( aarch64) this addon miss two .so file
libnetsnmpmibs.so and libnetsnmpagent.so
Log during compilation
WP2 will be added to our build roster in v7.90.007 which is currently being assembled; another 3-4 days away if everything goes to plan
Great !
any news about WeTek Play 2
Many !
See here LibreELEC (WP2) - WeTek Community Forum
Wetek play 2 project is now in official Libreelec source (LibreELEC.tv/projects/WeTek_Play_2 at master · LibreELEC/LibreELEC.tv · GitHub)
Personnaly running latest devel build on my wetek play 2 , works like a charm !
Yeah ,
great news , so I can preorder
Hello,
Wetek just announce the play 2
Is there any plan to get a libreelec buid ?