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