Package Details: snmpb 1.0-11

Git Clone URL: https://aur.archlinux.org/snmpb.git (read-only, click to copy)
Package Base: snmpb
Description: SNMP browser and MIB editor written in Qt
Upstream URL: https://sourceforge.net/projects/snmpb
Keywords: browser mib network snmp snmpb
Licenses: GPL-2.0-only
Submitter: nikost74
Maintainer: nikost74
Last Packager: nikost74
Votes: 0
Popularity: 0.000000
First Submitted: 2023-04-14 02:35 (UTC)
Last Updated: 2025-06-12 07:28 (UTC)

Latest Comments

1 2 Next › Last »

nikost74 commented on 2025-07-10 10:32 (UTC)

Hi @petaramesh,

Thanks for testing! I'll add aarch64 to the arch array in the next pkgrel update.

nikost74 commented on 2025-07-10 10:30 (UTC) (edited on 2025-07-10 10:32 (UTC) by nikost74)

Hi @danielck,

This is an LTO version mismatch (e.g. mixing GCC 14 and 15). To fix it, please do a clean rebuild so everything is compiled with the same GCC version:

  • makepkg:

rm -rf src/ pkg/ makepkg -Cfs

  • paru:

paru -S snmpb --rebuild --mflags "--cleanbuild"

  • yay:

yay -S snmpb --rebuildtree

Let me know if the issue persists!

danielck commented on 2025-07-07 01:52 (UTC) (edited on 2025-07-07 01:53 (UTC) by danielck)

I try to update the snmpb but got the following error message:

lto1: fatal error: bytecode stream in file ‘obj/Friedberg2007.o’ generated with LTO version 14.0 instead of the expected 15.0
compilation terminated.
lto-wrapper: fatal error: /usr/bin/g++ returned 1 exit status
compilation terminated.
mold: fatal: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:299: ../bin/friedberg] Error 1
make[2]: Leaving directory '/tmp/makepkg/snmpb/src/snmpb-1.0/qwt/examples/friedberg'
make[1]: *** [Makefile:197: sub-friedberg-make_first] Error 2
make[1]: *** Waiting for unfinished jobs....

How do I fix it? Thanks

petaramesh commented on 2025-07-05 08:05 (UTC)

Could you please add 'aarch64' to the list of supported architectures in PKGBUILD, as it compiles and runs just fine there ?

nikost74 commented on 2025-06-12 07:30 (UTC)

Updated with the gcc-15 patch for libsmi. Many thanks for pointing this out @bashee.

bashee commented on 2025-06-11 09:27 (UTC)

@nikost74, I apply and test the patch to the package; this is the git format-patch output: 0001-Add-libsmi-patch-with-gcc-15-fix.patch

From 238037125bd58ae84d3da6e103cfc34191528cab Mon Sep 17 00:00:00 2001
From: Marco Bascetta <marco.bascetta@sadel.it>
Date: Wed, 11 Jun 2025 10:23:51 +0200
Subject: [PATCH] Add libsmi patch with gcc-15 fix

---
 PKGBUILD                  |  9 ++++++++-
 libsmi-0.5.0_gcc-15.patch | 40 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 libsmi-0.5.0_gcc-15.patch

diff --git a/PKGBUILD b/PKGBUILD
index 07d197e..13dc662 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,11 +31,14 @@ source=(
   "https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-${_smi}.tar.gz"
   "https://github.com/libtom/libtomcrypt/releases/download/v${_tomcrypt}/crypt-${_tomcrypt}.tar.xz"
   "https://sourceforge.net/projects/qwt/files/qwt/${_qwt}/qwt-${_qwt}.tar.bz2"
+  "libsmi-${_smi}_gcc-15.patch"
 )
 sha256sums=('SKIP'
             'f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3'
             '96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84'
-            'dcb085896c28aaec5518cbc08c0ee2b4e60ada7ac929d82639f6189851a6129a')
+            'dcb085896c28aaec5518cbc08c0ee2b4e60ada7ac929d82639f6189851a6129a'
+            'ea475e5b0e5c8daf5d119c51163fced965fdba339c5d1cd1a22fda1a1536528d'
+)
 prepare() {
   # Create the build directory
   mkdir -p "${srcdir}/${pkgname}-${pkgver}"
@@ -88,6 +91,10 @@ build() {

   # Build Libsmi
   cd "${libsmi_dir}"
+
+  # Apply patch
+  patch -p1 < "../../libsmi-${_smi}_gcc-15.patch"
+
   autoreconf -i
   ./configure \
     --disable-shared \
diff --git a/libsmi-0.5.0_gcc-15.patch b/libsmi-0.5.0_gcc-15.patch
new file mode 100644
index 0000000..1162142
--- /dev/null
+++ b/libsmi-0.5.0_gcc-15.patch
@@ -0,0 +1,40 @@
+--- a/lib/parser-smi.h 2025-06-11 10:07:25.691041164 +0200
++++ b/lib/parser-smi.h 2013-06-04 14:34:00.000000000 +0200
+@@ -24,7 +24,7 @@
+
+
+
+-extern int smiparse();
++extern int smiparse(struct Parser *parserPtr);
+
+
+
+--- a/lib/parser-yang.h        2025-06-11 10:08:38.744144942 +0200
++++ b/lib/parser-yang.h        2025-06-11 10:08:21.420123068 +0200
+@@ -7,13 +7,13 @@
+
+ #include "yang-data.h"
+
+-
++#include "smi-data.h"
+
+ #define YYERROR_VERBOSE
+
+
+
+-extern int yangparse();
++extern int yangparse(struct Parser *parserPtr);
+
+
+
+--- a/lib/smi-data.c   2025-06-11 10:06:17.800716611 +0200
++++ b/lib/smi-data.c   2013-06-04 14:34:00.000000000 +0200
+@@ -39,7 +39,7 @@
+
+ #ifdef BACKEND_SMI
+ #include "scanner-smi.h"
+-extern int smiparse();
++extern int smiparse(struct Parser *parserPtr);
+ #endif
+
+ #ifdef BACKEND_SMING
--
2.49.0

bashee commented on 2025-06-10 16:14 (UTC) (edited on 2025-06-10 16:14 (UTC) by bashee)

Due to gcc-15 this package does not compile anymore.

A patch approved by the Yocto project is available here: https://lists.ibr.cs.tu-bs.de/hyperkitty/list/libsmi@ibr.cs.tu-bs.de/thread/XUW4E575ALYHCAM33OEMU5V2LKUOYAVA/

Yocto reference:

CupricReki commented on 2024-08-31 20:04 (UTC)

snmpb: error while loading shared libraries: libqwt.so.6.2: cannot open shared object file: No such file or directory

qwt provides 6.3.0 now

ohwg commented on 2023-10-23 21:13 (UTC)

Please add qt5-tools to makedeps (for lrelease)

Andrei_Korshikov commented on 2023-10-12 15:59 (UTC)

Everything is OK now. Thank you!