EPICS problem in linux-x86

本文解决了EPICS系统中遇到的/libreadline.so.5库出现未定义引用的问题,通过配置文件CONFIG_SITE.Common.linux-x86或CONFIG_SITE.Common.linux-x86_64来指定正确的命令行库依赖。

EPICS

> /usr/lib/libreadline.so.5: undefined reference to `PC'
> /usr/lib/libreadline.so.5: undefined reference to `tgetflag'
> /usr/lib/libreadline.so.5: undefined reference to `tgetent'
> /usr/lib/libreadline.so.5: undefined reference to `UP'
> /usr/lib/libreadline.so.5: undefined reference to `tputs'
> /usr/lib/libreadline.so.5: undefined reference to `tgoto'
> /usr/lib/libreadline.so.5: undefined reference to `tgetnum'
> /usr/lib/libreadline.so.5: undefined reference to `BC'
> /usr/lib/libreadline.so.5: undefined reference to `tgetstr'

=========================


In CONFIG_SITE.Common.linux-x86 (or CONFIG_SITE.Common.linux-x86_64 as appropriate) uncomment the line that gets NCURSES:

...
# No other libraries needed (recent Fedora, Ubuntu etc.):
#COMMANDLINE_LIBRARY = READLINE

# Needs -lncurses (RHEL 5 etc.):
COMMANDLINE_LIBRARY = READLINE_NCURSES

# Needs -lcurses (older versions)
#COMMANDLINE_LIBRARY = READLINE_CURSES
.

转载于:https://www.cnblogs.com/greencolor/archive/2012/02/23/2365617.html

make[1]: Entering directory '/home/ubuntu/EPICS/support/StreamDevice/configure' perl -CSD /home/ubuntu/EPICS/base-7.0.9/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../.. mkdir -p O.Common make -C O.linux-x86_64 -f ../Makefile TOP=../.. \ T_A=linux-x86_64 install make[2]: Entering directory '/home/ubuntu/EPICS/support/StreamDevice/configure/O.linux-x86_64' perl -CSD /home/ubuntu/EPICS/base-7.0.9/bin/linux-x86_64/convertRelease.pl checkRelease make[2]: Leaving directory '/home/ubuntu/EPICS/support/StreamDevice/configure/O.linux-x86_64' make[1]: Leaving directory '/home/ubuntu/EPICS/support/StreamDevice/configure' make -C ./src install make[1]: Entering directory '/home/ubuntu/EPICS/support/StreamDevice/src' perl -CSD /home/ubuntu/EPICS/base-7.0.9/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../.. mkdir -p O.Common make -C O.linux-x86_64 -f ../Makefile TOP=../.. \ T_A=linux-x86_64 install make[2]: Entering directory '/home/ubuntu/EPICS/support/StreamDevice/src/O.linux-x86_64' Creating ../O.Common/StreamVersion.h perl -CSD ../makeStreamVersion.pl ../O.Common/StreamVersion.h /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -DUSE_TYPED_RSET -DSTREAM_INTERNAL -O3 -g -Wall -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/gcc -I../../include/os/Linux -I../../include -I/home/ubuntu/EPICS/support/asyn/include -I/home/ubuntu/EPICS/base-7.0.9/include/compiler/gcc -I/home/ubuntu/EPICS/base-7.0.9/include/os/Linux -I/home/ubuntu/EPICS/base-7.0.9/include -MM -MF StreamEpics.d ../StreamEpics.cc /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -DUSE_TYPED_RSET -DSTREAM_INTERNAL -O3 -g -Wall -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/gcc -I../../include/os/Linux -I../../include -I/home/ubuntu/EPICS/support/asyn/include -I/home/ubuntu/EPICS/base-7.0.9/include/compiler/gcc -I/home/ubunt
最新发布
03-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值