freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Craig Yoshida <craigyk AT scripps.edu>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Compiling freetds on OS X 10.6
- Date: Fri, 25 Jun 2010 12:10:49 -0700
Oooh,
My understanding is that with Snow Leopard a lot of libs were stripped of
their 32-bit code to save space, so maybe that it the problem I'm running
into if libsybdb is a system library?
On Jun 25, 2010, at 10:56 AM, Merle Reinhart wrote:
> 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 <craigyk AT scripps.edu>
>> To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
>> Subject: Re: [freetds] Compiling freetds on OS X 10.6
>> Message-ID: <2A6A4D2A-789A-4E36-8F78-9224EBF804A8 AT scripps.edu>
>> 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:craigberry AT mac.com
>>>
>>> "... getting out of a sonnet is much more
>>> difficult than getting in."
>>> Brad Leithauser
>>>
>>> _______________________________________________
>>> FreeTDS mailing list
>>> FreeTDS AT lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] Compiling freetds on OS X 10.6,
Craig Yoshida, 06/23/2010
-
Re: [freetds] Compiling freetds on OS X 10.6,
Craig A. Berry, 06/24/2010
- Re: [freetds] Compiling freetds on OS X 10.6, Craig Yoshida, 06/24/2010
- <Possible follow-up(s)>
-
Re: [freetds] Compiling freetds on OS X 10.6,
Merle Reinhart, 06/25/2010
- Re: [freetds] Compiling freetds on OS X 10.6, Craig Yoshida, 06/25/2010
-
Re: [freetds] Compiling freetds on OS X 10.6,
Craig A. Berry, 06/24/2010
Archive powered by MHonArc 2.6.24.