pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Wayne Schroeder <waynes@san.rr.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is there a way to build 32-bit mode on 64-bit Linux boxes?
Date: Wed, 08 Jun 2005 10:04:34 -0700
Message-ID: <42A72522.3060108@commandprompt.com> (raw)
In-Reply-To: <42A722C2.E5CDE439@san.rr.com>
References: <42A722C2.E5CDE439@san.rr.com>

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/



view thread (6+ messages)  latest in thread

Message-ID: <42A72522.3060108@commandprompt.com>
Permalink:  ../42A72522.3060108@commandprompt.com/
Also on:    postgresql.org/message-id/42A72522.3060108@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, waynes@san.rr.com
  Subject: Re: Is there a way to build 32-bit mode on 64-bit Linux boxes?
  In-Reply-To: <42A72522.3060108@commandprompt.com>
  References: <42A722C2.E5CDE439@san.rr.com> <42A72522.3060108@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox