paulscherrerinstitute / StreamDevice

EPICS Driver for message based I/O
GNU General Public License v3.0
28 stars 42 forks source link

implicit declaration of function 'rtems_rpc_task_init' #89

Closed mdavidsaver closed 2 years ago

mdavidsaver commented 2 years ago

With RTEMS 5 for pc686 with the libbsd (aka. "new") network stack I get:

In file included from ../../asyn/vxi11/drvVxi11.c:41:0:
../../asyn/vxi11/drvVxi11.c: In function 'vxiConnectPort':
../../asyn/vxi11/osiRpc.h:25:21: error: implicit declaration of function 'rtems_rpc_task_init'; did you mean 'rtems_task_exit'? [-Werror=implicit-function-declaration]
 #define rpcTaskInit rtems_rpc_task_init
                     ^
../../asyn/vxi11/drvVxi11.c:908:12: note: in expansion of macro 'rpcTaskInit'
         if(rpcTaskInit() == -1) {
            ^~~~~~~~~~~

It appears that libbsd provides a different rpc/rpc.h, which doesn't contain anything RTEMS specific. I guess needs some different initialization will be needed?

@hjunkes @mrippa fyi.

dirk-zimoch commented 2 years ago

That appears to be an asyn problem rather than a StreamDevice problem.

mdavidsaver commented 2 years ago

oops. Sorry, wrong repository... (It's early for me)

mdavidsaver commented 2 years ago

fyi. https://github.com/epics-modules/asyn/issues/150