apple / swift-cassandra-client

Cassandra client in Swift
https://swiftpackageindex.com/apple/swift-cassandra-client/main/documentation/cassandraclient
Apache License 2.0
89 stars 16 forks source link

Unable to build package using Xcode #14

Closed mattmassicotte closed 1 year ago

mattmassicotte commented 1 year ago

Here's what I did:

The swift-cassandra-driver fails to build, because libuv is looking for sys/epoll.h on my system. Did I do something dumb and miss the instructions for local building?

yim-lee commented 1 year ago

I can't reproduce this in Xcode 14.1 (14B47b). I don't think I did anything special. Curious to see if others have run into the same issue as well.

mattmassicotte commented 1 year ago

Hmm, I don't understand what the difference could be. To fix this, I had to add the following to the libuvExclude variable for !os(Linux)

"./libuv/src/unix/linux.c",

However, now I'm hitting a linking failure:

"datastax::internal::core::OpenSslContext::set_min_protocol_version(CassSslTlsVersion_)", referenced from:
  vtable for datastax::internal::core::OpenSslContext in CDataStaxDriver.o
mattmassicotte commented 1 year ago

Ahh, user error! The correct method is:

git submodule update --init

--recursive isn't needed in this case, but the real problem was my use of --remote. That checks ignores the recorded commit in the submodule.