<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you for all the helpful guidance!<div class=""><br class=""></div><div class="">The latest commit shows a working build. Here’s a working Portfile: <<a href="https://github.com/macports/macports-ports/blob/3c8e5d94a65e9372b309175cabe2f5efb95a287e/devel/jsonnet/Portfile" class="">https://github.com/macports/macports-ports/blob/3c8e5d94a65e9372b309175cabe2f5efb95a287e/devel/jsonnet/Portfile</a>></div><div class=""><br class=""></div><div class="">The only issue I see from trace mode is some GNU directories that are ignored</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Warning: The following existing file was hidden from the build system by trace mode:</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  /var/root/.CFUserTextEncoding</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The following files would have been hidden from the build system by trace mode if they existed:</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  /usr/gnu/include</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  /usr/local/include</span></div></blockquote><div><br class=""></div><div>I presume this is ignorable.</div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 23, 2019, at 10:21 AM, Joshua Root <<a href="mailto:jmr@macports.org" class="">jmr@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 2019-11-24 02:03 , Mojca Miklavec wrote:<br class=""><blockquote type="cite" class="">On Sat, 23 Nov 2019 at 15:53, Joshua Root wrote:<br class=""><blockquote type="cite" class="">I'm pretty sure the CMakeLists is just buggy. The missing symbols are<br class="">defined in libjsonnet.cpp, while is compiled to libjsonnet.cpp.o, but<br class="">there's just no attempt to include any libraries or .o files other than<br class="">libjsonnet++.cpp.o when linking libjsonnet++.0.14.0.dylib.<br class=""></blockquote><br class="">I also miss something simisar to<br class="">    target_link_libraries(libjsonnet++ PRIVATE libjsonnet)<br class="">in the CMakeList (something similar is even commented out), but that's<br class="">in fact something that upstream needs to fix.<br class=""></blockquote><br class="">Meanwhile, the build with the configure-less version of the Portfile is<br class="">making a token attempt at setting install_name (incorrectly) while using<br class="">filenames as though it's on Linux:<br class=""><br class="">c++  core/desugarer.o core/formatter.o core/lexer.o core/libjsonnet.o<br class="">core/parser.o core/pass.o core/static_analysis.o core/string_utils.o<br class="">core/vm.o third_party/md5/md5.o cpp/libjsonnet++.o -shared<br class="">-Wl,-install_name,libjsonnet++.so.0 -o libjsonnet++.so.0.14.0<br class=""><br class="">It pulls in all the needed .o files at least...<br class=""><br class="">- Josh<br class=""></div></div></blockquote></div><br class=""></div></body></html>