Skip Menu |
 

This queue is for tickets about the Tcl CPAN distribution.

Report information
The Basics
Id: 125664
Status: resolved
Priority: 0/
Queue: Tcl

People
Owner: Nobody in particular
Requestors: CAC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.05
Fixed in: (no value)



Subject: FSFindFolder and FSRefMakePath deprecated
On recent macOS versions, clang reports:
 
Tcl.xs:231:10: warning: 'FSFindFolder' is deprecated: first deprecated in macOS
      10.8 [-Wdeprecated-declarations]
        oserr = FSFindFolder(DOMAINS[i], kFrameworksFolderType,
                ^
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h:286:1: note: 
      'FSFindFolder' has been explicitly marked deprecated here
FSFindFolder(
^
Tcl.xs:236:10: warning: 'FSRefMakePath' is deprecated: first deprecated in macOS
      10.8 [-Wdeprecated-declarations]
        oserr = FSRefMakePath(&ref, (UInt8*)libname, sizeof(libname));
                ^
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4086:18: note: 
      'FSRefMakePath' has been explicitly marked deprecated here
extern OSStatus  FSRefMakePath(const FSRef *ref, UInt8 *path, UInt32 pat...
                 ^
 

Download (untitled) / with headers
text/plain 398b
looking into https://developer.apple.com/documentation/coreservices/1389059-fsfindfolder and https://forums.developer.apple.com/thread/12265 gives me an idea that no actual replacement exists. OTOH I think that code following after the code in question should find and use existing tcl shared library on PATH; I would even suggest to remove the said code. any thoughts or alternate suggestions?
fixed in 1.27 by commenting-out ...


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.