Skip to Content.
Sympa Menu

freetds - Re: [freetds] Problem cross compiling for iPhone (iOS 4)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Problem cross compiling for iPhone (iOS 4)
  • Date: Fri, 11 Feb 2011 16:31:09 +0100

Yes, it calls fopen but well... iOS should return NULL with errno set
to EPERM or ENOENT... FreeTDS handle correctly the NULL case!

freddy77

2011/2/11 Xander Maas (GMAIL) <xjmaas AT gmail.com>:
> Hi,
>
> Nope, not arm. I am trying to compile it for iOS 4.2. Seems the source
> wants to fopen locale.conf and iOS (iPhone/iPad) won;t allow it :(
>
> Regards,
>
> Xander
>
>
> On 11 feb 2011, at 15:30, Frediano Ziglio wrote:
>
>> 2011/2/11 Xander Maas (GMAIL) <xjmaas AT gmail.com>:
>>> Hi all,
>>>
>>> Took a while, but my work permits me to continue on this project.
>>>
>>> Right now I am using the 0.83.dev.20110125 snapshot. This compiles like a
>>> charm on my Mac. I created a universal library out of it, usable for arm
>>> (iPhone) and i386 (Simulator).
>>>
>>> I included the libs into my new project, which compiles without any
>>> problems or warnings. BUT (There is always one, isn't it?) when I try to
>>> test my app in the Simulator, the app crashes because there is a call to
>>> fopen in the function tds_get_locale.
>>>
>>
>> So calling fopen on arm always cause a crash ?? I don't think so...
>>
>>> Is there anyone who has seen the same?
>>>
>>> Regards,
>>>
>>> Xander
>>>
>>
>> Frediano
>>
>>> On 9 dec 2010, at 09:05, Frediano Ziglio wrote:
>>>
>>>> Try with recent snapshot. I committed a fix for this problem some days
>>>> ago.
>>>>
>>>> freddy77
>>>>
>>>> 2010/12/2 Xander Maas <xjmaas AT gmail.com>:
>>>>> Hi,
>>>>>
>>>>> For what I have seen, it is giving me the error when trying to figure
>>>>> out the length for __int64. I think this might be the problem as it
>>>>> gives me a length of 0 for __int64.
>>>>>
>>>>> The code does compile fine when building it for Mac OS X (i386 and
>>>>> X86_64) nd for the simulator. (which is native i386).
>>>>>
>>>>> But I'll give it a try when I am at work tomorrow.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Xander
>>>>>
>>>>> On 2 dec 2010, at 17:15, jklowden AT schemamania.org wrote:
>>>>>
>>>>>> On Thu, Dec 02, 2010 at 04:08:36PM +0100, Xander Maas wrote:
>>>>>>>
>>>>>>> ./configure --disable-shared
>>>>>>> --prefix=/Users/xjmaas/Desktop/FreeTDS_iOS/DEV_BUILD --disable-server
>>>>>>> --disable-odbc --disable-pool --host=arm-apple-darwin9
>>>>>>>
>>>>>>> And this is the error i get on stderr/stdout (console/terminal):
>>>>>>>
>>>>>>> configure:19642: error: cannot run test program while cross compiling
>>>>>>> See `config.log' for more details.
>>>>>>
>>>>>> OK.  I don't what the real problem is but I see where it's pointing.  
>>>>>> Cf. http://www.xjmaas.nl/config_log.txt lines 5640-5643.
>>>>>>
>>>>>> If you scrape out the C code from lines 5648-5726 and try to build it
>>>>>> using the command line on 5640, I wager you'll see an error.  Someone
>>>>>> who understands iOS4 might be able to correct the gcc invocation
>>>>>> options for you.  It seems to be having trouble finding glibc.
>>>>>>
>>>>>> The underlying problem might be the versions of autoconf & friends
>>>>>> that generate the configure script.  I wouldn't be surprised, because
>>>>>> they're old and iOS is new.  You might be better off using CVS to
>>>>>> create a development tree, and generating your own configure script
>>>>>> using newer autotools.  I'd be interested to hear if that works,
>>>>>> because I'm in the process of upgrading myself.
>>>>>>
>>>>>> --jkl
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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 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 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
>




Archive powered by MHonArc 2.6.24.

Top of Page