[dm-crypt] cross compile issue libpopt.so
anirudh.takkallapally at gmail.com
Tue May 31 22:35:57 CEST 2011
i am trying to cross compile cryptsetup-1.2.0 for a 64 bit system on a
The build fails saying "/usr/lib/libpopt.so: could not read symbols: File in
wrong format". Looks like it is trying to read libpopt.so file that is present
in /usr/lib space instead of trying to read it from /stagin_dir/...
The file under /usr/lib is a 32 bit file and that's the reason its giving an
error. If i remove the file under /usr/lib/libpopt, it compiles fine.
It is picking up the right file under "/staging_dir/.." in this case.
I tried to set the LD_LIBRARY_PATH environment variable to /stagin_dir/ but it
is not working either.
Is there a way to build a 64 bit version of cryptestup-1.2.0 while a 32 bit
version of the libpopt.so file is present under /usr/lib?
Thanks in advance for your help.
More information about the dm-crypt