You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/10 14:59:00 UTC

[GitHub] [pulsar] liangyuanpeng edited a comment on issue #4259: [pulsar-common] Support Snappy compression for Java

liangyuanpeng edited a comment on issue #4259: [pulsar-common] Support Snappy compression for Java
URL: https://github.com/apache/pulsar/pull/4259#issuecomment-500448493
 
 
   i try to make,but i get the some error
   
   ```
   lanrendeMBP:pulsar-client-cpp lanren$ sudo make
   [  0%] Building CXX object lib/CMakeFiles/pulsarShared.dir/CompressionCodecSnappy.cc.o
   /Users/lanren/Documents/repositorys/git/pulsar/pulsar-client-cpp/lib/CompressionCodecSnappy.cc:38:59: error: use of undeclared identifier 'res'
           LOG_ERROR("Failed to compress to snappy. res=" << res);
                                                             ^
   /Users/lanren/Documents/repositorys/git/pulsar/pulsar-client-cpp/lib/CompressionCodecSnappy.cc:51:28: error: no matching function for call to 'snappy_uncompress'
       snappy_status status = snappy_uncompress(encoded.data(), encoded.readableBytes(),
                              ^~~~~~~~~~~~~~~~~
   /usr/local/include/snappy-c.h:103:15: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'size_t *' (aka 'unsigned long *') for 4th argument
   snappy_status snappy_uncompress(const char* compressed,
                 ^
   2 errors generated.
   make[2]: *** [lib/CMakeFiles/pulsarShared.dir/CompressionCodecSnappy.cc.o] Error 1
   make[1]: *** [lib/CMakeFiles/pulsarShared.dir/all] Error 2
   make: *** [all] Error 2
   ```
   
   @murong00 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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