[
https://issues.apache.org/jira/browse/MINIFICPP-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717342#comment-16717342
]
ASF GitHub Bot commented on MINIFICPP-695:
------------------------------------------
Github user arpadboda commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/459#discussion_r240643845
--- Diff: nanofi/examples/CMakeLists.txt ---
@@ -50,11 +50,11 @@ if (WIN32)
set(LINK_FLAGS "/WHOLEARCHIVE")
set(LINK_END_FLAGS "")
elseif (APPLE)
- set(LINK_FLAGS "-Wl,-all_load")
+ set(LINK_FLAGS "")
--- End diff --

Processor symbols are part of libminifi, which is not linked here directly.
In case of indirect linkage (libminifi is linked via nanofi and/or
libminifi-http-curl), it seems that all_load just make it worse.
I used the following command to verify the symbols being present in the
binaries:
```
find . -type f | perl -lne 'print if -B' | xargs nm -a --print-file-name |
grep -i "generateflowfile" | cut -d ':' -f1 | sort -u | grep -vi "test"
```
> NanoFi Examples appear to be broken
> -----------------------------------
>
> Key: MINIFICPP-695
> URL: https://issues.apache.org/jira/browse/MINIFICPP-695
> Project: NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Mr TheSegfault
> Assignee: Arpad Boda
> Priority: Blocker
> Labels: nanofi
>
> When testing recent changes the examples appear to not work due to a
> mis-configuration of the client. Not sure when/what broke it specifically,
> but we should ensure that examples function.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)