X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3AABB5292D for ; Wed, 8 Jun 2005 13:55:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83988-09 for ; Wed, 8 Jun 2005 16:55:20 +0000 (GMT) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by svr1.postgresql.org (Postfix) with ESMTP id EDB04528AE for ; Wed, 8 Jun 2005 13:55:16 -0300 (ADT) Received: from san.rr.com (cpe-204-210-30-137.san.res.rr.com [204.210.30.137]) by ms-smtp-02-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id j58GtEX7019863 for ; Wed, 8 Jun 2005 09:55:14 -0700 (PDT) Message-ID: <42A722C2.E5CDE439@san.rr.com> Date: Wed, 08 Jun 2005 09:54:27 -0700 From: Wayne Schroeder X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Is there a way to build 32-bit mode on 64-bit Linux boxes? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.866 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200506/47 X-Sequence-Number: 17802 I'm trying to build postgresql and odbc from source on x86_64 Linux hosts but I need to run them in 32-bit addressing mode since my app is not 64-bit ready yet. Simple test programs can be built as 32-bit apps (if the libraries are installed) via gcc's -m32 option. I checked for postgres configure options to do something similar, but didn't find anything. I experimented with setting environment variable CFLAGS to -m32 and it does seem to be picked up by configure/make, but then 'ld' gets errors: /usr/bin/ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o printtup.o scankey.o tupdesc.o /usr/bin/ld: Relocatable linking with relocations from format elf32-i386 (heaptuple.o) to format elf64-x86-64 (SUBSYS.o) is not supported So ld needs some additional options of some sort, but it looks like that would involve some complicated specifications of various libraries. I checked the archives, but didn't see anything about this. Is there any way to do this? Any plans to add it? Any hints on what I could try? Thanks much, - Wayne - (This is my home email address as I was unable to post from work (schroede@sdsc.edu)) http://users.sdsc.edu/~schroede SDSC Storage Resource Broker group http://www.sdsc.edu/srb