Re: [OSX] unixODBC and universal binaries build problem - Mailing list pgsql-odbc
From | Lothar |
---|---|
Subject | Re: [OSX] unixODBC and universal binaries build problem |
Date | |
Msg-id | 66BBCBA6-D4BF-4D39-84C3-4246DD19CB2F@lollisoft.de Whole thread Raw |
In response to | Re: [OSX] unixODBC and universal binaries build problem (Dave Page <dpage@pgadmin.org>) |
Responses |
Re: [OSX] unixODBC and universal binaries build problem
|
List | pgsql-odbc |
Am 17.06.2012 um 11:29 schrieb Dave Page: > > > On Sunday, June 17, 2012, Lothar wrote: > Hi, > > To use PostGreSQL with unixODBC in an application compiled as universal binary I try to build the unixODBC 2.2.12 versionof unixODBC in a universal binary > for i386 and ppc targeting OSX 10.3 compatibility. > > While configuring is successful, the build fails with the following message: > > gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags > > Any ideas to overcome this > > Hi > > Try configuring with --disable-dependecy-tracking > > Regards, Dave Then I get this: mac:unixODBC-2.2.12 lothar$ CC="gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"CXX="g++ -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"./configure --enable-gui=no --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=10.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... 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=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk accepts -g...yes checking for gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk option to acceptANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc -arch i386 -arch ppc -mmacosx-version-min=10.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$ The same when I try this: mac:unixODBC-2.2.12 lothar$ CFLAGS="gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"LDFLAGS="g++ -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"./configure --enable-gui=no --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
pgsql-odbc by date: