Doesn’t compile on macOS: missing CoreServices
Status: Beta
Brought to you by:
pfaedit
It does not compile on macOS 13.4.1 Ventura, in both Intel and Apple CPUs:
$ ./configure
$ make
[…]
clang: error: no such file or directory: '/System/Library/Frameworks/CoreServices.framework/CoreServices'
Related to changes in macOS 11.0 Big Sur?:
New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)
(I first mistakenly created this ticked as a discussion thread, which I do not know how to delete).
Just remove from the Makefile the line
There is no such line in the Makefile after running
./configure. Attached is the actual Makefile.@elmimmo, looks like you've attached Makefile.mac from fondu_src-051010.tgz, the latest version in the Files section of this SourceForge project. In that version, running
./configureon macOS just copies Makefile.mac to Makefile and exits. In that version, it looks like the relevant line is:However, that is not the latest version. The latest version is available on this SourceForge project's web page and is called fondu_src-060102.tgz. In that version, Makefile.mac was eliminated and combined with Makefile.in which contains the line @ifly6 mentioned:
This bug was also reported to MacPorts:
https://trac.macports.org/ticket/68711
and there the suggested fix was to change
/System/Library/Frameworks/CoreServices.framework/CoreServicesto-framework CoreServices. However, @ifly6 has discovered that this project doesn't seem to need CoreServices at all so you can just delete the line entirely.