Re: Problem cross compiling for iPhone (iOS 4)
"Xander Maas (GMAIL)" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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 > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds