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  <20152016  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  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: trouble building asyn driver on FreeBSD
From: Franklin Fuller <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 28 Jan 2015 19:02:45 -0800
Hello,

I'm getting the following errors while trying to build asyn on FreeBSD 10

The first warning:

/usr/bin/gcc -c  -D_POSIX_THREADS           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dfreebsd  -D_REENTRANT   -O3   -Wall          -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../asyn/asynDriver -I../../asyn/asynGpib -I../../asyn/drvAsynSerial -I../../asyn/interfaces -I../../asyn/miscellaneous -I../../asyn/asynPortDriver/exceptions -I../../asyn/asynPortDriver -I../../asyn/devEpics -I../../asyn/asynRecord -I../../asyn/vxi11 -I../../asyn/ni1014 -I../../asyn/devGpib -I../../include/os/freebsd -I../../include -I/home/yanolab/EPICS/base/include/os/freebsd -I/home/yanolab/EPICS/base/include       ../../asyn/vxi11/drvVxi11.c
../../asyn/vxi11/drvVxi11.c: In function 'vxiCreateDeviceLink':
../../asyn/vxi11/drvVxi11.c:292:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'u_int' [-Wformat=]
             asynPrint(pasynUser,ASYN_TRACE_ERROR,
             ^
../../asyn/vxi11/drvVxi11.c: In function 'vxiConnectPort':
../../asyn/vxi11/drvVxi11.c:878:9: warning: implicit declaration of function 'rpcTaskInit' [-Wimplicit-function-declaration]
         if(rpcTaskInit() == -1) {


The final error:

/usr/bin/gcc -c  -D_POSIX_THREADS           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dfreebsd  -D_REENTRANT   -O3   -Wall          -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../asyn/asynDriver -I../../asyn/asynGpib -I../../asyn/drvAsynSerial -I../../asyn/interfaces -I../../asyn/miscellaneous -I../../asyn/asynPortDriver/exceptions -I../../asyn/asynPortDriver -I../../asyn/devEpics -I../../asyn/asynRecord -I../../asyn/vxi11 -I../../asyn/ni1014 -I../../asyn/devGpib -I../../include/os/freebsd -I../../include -I/home/yanolab/EPICS/base/include/os/freebsd -I/home/yanolab/EPICS/base/include       ../../asyn/vxi11/drvVxi11.c
../../asyn/vxi11/drvVxi11.c: In function 'vxiCreateDeviceLink':
../../asyn/vxi11/drvVxi11.c:292:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'u_int' [-Wformat=]
             asynPrint(pasynUser,ASYN_TRACE_ERROR,
             ^
../../asyn/vxi11/drvVxi11.c: In function 'vxiConnectPort':
../../asyn/vxi11/drvVxi11.c:878:9: warning: implicit declaration of function 'rpcTaskInit' [-Wimplicit-function-declaration]
         if(rpcTaskInit() == -1) {


I tried my best to find references to this.  I see there was some issues with mac os x and their RPC a long while ago, but I've built recent versions of asyn on os x without troubles.  Typing "man rpc" into os x and freeBSD give similar man pages, so something is there for both of them.

Perhaps the only fishy thing is this:

EPICS expects gcc, while FreeBSD ships with clang.  I installed gcc/g++ 4.8 into /usr/local/bin and then soft-linked them to /usr/bin.  This allowed me to build base without any errors, but then I ran into these troubles with asyn.

Ideas?

~Franklin

Replies:
Re: trouble building asyn driver on FreeBSD Franklin Fuller
Re: trouble building asyn driver on FreeBSD Andrew Johnson

Navigate by Date:
Prev: RE: Issues with installing the adPython plugin for areaDetector tom.cobb
Next: Re: trouble building asyn driver on FreeBSD Franklin Fuller
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Issues with installing the adPython plugin for areaDetector David Michel
Next: Re: trouble building asyn driver on FreeBSD Franklin Fuller
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·