martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
124 stars 51 forks source link

libfreetds.a not built for OS X anymore #32

Open drd27 opened 7 years ago

drd27 commented 7 years ago

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

martinrybak commented 7 years ago

I have a fork at https://github.com/martinrybak/FreeTDS-iOS. Can you submit a PR for updating it for OS X?

drd27 commented 7 years ago

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

martinrybak commented 7 years ago

That's what the FreeTDS binary is normally called. In SQLClient I simply renamed it to libfreetds. I'll rename it there for consistency.

drd27 commented 7 years ago

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 notifications@github.com 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.

drd27 commented 7 years ago

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 notifications@github.com 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.

fwaddle commented 7 years ago

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.

drd27 commented 7 years ago

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 notifications@github.com 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.

fwaddle commented 7 years ago

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.

drd27 commented 7 years ago

Hi @fwaddle many thanks for that! Please see my response here: https://github.com/martinrybak/FreeTDS-iOS/pull/2#issuecomment-257823671