pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Ruprecht <chris@ruprecht.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: MacOS X 10.5.1 and compiling for multiple Architectures
Date: Thu, 03 Jan 2008 00:41:05 -0500
Message-ID: <28218.1199338865@sss.pgh.pa.us> (raw)
In-Reply-To: <C76810EF-CE14-4090-82BA-C9B7504DBB22@ruprecht.org>
References: <C76810EF-CE14-4090-82BA-C9B7504DBB22@ruprecht.org>
Chris Ruprecht <chris@ruprecht.org> writes:
> I am trying to build PG 8.3Beta4 for MacOS Leopard.
> It works fine when using the default i386 architecture. However, this
> is not an option as Apple, in their wisdom, have chosen to build
> Apache as a 64-bit application and their PHP 5.2.4 module without PG
> support as a Intel 32, Intel 64, PPC 32 and PPC 64 type module. For
> those that don't know: Under MacOS, it is possible to build
> executables that will run native on multiple architectures, all
> contained in a single file - kind of weird, and pretty bloated.
You're not going to have a lot of luck building PG for those four
architectures from a single build run --- you really need a different
pg_config.h for each case. The specific failure you're seeing seems
to stem from SIZEOF_DATUM not agreeing with sizeof(Datum), but you
can bet your bottom dollar that that's just the tip of the iceberg.
I'd be somewhat interested to see a build approach that supports this,
but I don't want to spend any of my own time on it. I have a vague
suspicion that Apple probably built PHP four separate times and then
melded the executables after the fact.
regards, tom lane
view thread (6+ messages) latest in thread
Message-ID: <28218.1199338865@sss.pgh.pa.us> Permalink: ../28218.1199338865@sss.pgh.pa.us/ Also on: postgresql.org/message-id/28218.1199338865@sss.pgh.pa.us ·
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 using the --to and --cc options: reply via email To: pgsql-admin@postgresql.org Cc: tgl@sss.pgh.pa.us, chris@ruprecht.org Subject: Re: MacOS X 10.5.1 and compiling for multiple Architectures In-Reply-To: <28218.1199338865@sss.pgh.pa.us> * 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