Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id A4B75AD7E2F for ; Sun, 17 Jun 2012 09:55:15 -0300 (ADT) Received: from smtp-out003.kontent.com ([81.88.40.217]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SgF0c-0003UT-4G for pgsql-odbc@postgresql.org; Sun, 17 Jun 2012 12:55:15 +0000 Received: from jedi.behrens.de (ip-109-90-242-68.unitymediagroup.de [109.90.242.68]) (Authenticated sender: lollisoft_de_001@smtp-out003.kontent.com) by smtp-out003.kontent.com (Postfix) with ESMTPA id B577A4000342 for ; Sun, 17 Jun 2012 14:54:59 +0200 (CEST) Received: from [127.0.0.1] (unknown [192.168.100.2]) by jedi.behrens.de (Postfix) with ESMTP id 1AFD21B953 for ; Sun, 17 Jun 2012 14:54:58 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: [OSX] unixODBC and universal binaries build problem From: Lothar In-Reply-To: Date: Sun, 17 Jun 2012 14:54:58 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <66BBCBA6-D4BF-4D39-84C3-4246DD19CB2F@lollisoft.de> References: To: pgsql-odbc@postgresql.org X-Mailer: Apple Mail (2.1084) X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/26 X-Sequence-Number: 10882 Am 17.06.2012 um 11:29 schrieb Dave Page: >=20 >=20 > On Sunday, June 17, 2012, Lothar wrote: > Hi, >=20 > To use PostGreSQL with unixODBC in an application compiled as = universal binary I try to build the unixODBC 2.2.12 version of unixODBC = in a universal binary > for i386 and ppc targeting OSX 10.3 compatibility. >=20 > While configuring is successful, the build fails with the following = message: >=20 > gcc-4.0: -E, -S, -save-temps and -M options are not allowed with = multiple -arch flags >=20 > Any ideas to overcome this >=20 > Hi >=20 > Try configuring with --disable-dependecy-tracking >=20 > Regards, Dave=20 Then I get this: mac:unixODBC-2.2.12 lothar$ CC=3D"gcc -arch i386 -arch ppc = -mmacosx-version-min=3D10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" = CXX=3D"g++ -arch i386 -arch ppc -mmacosx-version-min=3D10.3 -isysroot = /Developer/SDKs/MacOSX10.4u.sdk" ./configure --enable-gui=3Dno = --disable-dependecy-tracking checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for gawk... (cached) awk checking for bison... bison -y checking for gcc... gcc -arch i386 -arch ppc -mmacosx-version-min=3D10.3 = -isysroot /Developer/SDKs/MacOSX10.4u.sdk checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...=20 checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -arch i386 -arch ppc -mmacosx-version-min=3D10.3 = -isysroot /Developer/SDKs/MacOSX10.4u.sdk accepts -g... yes checking for gcc -arch i386 -arch ppc -mmacosx-version-min=3D10.3 = -isysroot /Developer/SDKs/MacOSX10.4u.sdk option to accept ANSI C... = none needed checking for style of include used by make... GNU checking dependency style of gcc -arch i386 -arch ppc = -mmacosx-version-min=3D10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk... = gcc checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. mac:unixODBC-2.2.12 lothar$=20 The same when I try this: mac:unixODBC-2.2.12 lothar$ CFLAGS=3D"gcc -arch i386 -arch ppc = -mmacosx-version-min=3D10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" = LDFLAGS=3D"g++ -arch i386 -arch ppc -mmacosx-version-min=3D10.3 = -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure --enable-gui=3Dno = --disable-dependecy-tracking checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for gawk... (cached) awk checking for bison... bison -y checking for gcc... gcc checking for C compiler default output file name... configure: error: C = compiler cannot create executables See `config.log' for more details. Thanks, it may be that I have to go the lipo way or kill support for = older OSX versions. -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de Lothar Behrens Ginsterweg 4 65760 Eschborn