Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'skipping': 0.07; 'python': 0.07; '32-bit': 0.09; 'dynamically': 0.09; 'gcc': 0.09; 'directory:': 0.16; 'elf': 0.16; 'incompatible': 0.16; 'solution?': 0.16; 'stripped': 0.16; 'subject:Compile': 0.16; 'subject:bit': 0.16; 'object,': 0.19; '(on': 0.23; 'wrote': 0.25; 'version': 0.25; 'correct': 0.26; "i'm": 0.26; 'looks': 0.28; 'shared': 0.29; 'compiling': 0.31; 'servers.': 0.31; 'to:addr :python-list': 0.32; 'thank': 0.32; "i've": 0.33; 'module': 0.33; 'uses': 0.34; 'file.': 0.34; 'there': 0.35; 'question': 0.35; 'header:User-Agent:1': 0.35; 'source,': 0.35; 'hello,': 0.36; 'skip:- 10': 0.37; 'run': 0.37; 'but': 0.38; 'to:addr:python.org': 0.39; 'works': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'closed': 0.60; 'received:hu': 0.84; 'subject:32bit': 0.84 X-Spam-Score: -1.317 X-Spam-Level: X-Spam-Status: No, score=-1.317 tagged_above=-20 required=4 tests=[AWL=0.052, BAYES_00=-2.599, DNS_FROM_OPENWHOIS=1.13, RDNS_DYNAMIC=0.1] Date: Sun, 1 May 2011 22:14:14 +0200 From: =?utf-8?Q?Heged=C3=BCs?= Ervin To: python-list@python.org Subject: Compile 32bit C-lib on 64 bit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304280864 news.xs4all.nl 41117 [::ffff:82.94.164.166]:48382 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4413 Hello, this is not a "clear" Python question - I've wrote a module in C, which uses a 3rd-party lib - it's a closed source, I just get the .so, .a and a header file. Looks like it works on 32bit (on my desktop), but it must be run on 64bit servers. When I'm compiling it on 64bit, gcc says: /usr/bin/ld: skipping incompatible /lib32/lib3rdpartyCrypt.so when searching for -l3rdpartyCrypt There _is_ the .so in /lib32 directory: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped What is the correct solution? thank you: a.