Return-Path: Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 31 May 2011 22:36:10 +0200 (CEST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QRVfd-0005Um-GW for dm-crypt@saout.de; Tue, 31 May 2011 22:36:09 +0200 Received: from 128-222-37-58.emc.com ([128.222.37.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 May 2011 22:36:09 +0200 Received: from anirudh.takkallapally by 128-222-37-58.emc.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 May 2011 22:36:09 +0200 From: anirudh Date: Tue, 31 May 2011 20:35:57 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [dm-crypt] cross compile issue libpopt.so List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, i am trying to cross compile cryptsetup-1.2.0 for a 64 bit system on a debian vm. 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.