apothecary icon indicating copy to clipboard operation
apothecary copied to clipboard

Undefined symbols in poco library

Open eduardfrigola opened this issue 4 years ago • 5 comments

Hi everyone, ofxPoco is not working on my machine (latest pull from main git, and from apotecary submodule, recent ./download_libs.sh) macOS 10.14.6 Xcode 11.3.1

I get the following error: Undefined symbols for architecture x86_64: "___darwin_check_fd_set_overflow", referenced from: Poco::Net::SocketImpl::poll(Poco::Timespan const&, int) in PocoNet.a(SocketImpl.o) ld: symbol(s) not found for architecture x86_64

Seems the same problem as curl had some days ago, compatibility issues with older xcode versions: https://github.com/openframeworks/apothecary/issues/176.

Eduard

eduardfrigola avatar Jun 30 '21 18:06 eduardfrigola

Hi @eduardfrigola were you able to fix this? I also run into it and from what I read it is a problem with xcode. Although I was able to compile and run by adding the following -Wl,-U,___darwin_check_fd_set_overflow as a linker flag. In Xcode go to the build settings and add it to "Other Linker Flags".

No idea what implications this has. Screen Shot 2021-08-03 at 00 41 20

roymacdonald avatar Aug 03 '21 06:08 roymacdonald

Hi @roymacdonald ! What I did is copying the poco libraries from of10.x release, as they are not updated for bigsur, that has the new xcode version... And no darwin error with them.

eduardfrigola avatar Aug 03 '21 12:08 eduardfrigola

Hmmm, interesting. So the problem has to do with which OS SDK the Poco library was compiled?

roymacdonald avatar Aug 03 '21 19:08 roymacdonald

I think who knows what everything means is @ofTheo, seeing his insights on this for curl lib in this issue #176

eduardfrigola avatar Aug 03 '21 21:08 eduardfrigola

sure. I checked the ofxPoco libs from 0.10.1 and all the headers are the same as the ones in the newest release but the compiled libs are all different, so I guess that in which OS it is compiled matters

roymacdonald avatar Aug 03 '21 21:08 roymacdonald