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

Subject: Re: EPICS Base v3.14.12.1-rc1 compilation error
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 21 Apr 2011 10:21:04 -0500
Hi Ritesh,

On Thursday 21 April 2011 04:46:24 Ritesh Sugandhi wrote:
> During compilation , I get following message
> 
> /usr/bin/g++ -o antelope
> -L/home/ITER/sugandr/base-3.14.12.1-rc1/lib/linux-x86_64
> -Wl,-rpath,/home/ITER/sugandr/base-3.14.12.1-rc1/lib/linux-x86_64
> -m64                closure.o error.o lalr.o lr0.o main.o mkpar.o output.o
> reader.o skeleton.o symtab.o verbose.o warshall.o   -lCom
> /usr/lib64/libreadline.so.5: undefined reference to `PC'
> /usr/lib64/libreadline.so.5: undefined reference to `tgetflag'
> /usr/lib64/libreadline.so.5: undefined reference to `tgetent'
> /usr/lib64/libreadline.so.5: undefined reference to `UP'
> /usr/lib64/libreadline.so.5: undefined reference to `tputs'
> /usr/lib64/libreadline.so.5: undefined reference to `tgoto'
> /usr/lib64/libreadline.so.5: undefined reference to `tgetnum'
> /usr/lib64/libreadline.so.5: undefined reference to `BC'
> /usr/lib64/libreadline.so.5: undefined reference to `tgetstr'
> collect2: ld returned 1 exit status

Your version of Linux requires EPICS binaries (which use readline by default 
on Linux) to be linked with another library, most probably libncurses.  You 
configure that by editing configure/os/CONFIG_SITE.Common.linux-x86_64 and 
changing the setting for COMMANDLINE_LIBRARY to READLINE_NCURSES or possibly 
READLINE_CURSES (see the comments in that file).  The different Linux 
distributions need different settings so we can't make the default work for 
everyone.

Note that you will probably have to completely rebuild base ("make rebuild" 
from the top directory) after changing that setting.

- Andrew
-- 
An error is only a mistake if you don't learn from it.
When you learn something from it, it becomes a lesson.

References:
EPICS Base v3.14.12.1-rc1 compilation error Ritesh Sugandhi

Navigate by Date:
Prev: Re: EPICS Base v3.14.12.1-rc1 compilation error Eric Norum
Next: Handling of String Array in CaChannel library Ritesh Sugandhi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS Base v3.14.12.1-rc1 compilation error Eric Norum
Next: About ASG usage jun-ichi.odagiri
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·