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:33:07 UTC

[GitHub] [pulsar] wolfstudy opened a new pull request #4518: [issue:1964] fix build error of apachepulsar/pulsar-build:centos-7

wolfstudy opened a new pull request #4518: [issue:1964] fix build error of apachepulsar/pulsar-build:centos-7
URL: https://github.com/apache/pulsar/pull/4518
 
 
   Signed-off-by: xiaolong.ran <ra...@gmail.com>
   
   Fixes #1964
   
   ### Motivation
   
   When I built cpp-client using `apachepulsar/pulsar-build:centos-7`, I encountered the following error:
   
   ```
   [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
   ```
   
   exec `ld -lstdc++ --verbose`, output as follows:
   
   ```
   attempt to open //usr/x86_64-redhat-linux/lib64/libstdc++.so failed
   attempt to open //usr/x86_64-redhat-linux/lib64/libstdc++.a failed
   attempt to open //usr/lib64/libstdc++.so failed
   attempt to open //usr/lib64/libstdc++.a failed
   attempt to open //usr/local/lib64/libstdc++.so failed
   attempt to open //usr/local/lib64/libstdc++.a failed
   attempt to open //lib64/libstdc++.so failed
   attempt to open //lib64/libstdc++.a failed
   attempt to open //usr/x86_64-redhat-linux/lib/libstdc++.so failed
   attempt to open //usr/x86_64-redhat-linux/lib/libstdc++.a failed
   attempt to open //usr/local/lib/libstdc++.so failed
   attempt to open //usr/local/lib/libstdc++.a failed
   attempt to open //lib/libstdc++.so failed
   attempt to open //lib/libstdc++.a failed
   attempt to open //usr/lib/libstdc++.so failed
   attempt to open //usr/lib/libstdc++.a failed
   ld: cannot find -lstdc++
   ```
   
   so, lack of related dependencies in the image of `centos-7`, the pull request will fix it.

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