You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by gi...@git.apache.org on 2017/08/06 08:17:45 UTC

[GitHub] jai1 opened a new pull request #646: CPP Client - Fixed MAC build errors, due to undefined ZLIB_LIBRARY_PATH

jai1 opened a new pull request #646: CPP Client - Fixed MAC build errors, due to undefined ZLIB_LIBRARY_PATH
URL: https://github.com/apache/incubator-pulsar/pull/646
 
 
   ### Problem
   After merging , we were unable to build the CPP Client on macOS.
   
   ```
   Undefined symbols for architecture x86_64:
     "_compress", referenced from:
         pulsar::CompressionCodecZLib::encode(pulsar::SharedBuffer const&) in CompressionCodecZLib.cc.o
        (maybe you meant: _LZ4_compress_continue, _LZ4_compress , _LZ4_compress_limitedOutput , _LZ4_compress_fast_continue , _LZ4_compress_forceExtDict , _LZ4_compress_fast_extState , _LZ4_compress_default , _LZ4_compressBound , _LZ4_compress_destSize , __ZN5boost9algorithm5splitINSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEEKS9_NS0_6detail10is_any_ofFIcEEEERT_SH_RT0_T1_NS0_24token_compress_mode_typeE , _LZ4_compress_limitedOutput_continue , _LZ4_compress_fast , _LZ4_compress_limitedOutput_withState , _LZ4_compress_fast_force , _LZ4_compress_withState , __ZN5boost9algorithm5splitINSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEES9_NS0_6detail10is_any_ofFIcEEEERT_SG_RT0_T1_NS0_24token_compress_mode_typeE )
     "_compressBound", referenced from:
         pulsar::CompressionCodecZLib::encode(pulsar::SharedBuffer const&) in CompressionCodecZLib.cc.o
        (maybe you meant: _LZ4_compressBound)
     "_uncompress", referenced from:
         pulsar::CompressionCodecZLib::decode(pulsar::SharedBuffer const&, unsigned int, pulsar::SharedBuffer&) in CompressionCodecZLib.cc.o
        (maybe you meant: _LZ4_uncompress_unknownOutputSize, _LZ4_uncompress )
   ld: symbol(s) not found for architecture x86_64
   ```
   ### Fix
   Defined ZLIB_LIBRARY_PATH in case LINK_STATIC is OFF.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services