g+
g+ Communities
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  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: edm and other extensions on 64-bit SL machines
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: Pierrick Hanlet <hanlet@fnal.gov>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 03 Sep 2012 09:54:10 +0200
Hi Pierrick,

If your configuration configure/* contains entries like X11_LIB=/usr/lib then the linker will search in the wrong path on a 64 bit system.

If you want to use the same configuration files for both, 64 and 32 bit systems, you need separate files for linux-x86 and linux-x86_64. In configure/CONFIG_EXTENSIONS I have these lines:

include $(TOP)/configure/RELEASE
-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH)

This allows me to put X11_LIB=/usr/lib into RELEASE but X11_LIB=/usr/lib64 into RELEASE.linux-x86_64

Regards,
Dirk


Pierrick Hanlet wrote:
  Hi,
I'm using 3.14.12 on a 64-bit Scientific Linux machine. I'm attempting to build extensions such as edm, but always fail when the linker asks for libraries such as libXm, etc. The message states that it is searching for the libraries in /usr/lib, but as a 64-bit machine, these libraries are in /usr/lib64. I've searched tech-talk archives, but have been unsuccessful in finding what switch (flag) I need to set to force it to link to the correct libraries. Would
someone kindly point me in the right direction?
Thanks,
Pierrick

--
"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford
_______________________________________________________________
*Pierrick Hanlet*
IIT/Fermilab
+1-630-840-5555 (FNAL)
+1-312-567-5745 (IIT)
+1-630-697-8758/+44-79-48-860-197 (US/UK mobile)


References:
edm and other extensions on 64-bit SL machines Pierrick Hanlet

Navigate by Date:
Prev: Re: edm and other extensions on 64-bit SL machines Pierrick Hanlet
Next: Re: caput off-by-one bug for string as array of chars Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: edm and other extensions on 64-bit SL machines Andrew Johnson
Next: Compilation error EPICS for RTEMS Bruno Seiva Martins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·