Re: Problem cross compiling for iPhone (iOS 4)

Xander Maas <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Daniel,

I had to edit the lines a bit, so this is my mistake when editing the script to post. I'll try again tomorrow at school.

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
> [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.