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

Subject: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
From: <[email protected]>
To: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>
Date: Fri, 13 Jun 2014 13:41:04 +0000

Hi Qingru,

 

Thanks for your emails.

I look after the two examples in exampleCPP.

 

Both examples, HelloWorld and ChannelArchiverService, currently link against expat. In fact HelloWorld doesn't need to.

 

So the quickest solution is to remove the line

 

USR_SYS_LIBS += expat

 

from HelloWorld/helloWorldApp/Makefile.

 

I'll make that change to the mercurial repo and it'll be in the next release.

 

However it sounds like you've got it to build by installing expat-devel. That'll still be useful if you try to build the ChannelArchiverService.

 

Dave

 

From: 米清茹 [mailto:[email protected]]
Sent: 13 June 2014 07:00
To: LYNCH, Damien; Jani Hakala; Hinko Kocevar; [email protected]
Subject:
答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

 

Hi Lynch, Jani, Hinko,

You are right! The expat-devel package hasn't installed. After I installed the expat-devel package with yum, libexpat.so was also installed into /usr/lib64.

Thank you very much!


Qingru Mi


发件人: LYNCH, Damien [[email protected]]
发送时间: 2014612 14:00
: 米清茹; [email protected]
主题: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

Hi Qingru,

 

Glad to hear it’s working. I suspect the real problem is the expat-devel package is not installed.

 

Damien

 

From: 米清茹 [mailto:[email protected]]
Sent: Thursday, 12 June 2014 3:32 PM
To: LYNCH, Damien; [email protected]
Subject:
答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

 

Hi Lynch,
    There wasn't libexpat.so. After I created the link, the HelloWorld was built without any error.
    Thank you very much!

Qingru Mi
   


发件人: LYNCH, Damien [[email protected]]
发送时间: 2014612 11:59
: 米清茹; [email protected]
主题: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

Although you don’t mention libexpat.so. Does that exist?  If not you could create it as a link to libexpat.so.1.

 

From: LYNCH, Damien
Sent: Thursday, 12 June 2014 1:52 PM
To: LYNCH, Damien; ???; [email protected]
Subject: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

 

Sorry, ignore that I missed I can find libexpat.so.1 and libexpat.so.1.5.2 in /lib64 in your message.

 

From: [email protected] [mailto:[email protected]] On Behalf Of LYNCH, Damien
Sent: Thursday, 12 June 2014 1:50 PM
To: ???; [email protected]
Subject: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]

 

Hi,

 

I assume expat is the Expat XML parser library. Do you have that installed?

 

Damien

 

From: [email protected] [mailto:[email protected]] On Behalf Of ???
Sent: Thursday, 12 June 2014 1:29 PM
To: [email protected]
Subject: Compiling helloWorld of EPICS V4 on 64bit linux had a link error

 

Hi,

    I compiled the EPICS-CPP-4.3.0 on 64bit centos6.5. As the HelloWorld in exampleCPP was compiled, an error occured. The error information shows below:

/usr/bin/g++ -o HelloService  -L/BLC/epics/v4/EPICS-CPP-4.3.0/pvAccessCPP/lib/linux-x86_64 -L/BLC/epics/v4/EPICS-CPP-4.3.0/pvDataCPP/lib/linux-x86_64 -Wl,-rpath,/BLC/epics/v4/EPICS-CPP-4.3.0/pvAccessCPP/lib/linux-x86_64 -Wl,-rpath,/BLC/epics/v4/EPICS-CPP-4.3.0/pvDataCPP/lib/linux-x86_64       -m64               HelloServiceMain.o HelloService.o    -lpvAccess -lpvData  -lexpat
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[2]: *** [HelloService] Error 1
make[2]: Leaving directory `/BLC/epics/v4/EPICS-CPP-4.3.0/exampleCPP/HelloWorld/helloWorldApp/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/BLC/epics/v4/EPICS-CPP-4.3.0/exampleCPP/HelloWorld/helloWorldApp'
make: *** [helloWorldApp.install] Error 2

I can find libexpat.so.1 and libexpat.so.1.5.2 in /lib64.

How to resolve the problem?


Qingru Mi
SSRF


 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 



References:
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] LYNCH, Damien
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] LYNCH, Damien
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] LYNCH, Damien
答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] 米清茹
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] LYNCH, Damien
答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] 米清茹

Navigate by Date:
Prev: 答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] 米清茹
Next: RE: Visual Studio 2010 problem and solution Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: 答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL] 米清茹
Next: EtherIP with CIP Adapter Devices John Dobbins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·