Configure Freetds on 64bit Xserve Failed.

Tony Wang <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Dear all,
	I configured Apache built in Leopard 10.5.2 running on 64bit Xserve,  
but failed. Is there any suggestions about how to configure Freetds on  
Leopard by -arch ppc -arch ppc 64 -arch i386 -arch x86_64??


I did it like this:

$ cd freetds-0.64

$ ACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch  
i386 -arch x86_64 -g -Os -no-cpp-precomp" CCFLAGS="-arch ppc -arch  
ppc64 -arch i386 -arch x86_64 -g -O -pipe" CXXFLAGS="-arch ppc -arch  
ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch  
ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --enable-shared


$make

(but get errors and stop here)

aking all in include
make  all-am
echo '#define FREETDS_SYSCONFDIR "/usr/local/etc"' >freetds_sysconfdir.h
Making all in src
Making all in replacements
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H - 
I. -I. -I../../include -I../../include  -D_FREETDS_LIBRARY_SOURCE - 
DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes  
-Wmissing-prototypes -Wno-long-long  -arch ppc -arch ppc64 -arch i386 - 
arch x86_64 -g -Os -no-cpp-precomp -MT iconv.lo -MD -MP -MF ".deps/ 
iconv.Tpo" -c -o iconv.lo iconv.c; \
	then mv -f ".deps/iconv.Tpo" ".deps/iconv.Plo"; else rm -f ".deps/ 
iconv.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include - 
D_FREETDS_LIBRARY_SOURCE -DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1  
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -arch  
ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -no-cpp-precomp -MT  
iconv.lo -MD -MP -MF .deps/iconv.Tpo -c iconv.c  -fno-common -DPIC - 
o .libs/iconv.o
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with  
multiple -arch flags
make[2]: *** [iconv.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


What I did wrong or what should I do?

Thanks a lot,
Tony
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.