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  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Compiling motor R7-2-2 against EPICS 7.0.6
From: Andy Foster via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Thu, 15 Jul 2021 19:04:21 +0100
Hi All,

Something I noticed today in attempting to compile motor R7-2-2 against base-7.0.6 (on ubuntu-20.04.2.0) was that I was getting this error:

../motordrvCom.h:225:1: note: the macro ‘epicsShareFunc’ had not yet been defined
In file included from ../motordevCom.cc:73:
/home/ajf/epics/base-7.0.6/include/shareLib.h:169: note: it was later defined here
169 | #   define epicsShareFunc __attribute__ ((visibility("default")))

I solved it by adding "shareLib.h" to "motordrvCom.h" like this:
#include <shareLib.h>
#include "motor.h"

That allowed the compile to work. But whether this the best way to solve the problem I don't know? I wondered if anyone else had seen this compilation error?

Cheers, Andy


Replies:
Re: Compiling motor R7-2-2 against EPICS 7.0.6 Torsten Bögershausen via Tech-talk

Navigate by Date:
Prev: Re: Block CAPUT to not be able to modify PV value Johnson, Andrew N. via Tech-talk
Next: Re: Compiling motor R7-2-2 against EPICS 7.0.6 Torsten Bögershausen 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Block CAPUT to not be able to modify PV value Adrian Martinez via Tech-talk
Next: Re: Compiling motor R7-2-2 against EPICS 7.0.6 Torsten Bögershausen 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  <20212022  2023  2024 
ANJ, 15 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·