Build universal binary on Mac OS X 10.6? - Mailing list pgsql-general

From Israel Brewster
Subject Build universal binary on Mac OS X 10.6?
Date
Msg-id F49F97AC-7C93-46A0-8C21-7751AEC980CA@frontierflying.com
Whole thread Raw
Responses Re: Build universal binary on Mac OS X 10.6?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Build universal binary on Mac OS X 10.6?  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List 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
-----------------------------------------------


Attachment

pgsql-general by date:

Previous
From: "Bret"
Date:
Subject: Re: optimizing advice
Next
From: Craig Ringer
Date:
Subject: Re: Fwd: psql+krb5