question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Undefined symbol: _curl_multi_poll when building for macOS using 1.3.2

See original GitHub issue

Ktor Version and Engine Used (client or server and name) 1.3.2, curl

Getting "Undefined symbol: _curl_multi_poll " when using v1.3.2 of Ktor as part of Kotlin/Native module used in macOS app. I have added libcurl in XCode project.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
martinbonnincommented, Apr 10, 2020

I had the same issue when linking a debug Framework (release seems ok). From what I understand, the ktor binaries link dynamically with curl ? Isn’t that a bit dangerous in case the curl installed on the client is incompatible with the curl used to compile ktor ? Would it be an option to link curl statically inside ktor (if that makes sense ?) ?

0reactions
joreillycommented, Mar 16, 2020

I wasn’t able to get any build.gradle config to make a difference but what did work was, after updating version I had installed locally, to add following to XCode “Other Linker Flags”

-L/usr/local/opt/curl/lib

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 12b3 Undefined symbol: __swi… - Apple Developer
The example is when building for the simulator, but I get the same error building for an arm device as well. I don't...
Read more >
Xcode build fails due to Undefined symbol - Stack Overflow
Go to Xcode, in the project name, right click and click on “New file…” Select Swift File ...
Read more >
macOS Monterey Problems - MacPorts Trac
MacPorts must be re-installed in a version configured for macOS 12 ... Undefined symbols; #65225: antlr @2.7.7_3 fails to build on macOS 12: ......
Read more >
Build failure with Xcode 14 and macOS 13 (Ventura) Beta ...
I got the following error. (snip) linking shared-object -test-/arith_seq/extract.bundle Undefined symbols for architecture arm64: " ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found