Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B95172E2F87 for ; Thu, 3 Jan 2008 01:41:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 97698-04 for ; Thu, 3 Jan 2008 01:41:04 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 0CB322E2F04 for ; Thu, 3 Jan 2008 01:41:05 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m035f5C0028219; Thu, 3 Jan 2008 00:41:05 -0500 (EST) To: Chris Ruprecht cc: pgsql-admin@postgresql.org Subject: Re: MacOS X 10.5.1 and compiling for multiple Architectures In-reply-to: References: Comments: In-reply-to Chris Ruprecht message dated "Wed, 02 Jan 2008 23:10:59 -0500" Date: Thu, 03 Jan 2008 00:41:05 -0500 Message-ID: <28218.1199338865@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/33 X-Sequence-Number: 27807 Chris Ruprecht 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