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

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!

nikost74 commented on 2023-10-12 15:35 (UTC)

I didn't use yay or paru myself, but I get the same error message with paru. I included autoreconf -i in the build stage of libsmi. Try to build it now.

Andrei_Korshikov commented on 2023-10-12 14:35 (UTC)

@nikost74 Now, it's impossible to build:

[...skipped...]
config.status: executing default commands
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/korshikov/.cache/yay/snmpb/src/snmpb-1.0/libsmi/missing aclocal-1.14
/home/korshikov/.cache/yay/snmpb/src/snmpb-1.0/libsmi/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [Makefile:426: aclocal.m4] Error 127
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: snmpb-exit status 4

nikost74 commented on 2023-10-09 16:07 (UTC) (edited on 2023-10-11 17:04 (UTC) by nikost74)

I will correct this, please note that you will probably find a lot of issues since this software is a beta. Like for instance if you add or remove mibs, be sure to edit the ini-file under $HOME/.config/snmpb.sourceforge.net

Andrei_Korshikov commented on 2023-10-09 16:00 (UTC)

@nikost74 Thank you for this package, SnmpB is a nice software:)

Small problem, I've got /usr/bin/snmpb: error while loading shared libraries: libqwt.so.6.2: cannot open shared object file: No such file or directory after installing. Issue resolved after manual qwt package installation (by the way, why don't you use qwt as dependency?)