Re: Compiling freetds on OS X 10.6
Craig Yoshida <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
OK, So in trying to get it to compile for 32-bit I used the following configure command: ./configure --disable-libiconv CFLAGS="-arch i386" but I still get the following error durning linking: gcc -D_THREAD_SAFE -arch i386 -Wdeclaration-after-statement -o .libs/fisql fisql.o terminal.o edit.o handlers.o interrupt.o ../../dblib/.libs/libsybdb.dylib ../../replacements/.libs/libreplacements.a ld: warning: in ../../dblib/.libs/libsybdb.dylib, file was built for unsupported file format which is not the architecture being linked (i386) Undefined symbols: ..... Is libsybdb.dylib a system dependency? And am I screwed because the system library does'nt come in a 32-bit version?. Or did my configure command not successfully make everything compile in the correct architecture. Thanks! -Craig On Jun 24, 2010, at 6:06 AM, Craig A. Berry wrote: > > On Jun 23, 2010, at 3:43 PM, Craig Yoshida wrote: > >> Hi all, >> >> I'm trying to get freetds to compile on OS X 10.6 for use with >> pymssql and the Enthought python distribution. I'm not concerned >> about ODBC drivers, etc. (should I be?). The Enthought Python >> distribution is 32-bit, so I've been trying to get freetds to >> compile as a 32-bit library as well, but I get errors during the >> linking step. Has anyone done this before and are willing to advise? > > Still slumming along on Leopard here, not Snow Leopard, but IIRC I now > have to configure with --disable-libiconv in order to force FreeTDS to > use its own iconv routines. I don't remember the details, but there's > some funny business about the iconv that comes with Mac OS X. At one > time I think --disable-libiconv was done by default on OS X; I'm not > sure if that was removed intentionally or fell by the wayside > accidentally (or if I simply misremember). > > This would only help if the link errors you're seeing are related to > iconv. Otherwise, people would need to see the exact details of those > errors in order to advise you. > > ________________________________________ > Craig A. Berry > mailto:[email protected] > > "... getting out of a sonnet is much more > difficult than getting in." > Brad Leithauser > > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds