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/12 08:06:47 UTC

[GitHub] [pulsar] wolfstudy commented on issue #1964: pulsar-client-cpp not able to build with static link

wolfstudy commented on issue #1964: pulsar-client-cpp not able to build with static link
URL: https://github.com/apache/pulsar/issues/1964#issuecomment-501166033
 
 
   You can update clang-format version, because in CMakeLists.txt:
   
   ```
   # `make format` option
   if (NOT APPLE AND NOT WIN32)
       set(CLANG_FORMAT_VERSION "5.0")
   endif()
   ```
   
   Or, we can ignore `make check-format`.
   
   ---
   
   Then in `apachepulsar/pulsar-build:centos-7` image, when i exec `make -j12`, error as follows:
   
   ```
   [root@1fc7007643de pulsar-client-cpp]# make -j12
   [ 86%] Built target pulsarShared
   [ 86%] Built target pulsarStatic
   [ 87%] Built target SampleConsumerListenerCApi
   [ 91%] Built target SampleConsumerCApi
   [ 91%] Built target SampleProducer
   [ 89%] Built target SampleProducerCApi
   [ 91%] Built target SampleConsumerListener
   [ 93%] Built target SampleConsumer
   [ 89%] Built target SampleAsyncProducer
   [ 94%] Built target perfProducer
   [ 93%] Built target SampleReaderCApi
   [ 95%] Built target perfConsumer
   [ 95%] Linking CXX shared library _pulsar.so
   /usr/bin/ld: cannot find -lstdc++
   collect2: error: ld returned 1 exit status
   make[2]: *** [python/_pulsar.so] Error 1
   make[1]: *** [python/CMakeFiles/_pulsar.dir/all] Error 2
   make: *** [all] Error 2
   ```
   I tried to exec `yum install -y libstdc++-static.x86_64`, this problem was fixed.
   
   

----------------------------------------------------------------
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