[MacPorts] #58689: llvm-devel at 365158: build error on < 10.7 due to missing definition for COPYFILE_CLONE
MacPorts
noreply at macports.org
Sat Jul 6 03:56:52 UTC 2019
#58689: llvm-devel at 365158: build error on < 10.7 due to missing definition for
COPYFILE_CLONE
---------------------------------------+------------------------
Reporter: kencu | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: snowleopard leopard tiger | Port: llvm-devel
---------------------------------------+------------------------
{{{
In file included from /opt/local/var/macports/build
/_opt_macportsofficial_macports-ports_lang_llvm-devel/llvm-
devel/work/trunk/lib/Support/Path.cpp:1113:
/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_lang_llvm-devel/llvm-
devel/work/trunk/lib/Support/Unix/Path.inc:1164:14: error: use of
undeclared identifier 'COPYFILE_CLONE'
Flag = COPYFILE_CLONE;
^
1 error generated.
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Path.cpp.o] Error 1
}}}
a simple replacement patch fixes this error:
{{{
in:
lib/Support/Unix/Path.inc
this small patch:
#include <copyfile.h>
+#ifndef COPYFILE_CLONE
+#define COPYFILE_CLONE (1<<24)
+#endif
#elif defined(__DragonFly__)
}}}
I'll come up with a patch to add to llvm-devel for this in due course.
--
Ticket URL: <https://trac.macports.org/ticket/58689>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list