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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: trying to compile snmp for Wiener PL512 crate application
From: James F Ross <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Wed, 20 Feb 2013 19:42:08 -0500
I solved the issue and compiled the IOC.  It required commenting out
the function declaration and prototype for the syslog function in
LVWienerPL5xxApp/src/lib/source_v12.c (or whichever version of this
file you use) and WIENER_SNMP.h.  I also ensured that there was an
appropriate link to libnetsnmp.so (libnetsnmp.so.30 in my case).

James

On Wed, Feb 20, 2013 at 1:46 PM, James F Ross
<[email protected]> wrote:
> Hello everyone,
> I've got an IOC that handles snmp communication with a number of
> Wiener PL512 crates that I want to modify for a PL508.  However, I'm
> trying to get it to compile on a new machine first (where the PL508
> application will run) and I keep running into the following error.  I
> could use some help if anyone has encountered this before.
> Thank you!
> James Ross
>
> make[3]: Entering directory
> `/home/sysuser/epics.3.14.12.1/hft_sc/LVWienerPL5xx_2.0.6/LVWienerPL5xxApp/src/O.linux-x86'
>
> /usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
> -D_XOPEN_SOURCE=500           -D_X86_  -DUNIX  -D_BSD_SOURCE -Dlinux
> -D_REENTRANT   -O3   -Wall     -I. `net-snmp-config --cflags`
> -DNETSNMP_NO_INLINE  -m32     -g  -MMD -I. -I../O.Common -I. -I..
> -I../../../include/os/Linux -I../../../include
> -I/home/sysuser/epics/base/include/os/Linux
> -I/home/sysuser/epics/base/include
> -I/home/sysuser/epics/synApps_5_5/support/seq-2-0-12/include
> -I/home/sysuser/epics/synApps_5_5/support/asyn-4-13/include
> ../test-v6.c
> In file included from ../test-v6.c:22:
> ../lib/WIENER_SNMP.h:236: error: expected declaration specifiers or
> ‘...’ before numeric constant
> ../lib/WIENER_SNMP.h:236: error: conflicting types for ‘__syslog_chk’
> /usr/include/bits/syslog.h:26: error: previous declaration of
> ‘__syslog_chk’ was here
> ../test-v6.c: In function ‘PLWrite’:
> ../test-v6.c:234: warning: ISO C90 forbids mixed declarations and code
> ../test-v6.c: In function ‘PLConnect’:
> ../test-v6.c:447: warning: ISO C90 forbids mixed declarations and code
> make[3]: *** [test-v6.o] Error 1
> make[3]: Leaving directory
> `/home/sysuser/epics.3.14.12.1/hft_sc/LVWienerPL5xx_2.0.6/LVWienerPL5xxApp/src/O.linux-x86'
> make[2]: *** [install.linux-x86] Error 2
> make[2]: Leaving directory
> `/home/sysuser/epics.3.14.12.1/hft_sc/LVWienerPL5xx_2.0.6/LVWienerPL5xxApp/src'
> make[1]: *** [src.install] Error 2
> make[1]: Leaving directory
> `/home/sysuser/epics.3.14.12.1/hft_sc/LVWienerPL5xx_2.0.6/LVWienerPL5xxApp'
> make: *** [LVWienerPL5xxApp.install] Error 2


References:
trying to compile snmp for Wiener PL512 crate application James F Ross

Navigate by Date:
Prev: Re: gateway: strange configuration Pierrick Hanlet
Next: asyn R4-21 available Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: trying to compile snmp for Wiener PL512 crate application James F Ross
Next: Best practices for introducing new dot releases of modules. Shankar, Murali
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·