epics-modules / asyn

EPICS module for driver and device support
http://epics-modules.github.io/asyn/
Other
37 stars 75 forks source link

compile fails on ubuntu 22.04.1 LTS - vxi11core.h:9:10: fatal error: rpc/rpc.h: No such file or directory #163

Closed LeeYangLBLBCS closed 2 years ago

LeeYangLBLBCS commented 2 years ago

.../usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DUSE_TYPED_RSET -DUSE_TYPED_DSET -DUSE_TYPED_DRVET -DBUILDING_asyn_API -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -Werror-implicit-function-declaration -DUSE_TYPED_RSET -DUSE_TYPED_DSET -DUSE_TYPED_DRVET -DHAVE_LSREC -DHAVE_DEVINT64 -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I../../asyn/drvAsynSerial/os/Linux -I../../asyn/drvAsynSerial/os/default -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/asynPortClient -I../../asyn/devEpics -I../../asyn/asynRecord -I../../asyn/vxi11 -I../../asyn/drvPrologixGPIB -I../../asyn/gsIP488 -I../../asyn/ni1014 -I../../asyn/devGpib -I../../include/compiler/gcc -I../../include/os/Linux -I../../include -I/opt/epics/base-7.0.6.1/../modules/support/ipac-2-15/include -I/opt/epics/base-7.0.6.1/../modules/support/seq-2-2-9/include -I/opt/epics/base-7.0.6.1/include/compiler/gcc -I/opt/epics/base-7.0.6.1/include/os/Linux -I/opt/epics/base-7.0.6.1/include -c ../../asyn/asynRecord/drvAsyn.c /usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DUSE_TYPED_RSET -DUSE_TYPED_DSET -DUSE_TYPED_DRVET -DBUILDING_asyn_API -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -Werror-implicit-function-declaration -DUSE_TYPED_RSET -DUSE_TYPED_DSET -DUSE_TYPED_DRVET -DHAVE_LSREC -DHAVE_DEVINT64 -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I../../asyn/drvAsynSerial/os/Linux -I../../asyn/drvAsynSerial/os/default -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/asynPortClient -I../../asyn/devEpics -I../../asyn/asynRecord -I../../asyn/vxi11 -I../../asyn/drvPrologixGPIB -I../../asyn/gsIP488 -I../../asyn/ni1014 -I../../asyn/devGpib -I../../include/compiler/gcc -I../../include/os/Linux -I../../include -I/opt/epics/base-7.0.6.1/../modules/support/ipac-2-15/include -I/opt/epics/base-7.0.6.1/../modules/support/seq-2-2-9/include -I/opt/epics/base-7.0.6.1/include/compiler/gcc -I/opt/epics/base-7.0.6.1/include/os/Linux -I/opt/epics/base-7.0.6.1/include -c vxi11core_xdr.c In file included from vxi11core_xdr.c:6: vxi11core.h:9:10: fatal error: rpc/rpc.h: No such file or directory 9 | #include <rpc/rpc.h> | ^~~ compilation terminated. make[2]: [/opt/epics/base-7.0.6.1/configure/RULES_BUILD:259: vxi11core_xdr.o] Error 1 make[2]: Leaving directory '/opt/epics/modules/support/asyn-R4-43/asyn/O.linux-x86_64' make[1]: [/opt/epics/base-7.0.6.1/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2 make[1]: Leaving directory '/opt/epics/modules/support/asyn-R4-43/asyn' make: *** [/opt/epics/base-7.0.6.1/configure/RULES_DIRS:85: asyn.install] Error 2

MarkRivers commented 2 years ago

On recent Linux versions you need to install the tirpc package and edit CONFIG_SITE to uncomment this line:

# TIRPC=YES

This has been discussed in these issues: #151, #95

MarkRivers commented 2 years ago

This is also discussed in the asyn release notes for R4-34:

MarkRivers commented 2 years ago

@LeeYangLBLBCS Did this fix your problem?

MarkRivers commented 2 years ago

I just built successfully on Ubuntu 22.04 when I defined TIRPC=YES, so I am closing this issue.

LeeYangLBLBCS commented 2 years ago

yes, my build also succeeded.

On Fri, Sep 30, 2022 at 10:12 AM Mark Rivers @.***> wrote:

I just built successfully on Ubuntu 22.04 when I defined TIRPC=YES, so I am closing this issue.

— Reply to this email directly, view it on GitHub https://github.com/epics-modules/asyn/issues/163#issuecomment-1263819152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSYGNHYP3ECU4UFAFCN5GTWA4NRDANCNFSM6AAAAAAQZX3JBY . You are receiving this because you were mentioned.Message ID: @.***>

-- Lee Yang Lawrence Berkeley National Lab 1 Cyclotron Road, M/S 15R0217 Berkeley, California 97320 office:(510)486-7320