freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Problem cross compiling for iPhone (iOS 4)
- From: "Xander Maas (GMAIL)" <xjmaas AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Problem cross compiling for iPhone (iOS 4)
- Date: Tue, 15 Feb 2011 14:10:26 +0100
Hi all,
It is still weird. I have cleaned everything, rebuild all libs, even tried
with only the simulator lib, but the simulator keeps giving me
Detected an attempt to call a symbol in system libraries that is not present
on the iPhone:
fopen$UNIX2003 called from function tds_get_locale in image
Is there any chance I can mail someone the XCode project to see if I made any
(noob-like) mistake? The archive is about 2 MB in size.
Regards,
Xander
On 14 feb 2011, at 22:45, Daniel Fazekas wrote:
> On Feb 14, 2011, at 19:51, Xander Maas wrote:
>
>> Got a version of the (simple) script I used to build the libraries:
>
> I've looked into it a bit and it's simply impossible for fopen to get
> changed to _fopen$UNIX2003 if you are building with the iPhoneSimulator
> headers.
>
> The only case that could ever happen is if you are targeting 32-bit Mac OS
> X 10.6, that is, the Mac OS SDK.
>
> In the file
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/sys/cdefs.h
>
> On line 257 it uncodinitonally sets this to 1 for the iPhoneSimulator:
> #define __DARWIN_ONLY_UNIX_CONFORMANCE 1
>
> Hence no $UNIX2003 suffix anywhere, no matter what:
> # if __DARWIN_ONLY_UNIX_CONFORMANCE
> # define __DARWIN_SUF_UNIX03 /* nothing */
> # else /* !__DARWIN_ONLY_UNIX_CONFORMANCE */
> # define __DARWIN_SUF_UNIX03 "$UNIX2003"
> # endif /* __DARWIN_ONLY_UNIX_CONFORMANCE */
>
> [...]
>> # make i686 (Simulator) target
> [...]
>> export LDFLAGS="-isysroot
>> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
>> -Wl,-syslibroot \
>> Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk"
>
> You are missing the “/” in front of /Developer here…
> But you can't even get past ./configure successfully with such an obvious
> typo.
> Could it be you didn't notice the build failing?
>
> Or maybe you just need to do “make clean” to make sure it actually rebuilds
> things.
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4)
, (continued)
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas (GMAIL), 02/14/2011
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4),
Xander Maas, 02/14/2011
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4),
Daniel Fazekas, 02/14/2011
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4),
Xander Maas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Frediano Ziglio, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Daniel Fazekas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Daniel Fazekas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas, 02/14/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas (GMAIL), 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Daniel Fazekas, 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas (GMAIL), 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Daniel Fazekas, 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas (GMAIL), 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Daniel Fazekas, 02/15/2011
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas, 02/15/2011
- Message not available
- Message not available
- Message not available
- Re: [freetds] Problem cross compiling for iPhone (iOS 4), Xander Maas (GMAIL), 02/16/2011
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4),
Xander Maas, 02/14/2011
-
Re: [freetds] Problem cross compiling for iPhone (iOS 4),
Daniel Fazekas, 02/14/2011
Archive powered by MHonArc 2.6.24.