Re: Compiling freetds on OS X 10.6

Merle Reinhart <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Craig,

When I was building freetds for both 32 and 64-bit on Leopard  
(executables and libraries work on Snow Leopard as well) several  
months ago, I had to use both CFLAGS and LDFLAGS set with the -arch  
version or as I recall I had link problems.  I welded the libraries  
and executables together so that both 32 and 64-bit is available for  
whatever the applications needed with lipo.

Merle





> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 24 Jun 2010 14:00:31 -0700
> From: Craig Yoshida <[email protected]>
> To: FreeTDS Development Group <[email protected]>
> Subject: Re: [freetds] Compiling freetds on OS X 10.6
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> 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
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.