[ 
https://issues.apache.org/jira/browse/MINIFICPP-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652722#comment-16652722
 ] 

ASF GitHub Bot commented on MINIFICPP-642:
------------------------------------------

Github user apiri commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/418#discussion_r225749065
  
    --- Diff: docker/Dockerfile ---
    @@ -67,7 +67,7 @@ ENV MINIFI_HOME 
$MINIFI_BASE_DIR/nifi-minifi-cpp-$MINIFI_VERSION
     RUN cd $MINIFI_BASE_DIR \
        && mkdir build \
        && cd build \
    -   && cmake .. \
    +   && cmake -DBUILD_SHARED_LIBS=OFF .. \
    --- End diff --
    
    It is, looking back through the diff it appears I misread this and the fix 
may have been something of dumb luck.  The build is fine but we get something 
like the following without those disabled:
    ```
    Error loading shared library libcivetweb.so.1.10.0: No such file or 
directory (needed by /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi)
    Error loading shared library libcivetweb-cpp.so.1.10.0: No such file or 
directory (needed by /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi)
    Error loading shared library libyaml-cpp.so.0.5: No such file or directory 
(needed by /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi)
    Error loading shared library libtz.so: No such file or directory (needed by 
/opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi)
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZTIN4YAML13BadConversionE: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZTIN4YAML13BadConversionE: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZTIN4YAML13BadConversionE: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZTI12CivetHandler: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZTI12CivetHandler: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler10handlePostEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler10handleHeadEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler10handleHeadEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler9handlePutEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler9handlePutEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler12handleDeleteEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler12handleDeleteEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler13handleOptionsEP11CivetServerP13mg_connection: symbol not 
found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler13handleOptionsEP11CivetServerP13mg_connection: symbol not 
found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler11handlePatchEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN12CivetHandler11handlePatchEP11CivetServerP13mg_connection: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN4YAML6detail9node_data3endEv: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN4YAML6detail9node_data8set_nullEv: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN4date12current_zoneEv: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN4YAML6detail6memory11create_nodeEv: symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN4date11locate_zoneERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: 
symbol not found
    Error relocating /opt/minifi/nifi-minifi-cpp-0.6.0/bin/minifi: 
_ZN11CivetServerC1ESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEPK14CivetCallbacksPKv:
 symbol not found
    ```


> Shared lib building causes issues in Docker image
> -------------------------------------------------
>
>                 Key: MINIFICPP-642
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-642
>             Project: NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Aldrin Piri
>            Assignee: Aldrin Piri
>            Priority: Major
>             Fix For: 0.6.0
>
>
> With the adjustment to the CMakeLists in support of Python there have proven 
> to be issues with the shared libs in the docker environment.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to