EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
<== Date ==> <== Thread ==>

Subject: Re: EPICS SNMP compile error
From: "Priller, John via Tech-talk" <tech-talk at aps.anl.gov>
To: Majer Karel <Karel.Majer at eli-beams.eu>, "Hu, Yong" <yhu at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Michael Davidsaver <mdavidsaver at gmail.com>, Peter Sx <xinss0017 at gmail.com>
Date: Wed, 18 Mar 2026 11:40:15 +0000


Thanks Karel, I'll roll this into the next version I'm testing.

I'm still hoping to get this code onto github, the process for approving that is moving just as quickly as you might expect.


From: Majer Karel <Karel.Majer at eli-beams.eu>
Sent: Wednesday, March 18, 2026 6:32 AM
To: Hu, Yong; Priller, John; tech-talk at aps.anl.gov; Michael Davidsaver; Peter Sx
Subject: Re: EPICS SNMP compile error
 
[EXTERNAL] This email originated from outside of FRIB

Hi all,

I had exactly the same issue while building on RockyLinux 9 with net-snmp 5.9.1.
The issue is that usmDESPrivProtocol is declared in net-snmp library with #ifndef NETSNMP_DISABLE_DES directive. Net-snmp header on Rocky 9 defines NETSNMP_DISABLE_DES.
It can be fixed by using the same directive on lines 3299 - 3300 of devSnmp.cpp. The replacement for lines 3299-3300 (suggested by AI) is:

#ifndef NETSNMP_DISABLE_DES
      v3params.securityPrivProto    = snmp_duplicate_objid(usmDESPrivProtocol,USM_PRIV_PROTO_DES_LEN);
      v3params.securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN;
#else
      printf("devSnmp ERROR: SNMPv3 privProtocol 'DES' is not supported by this net-snmp build, use AES instead\n");
#endif

I also tried to modify the header to not define NETSNMP_DISABLE_DES, but the build failed during linking. It seems that libnetsnmp.so would have to be rebuilt as well.

Best regards,
Karel


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Peter Sx via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, March 12, 2026 11:07 PM
To: Hu, Yong <yhu at bnl.gov>; Priller, John <priller at frib.msu.edu>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Michael Davidsaver <mdavidsaver at gmail.com>
Subject: Re: EPICS SNMP compile error
 
Hi Yong, John and Michael.

I uninstalled the net-snmp 5.9.1 and installed 5.9.4 Pre. Then I compiled the epics snmp module. It went through.  Thank you all for helping!
Best

Susheng

On Thu, Mar 12, 2026 at 1:39 PM Hu, Yong <yhu at bnl.gov> wrote:
OR I can stop by your office tomorrow if that is more convenient to you.

From: Peter Sx <xinss0017 at gmail.com>
Date: Thursday, March 12, 2026 at 9:08 AM
 
Thank you, Yong! Let me try  using the other version today. I will see you tomorrow.

On Thu, Mar 12, 2026, 8:29 AM Hu, Yong <yhu at bnl.gov> wrote:
I am out of office today. I will be in tomorrow. You can stop by tomorrow so we can try 5.9.1.

From: Peter Sx <xinss0017 at gmail.com>
Date: Wednesday, March 11, 2026 at 5:47 PM
 
Hi John, Yong and Michael,
I had a busy day in the field. Sorry for the late reply!
My version is 5.9.1. I will try to install an older version and compile it again. Thank you all for helping!

Best
Susheng

On Wed, Mar 11, 2026 at 12:19 PM Priller, John <priller at frib.msu.edu> wrote:

Susheng;


What version of libsnmp do you have installed?


This is what version I'm compiling against, shown with the net-snmp-config command, on this Linux version I got from uname:


$> net-snmp-config --version

5.9.4.pre2

$> uname -v
 uname -v
#1 SMP PREEMPT_DYNAMIC Debian 6.12.27-1 (2025-05-06)

I tried compiling on a host with a slightly older version of debian, which also compiles okay:

>$ net-snmp-config --version
5.7.3

>$ uname -v
#1 SMP Debian 4.19.316-1 (2024-06-25)


- JP



From: Peter Sx <xinss0017 at gmail.com>
Sent: Wednesday, March 11, 2026 11:05 AM
To: tech-talk at aps.anl.gov; Priller, John
Subject: EPICS SNMP compile error
 
[EXTERNAL] This email originated from outside of FRIB

Dear John and EPICS specialist, 

I have the following errors while compiling the SNMP 1.1.0.5.  Could you please help me out? My EPICS version is V7.0.9. Thank you!
Susheng

/usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE        -DdevSnmp_NETSNMP_VERSION=50901  -D_X86_64_ -DUNIX  -Dlinux      -O3 -g   -Wall    -DUSE_TYPED_RSET  -mtune=generic     -m64  -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base//include/compiler/gcc -I/usr/local/epics/base//include/os/Linux -I/usr/local/epics/base//include        -c ../devSnmp.cpp
../devSnmp.cpp: In member function ‘void devSnmp_host::setSnmpV3Param(const char*, const char*, bool)’:
../devSnmp.cpp:3299:60: error: ‘usmDESPrivProtocol’ was not declared in this scope; did you mean ‘usmAESPrivProtocol’?
 3299 |       v3params.securityPrivProto    = snmp_duplicate_objid(usmDESPrivProtocol,USM_PRIV_PROTO_DES_LEN);
      |                                                            ^~~~~~~~~~~~~~~~~~
      |                                                            usmAESPrivProtocol
make[3]: *** [/usr/local/epics/base//configure/RULES_BUILD:268: devSnmp.o] Error 1
make[3]: Leaving directory '/home/sxin/Downloads/epics-snmp-1.1.0.5/snmpApp/src/O.linux-x86_64'
make[2]: *** [/usr/local/epics/base//configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
make[2]: Leaving directory '/home/sxin/Downloads/epics-snmp-1.1.0.5/snmpApp/src'
make[1]: *** [/usr/local/epics/base//configure/RULES_DIRS:85: src.install] Error 2
make[1]: Leaving directory '/home/sxin/Downloads/epics-snmp-1.1.0.5/snmpApp'
make: *** [/usr/local/epics/base//configure/RULES_DIRS:85: snmpApp.install] Error 2


References:
EPICS SNMP compile error Peter Sx via Tech-talk
Re: EPICS SNMP compile error Priller, John via Tech-talk
Re: EPICS SNMP compile error Peter Sx via Tech-talk
Re: EPICS SNMP compile error Peter Sx via Tech-talk
Re: EPICS SNMP compile error Majer Karel via Tech-talk

Navigate by Date:
Prev: Re: EPICS SNMP compile error Majer Karel via Tech-talk
Next: RE: Migrating an Archiver Appliance to a new machine Sky Brewer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
Navigate by Thread:
Prev: Re: EPICS SNMP compile error Majer Karel via Tech-talk
Next: Showing Formula-Based PV Value in Tooltip in Phoebus Display Builder Varuna Crishan Meddage via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·