SQLClient
SQLClient copied to clipboard
libfreetds.a not built for OS X anymore
Hi Martin
Your SQLClient wrapper has been very useful so far. Thanks!
I know it is "for iOS" but until libfreetds.a was updated a month ago, things built fine on OS X.
However now: "URGENT: building for OSX, but linking in object file libfreetds.a(dblib.o) built for iOS. Note: This will be an error in the future."
Earlier you indicated you built freetds using a build.sh here: https://github.com/patchhf/FreeTDS-iOS
But that repo is gone (and ... for iOS).
Do you have a libfreetds.a build for OS X?
Dennis
I have a fork at https://github.com/martinrybak/FreeTDS-iOS. Can you submit a PR for updating it for OS X?
Hi Martin
I have a fork at https://github.com/martinrybak/FreeTDS-iOS https://github.com/martinrybak/FreeTDS-iOS. Can you submit a PR for updating it for OS X?
I finally got that to run, but it builds libsybdb.a. I can see why it does, but I had expected this to build libfreetds.a. Obviously I am missing something here. Any pointers would be hugely appreciated
Dennis
That's what the FreeTDS binary is normally called. In SQLClient
I simply renamed it to libfreetds
. I'll rename it there for consistency.
Hi Martin
Thanks for responding to my GH issue ;-)
I wish I could submit a pull request, but whatever I try I cannot get freetds to compile on osx ;-(
Dennis
On 22 Oct 2016, at 23:08, martinrybak [email protected] wrote:
I have a fork at https://github.com/martinrybak/FreeTDS-iOS https://github.com/martinrybak/FreeTDS-iOS. Can you submit a PR for updating it for OS X?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martinrybak/SQLClient/issues/32#issuecomment-255554176, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOiTPIXb0D7n46xZRfxt_4VBe5D1fvKks5q2ntmgaJpZM4Kd3u2.
Hi Martin Thanks for clearing that up. Still no joy in getting freetds to build for OS X, let alone a universal binary as before. Did fwaddle have anything to offer? Thanks for your continued interest! Dennis
On 25 Oct 2016, at 20:26, martinrybak [email protected] wrote:
That's what the FreeTDS binary is normally called. In SQLClient I simply renamed it to libfreetds. I'll rename it there for consistency.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martinrybak/SQLClient/issues/32#issuecomment-256126374, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOiTCkZJmXXw2CBkrsjAv6IOs6dG4O8ks5q3km-gaJpZM4Kd3u2.
Hi Dennis, The issue is that since Xcode 7 (I think), Apple wants you to build a specific version for OSX whereas you used to be able to use the binary that was built for the simulator - that is no longer allowed. The build script needs to be updated to handle that.
Fwaddle.
Hi Martin / Fwaddle
Spent two hours trying to patch lib_build.sh with what seems needed from the openSSL macosx example script... and failed. My experience with this amounts to zero, making this quite hard. I am sorry.
Dennis
On 26 Oct 2016, at 23:31, Mof [email protected] wrote:
Hi Dennis, The issue is that since Xcode 7 (I think), Apple wants you to build a specific version for OSX whereas you used to be able to use the binary that was built for the simulator - that is no longer allowed. The build script needs to be updated to handle that.
Fwaddle.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martinrybak/SQLClient/issues/32#issuecomment-256483139, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOiTAbc-0hAvKfxMNhP1Ijd-AviejRrks5q38afgaJpZM4Kd3u2.
Hi Dennis,
I've had a crack at the build script (see my pull request) but it's not well tested. I ran it here and it seems to work but I don't have much time to plug the lib file into my project and seeing if it's actually correct.
Hi @fwaddle many thanks for that! Please see my response here: https://github.com/martinrybak/FreeTDS-iOS/pull/2#issuecomment-257823671