Build universal binary on Mac OS X 10.6?

From: Israel Brewster <israel(at)frontierflying(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Build universal binary on Mac OS X 10.6?
Date: 2009-12-01 23:43:20
Message-ID: F49F97AC-7C93-46A0-8C21-7751AEC980CA@frontierflying.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to create a static, universal (x86 and ppc at least - 64
bit architectures are optional) build of the PostgreSQL libraries on a
Mac OS X 10.6 machine. The command line I am using is as follows:

CFLAGS="-arch i386 -arch ppc -arch x86_64" ./configure --disable-shared

The configure runs fine, as does the build until it gets to the
following error:

gcc -no-cpp-precomp -arch i386 -arch ppc -arch x86_64 -Wall -Wmissing-
prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-
labels -fno-strict-aliasing -fwrapv -I../../../../src/include -c -o
heaptuple.o heaptuple.c
heaptuple.c: In function 'heap_fill_tuple':
heaptuple.c:196: error: duplicate case value
heaptuple.c:196: error: previously used here
heaptuple.c: In function 'heap_fill_tuple':
heaptuple.c:196: error: duplicate case value
heaptuple.c:196: error: previously used here
lipo: can't figure out the architecture type of: /var/tmp//ccKn3btt.out
make[4]: *** [heaptuple.o] Error 1
make[3]: *** [common-recursive] Error 2
make[2]: *** [access-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

I have tried both with PostgreSQL version 8.4.1 and 8.3.8 with the
same result. I really just need the library for my apps to link
against, I don't care if the server or client programs compile. What
am I doing wrong here? How can I get this to work? Thanks.

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-12-02 01:04:34 Re: Fwd: psql+krb5
Previous Message Howard Cole 2009-12-01 23:39:40 Re: Unexpected EOF on client connection