tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wip/rust on macOS Beta



> I am on macOS Sonoma Beta 7 on my Mac, and I noticed that cargo from wip/rust (1.71.1) does this on startup:
> 
> % cargo
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x600001e6c420'

> Rebuilding rust did not change anything.
> 
> Is this an OS bug? 
> 
> I see libcurl in the backtrace; rebuilding curl also did not help.
> 
> Does anyone have any ideas? I have not seen this in any other program so far.
> 
> — 
> Benny

Correct, libcurl fails trying to get proxy configuration from the system. My guess is that's a bug in macOS beta.

Try this patch against www/curl

--- lib/curl_setup.h.orig 2023-09-06 21:00:15.310798251 +0000
+++ lib/curl_setup.h
@@ -258,9 +258,6 @@
 #if defined(__APPLE__) && !defined(USE_ARES)
 #include <TargetConditionals.h>
 #define USE_RESOLVE_ON_IPS 1
-#  if !defined(TARGET_OS_OSX) || TARGET_OS_OSX
-#    define CURL_OSX_CALL_COPYPROXIES 1
-#  endif
 #endif
   #ifdef USE_LWIPSOCK

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index