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  <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: Re: sscan build error
From: Vishnu Patel via Tech-talk <tech-talk at aps.anl.gov>
To: Sandeep Kumar Malu - STFC UKRI <sandeep-kumar.malu at stfc.ac.uk>, "Tech Talk (tech-talk at aps.anl.gov)" <Tech-talk at aps.anl.gov>
Date: Tue, 29 Aug 2023 09:59:07 +0000
Hi Sandeep,
     Thank you
With latest version it works for me with latest version

Thanks
Vishnu

Sent from Outlook

From: Sandeep Kumar Malu - STFC UKRI <sandeep-kumar.malu at stfc.ac.uk>
Sent: 29 August 2023 12:18
To: Tech Talk (tech-talk at aps.anl.gov) <Tech-talk at aps.anl.gov>; Vishnu Patel <patel.vishnu at hotmail.com>
Subject: Re: sscan build error
 
Hi Vishnu

Do you have any specific reason for using sscan 2-10-1? If not, try using the latest version, if that helps.

Thanks
Sandeep Malu


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Vishnu Patel via Tech-talk <tech-talk at aps.anl.gov>
Sent: 29 August 2023 11:24
To: Tech Talk (tech-talk at aps.anl.gov) <Tech-talk at aps.anl.gov>
Subject: sscan build error
 

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

References:
sscan build error Vishnu Patel via Tech-talk
Re: sscan build error Sandeep Kumar Malu - STFC UKRI via Tech-talk

Navigate by Date:
Prev: RE: Error while compiling asyn Neidherr, Dennis Dr. via Tech-talk
Next: compilation error with stream device Vishnu Patel 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: Re: sscan build error Sandeep Kumar Malu - STFC UKRI via Tech-talk
Next: Error while compiling asyn Neidherr, Dennis Dr. 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 
ANJ, 29 Aug 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·