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

Subject: Re: alarm handler on base 3-14-11
From: Matthieu Bec <[email protected]>
To: Patrick Thomas <[email protected]>
Cc: [email protected]
Date: Wed, 23 Sep 2009 23:49:30 -0400

Hi Patrick,

try running ldconfig (as root), that might help fix missing softlink etc.
and then rebuild as normal


On 09/23/09 23:38, Patrick Thomas wrote:
I'm not sure. I see the path to /usr/lib64 being used by make, so I'm
confused why it wouldn't find it there.

/usr/bin/g++ -o alh
-L/users/thomas/epics/base/base-3-14-11/lib/linux-x86_64 -L/usr/lib64
-Wl,-rpath,/users/thomas/epics/base/base-3-14-11/lib/linux-x86_64
-Wl,-rpath,/usr/lib64 -m64 alCA.o acknowledge.o alAudio.o alarm.o
alCaCommon.o alConfig.o alFilter.o alLib.o alLog.o alView.o alh.o
awAct.o awAlh.o awEdit.o awView.o axArea.o axRunW.o axSubW.o browser.o
current.o dialog.o file.o force.o guidance.o heartbeat.o help.o line.o
mask.o process.o property.o scroll.o showmask.o sllLib.o beepSevr.o
noAck.o -lca -lCom -lXmu -lXm -lXt -lX11 -lXp -lpthread -lreadline
-lncurses -lm -lrt -ldl -lgcc
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[3]: *** [alh] Error 1
make[3]: Leaving directory
`/users/thomas/epics/extensions/src/alh1_2_24/O.linux-x86_64'
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory `/users/thomas/epics/extensions/src/alh1_2_24'
make[1]: *** [alh1_2_24.install] Error 2
make[1]: Leaving directory `/users/thomas/epics/extensions/src'
make: *** [src.install] Error 2



Zhichu Chen wrote:
Then maybe your /usr/lib(64) is not included in the LIB variable. It
happened to me before, when I was compiling EDM on a 64bit ubuntu
using GCC 4.3.3, it can't find libXm, blahblah. Well, since that's not
my laptop and I'm not supposed to jeopardize the system environment, I
just make some symbolic links to /base/lib so it can move on to the
next step. I'm not sure if this message could be helpful.

On Thu, Sep 24, 2009 at 10:35 AM, Patrick Thomas
<[email protected]> wrote:
There is a copy there as well.

Mark Rivers wrote:
I think that is the 32-bit version, and you need the 64-bit version,
which
will be in usr/lib64
Mark

________________________________

From: [email protected] on behalf of Patrick Thomas
Sent: Wed 9/23/2009 9:02 PM
To: Zhichu Chen
Cc: [email protected]
Subject: Re: alarm handler on base 3-14-11



I think it is installed, there is a libncurses.so.5 file in /usr/lib.

Zhichu Chen wrote:

Install ncurses library by yourself.

On Thu, Sep 24, 2009 at 9:47 AM, Patrick Thomas
<[email protected]> wrote:

Thank you, that seems to have worked. However, now it errors on
'cannot
find
-lncurses' for g++ -o alh.

Mark Rivers wrote:

This is a common change required in 3.14.11.
You need to "#include menuYesNo.h" and YES needs to be changed to
menuYesNoYES.
Mark

________________________________

From: [email protected] on behalf of Patrick Thomas
Sent: Wed 9/23/2009 8:00 PM
To: [email protected]
Subject: alarm handler on base 3-14-11



Hi,

I was wondering, I get a compile error on force.c when running
make on
the alarm handler with epics-3-14-11, on 64 bit linux:

/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
-D_XOPEN_SOURCE=500 -D_X86_64_ -DUNIX -D_BSD_SOURCE -Dlinux
-D_REENTRANT -O3 -Wall -m64 -g -I. -I../O.Common -I.
-I../os/default -I.. -I../../../include/os/Linux -I../../../include
-I/users/thomas/epics/base/base-3-14-11/include/os/Linux
-I/users/thomas/epics/base/base-3-14-11/include -I../os/Linux
-I../os/default -I/usr/include -I/usr/include/X11 ../force.c
../force.c: In function 'forcePVUpdateFields':
../force.c:1028: error: 'YES' undeclared (first use in this
function)
../force.c:1028: error: (Each undeclared identifier is reported only
once
../force.c:1028: error: for each function it appears in.)
make[2]: *** [force.o] Error 1
make[2]: Leaving directory
`/users/thomas/epics/extensions/src/alh1_2_24/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory
`/users/thomas/epics/extensions/src/alh1_2_24'
make: *** [alh1_2_24.install] Error 2

Thank you,
Patrick













--
Matthieu Bec              Gemini Observatory
Tel: +56 51 205785        c/o AURA, Casilla 603
Fax: +56 51 205650        La Serena, Chile

Replies:
Re: alarm handler on base 3-14-11 Patrick Thomas
References:
alarm handler on base 3-14-11 Patrick Thomas
RE: alarm handler on base 3-14-11 Mark Rivers
Re: alarm handler on base 3-14-11 Patrick Thomas
Re: alarm handler on base 3-14-11 Zhichu Chen
Re: alarm handler on base 3-14-11 Patrick Thomas
RE: alarm handler on base 3-14-11 Mark Rivers
Re: alarm handler on base 3-14-11 Patrick Thomas
Re: alarm handler on base 3-14-11 Zhichu Chen
Re: alarm handler on base 3-14-11 Patrick Thomas

Navigate by Date:
Prev: Re: alarm handler on base 3-14-11 Patrick Thomas
Next: Re: alarm handler on base 3-14-11 Patrick Thomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: alarm handler on base 3-14-11 Patrick Thomas
Next: Re: alarm handler on base 3-14-11 Patrick Thomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·