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: ezca libray
From: "Mark Rivers" <[email protected]>
To: "Patrick Thomas" <[email protected]>, <[email protected]>
Date: Tue, 2 Jun 2009 07:51:11 -0500
Hi Patrick,
 
Which architecture you build EPICS base and extensions for is controlled by the environment variable EPICS_HOST_ARCH.  I suspect you built libezca with EPICS_HOST_ARCH=linux-x86.  For 64-bits you need it to be linux-86_64.  
 
You can tell which version the .so file is with the Linux "file" command:
 
corvette:extensions_devel/lib/linux-x86>file libezca.so 
libezca.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

You can also just look at what directory it is in.  EPICS puts 32-bit .so libraries in lib/linux-x86, while 64-bit libraries are in lib/linux-x86_64.
 
Mark
 

________________________________

From: [email protected] on behalf of Patrick Thomas
Sent: Mon 6/1/2009 11:04 PM
To: [email protected]
Subject: ezca libray



Hi,

I'm trying to use the ezca library in a C program, but when I execute it
I get the error:
error while loading shared libraries: libezca.so: wrong elf class:
ELFCLASS32

I guess this means that libezca was compiled as a 32 bit library, while
the program is 64 bit? I thought I had compiled ezca as 64 bit. Is there
some flag I am missing, either when I compile the libezca extensions or
the program itself?

Thank you,
Patrick




References:
ezca libray Patrick Thomas

Navigate by Date:
Prev: Re: problem in epics installation Ralph Lange
Next: Re: problem in epics installation Andrew Johnson
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: ezca libray Patrick Thomas
Next: What is the maximum frequency for db scan? 汪启胜
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 ·