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 E53E05280B for ; Wed, 8 Jun 2005 14:04:39 -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 86849-10 for ; Wed, 8 Jun 2005 17:04:37 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 3D23552849 for ; Wed, 8 Jun 2005 14:04:37 -0300 (ADT) Received: from [192.168.1.52] (fc1smp [66.93.38.87]) (authenticated bits=0) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j58Gsea3004149; Wed, 8 Jun 2005 09:54:41 -0700 Message-ID: <42A72522.3060108@commandprompt.com> Date: Wed, 08 Jun 2005 10:04:34 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wayne Schroeder Cc: pgsql-admin@postgresql.org Subject: Re: Is there a way to build 32-bit mode on 64-bit Linux boxes? References: <42A722C2.E5CDE439@san.rr.com> In-Reply-To: <42A722C2.E5CDE439@san.rr.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/48 X-Sequence-Number: 17803 Wayne Schroeder wrote: > 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. What does your app care? Unless you are writing the app directly to libpq? Which version of Linux are you running? Sincerely, Joshua D. Drake > > 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 > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq -- Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240 PostgreSQL Replication, Consulting, Custom Programming, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/