EPICS Home

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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: sscan build error
From: Vishnu Patel via Tech-talk <tech-talk at aps.anl.gov>
To: "Tech Talk (tech-talk at aps.anl.gov)" <Tech-talk at aps.anl.gov>
Date: Tue, 29 Aug 2023 05:54:07 +0000

Hi,
   I have an error compiling sscan-2-10-1 with epics base 7.0.7.   I am not able to understand how to resolve it.


../scanparmRecord.c:109:1: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]
  109 | epicsExportAddress(rset, scanparmRSET);
      | ^~~~~~~~~~~~~~~~~~
In file included from ../../../../../base-7.0.7/include/dbBase.h:22,
                 from ../../../../../base-7.0.7/include/dbAccess.h:20,
                 from ../scanparmRecord.c:54:
../../../../../base-7.0.7/include/recSup.h:68:8: note: declared here
   68 | struct rset {   /* record support entry table */
      |        ^~~~
../scanparmRecord.c:109:1: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]
  109 | epicsExportAddress(rset, scanparmRSET);
      | ^~~~~~~~~~~~~~~~~~
In file included from ../../../../../base-7.0.7/include/dbBase.h:22,
                 from ../../../../../base-7.0.7/include/dbAccess.h:20,
                 from ../scanparmRecord.c:54:
../../../../../base-7.0.7/include/recSup.h:68:8: note: declared here
   68 | struct rset {   /* record support entry table */
      |        ^~~~
../scanparmRecord.c: In function ‘process’:
../scanparmRecord.c:141:23: warning: unused variable ‘dbAddr’ [-Wunused-variable]
  141 |         struct dbAddr dbAddr;
      |                       ^~~~~~
../scanparmRecord.c:140:13: warning: unused variable ‘i’ [-Wunused-variable]
  140 |         int i;
      |             ^
../scanparmRecord.c:139:24: warning: unused variable ‘isRemote’ [-Wunused-variable]
  139 |         long status=0, isRemote=0;
      |                        ^~~~~~~~
/usr/bin/gcc  -D_GNU_SOURCE -D_DEFAULT_SOURCE          -D_X86_64_ -DUNIX  -Dlinux      -O3 -g   -Wall -Werror-implicit-function-declaration      -mtune=generic     -m64  -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include      -I../../../..//seq-2.2.5/include -I../../../../../base-7.0.7/include/compiler/gcc -I../../../../../base-7.0.7/include/os/Linux -I../../../../../base-7.0.7/include        -c ../recDynLink.c
../recDynLink.c:46:15: error: expected ‘;’ before ‘long’
   46 | epicsShareFunc long epicsShareAPI dbNameToAddr(const char *pname,struct dbAddr *);
      |               ^~~~~
      |               ;
../recDynLink.c:46:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbNameToAddr’
   46 | epicsShareFunc long epicsShareAPI dbNameToAddr(const char *pname,struct dbAddr *);
      |                                   ^~~~~~~~~~~~
../recDynLink.c: In function ‘recDynLinkAddInput’:
../recDynLink.c:200:35: error: implicit declaration of function ‘dbNameToAddr’ [-Werror=implicit-function-declaration]
  200 |         if (options&rdlDBONLY  && dbNameToAddr(pvname,&dbaddr)) return(-1);
      |                                   ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [../../../../../base-7.0.7/configure/RULES_BUILD:259: recDynLink.o] Error 1
make[3]: Leaving directory '/opt/epics/support/sscan-2-10-1/sscanApp/src/O.linux-x86_64'
make[2]: *** [../../../../base-7.0.7/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
make[2]: Leaving directory '/opt/epics/support/sscan-2-10-1/sscanApp/src'
make[1]: *** [../../../base-7.0.7/configure/RULES_DIRS:85: src.install] Error 2
make[1]: Leaving directory '/opt/epics/support/sscan-2-10-1/sscanApp'
make: *** [../../base-7.0.7/configure/RULES_DIRS:85: sscanApp.install] Error 2


Thank you
Vishnu

Replies:
Re: sscan build error Sandeep Kumar Malu - STFC UKRI via Tech-talk

Navigate by Date:
Prev: RE: USBCTR08 ch0 scaler counts missing Mark Rivers via Tech-talk
Next: Re: sscan build error Sandeep Kumar Malu - STFC UKRI 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  <20232024 
Navigate by Thread:
Prev: areaDetector driver for BitFlow frame grabbers Mark Rivers via Tech-talk
Next: Re: sscan build error Sandeep Kumar Malu - STFC UKRI 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  <20232024