wenxuwan commented on issue #6724: Compile client failed with container
URL: https://github.com/apache/pulsar/issues/6724#issuecomment-613854943
 
 
   > @wenxuwan Would you provide more details of how to reproduce it?
   > This Dockerfile that you changed in PR #6736 is called by the shell 
scripts in that dir:
   > e.g. /pulsar/pulsar-client-cpp/docker/create-images.sh
   
   1. cd /pulsar/pulsar-client-cpp/docker/
   2.docker build --build-arg PYTHON_VERSION=3.7 --build-arg 
PYTHON_SPEC=cp37-cp37m . 
   3.start container and login
   4.run build-wheel-file-within-docker.sh 
   5. when finish compile and link .so file, you will meet the error:
   
   [ 90%] Built target pulsarStatic
   [ 90%] Linking CXX shared library _pulsar.so
   /opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-CentOS-linux/4.8.2/ld: 
/usr/local/lib/libsnappy.a(snappy.o): relocation R_X86_64_32 against `.rodata' 
can not be used when making a shared object; recompile with -fPIC
   /usr/local/lib/libsnappy.a: could not read symbols: Bad value
   collect2: error: ld returned 1 exit status
   make[2]: *** [python/_pulsar.so] Error 1
   make[1]: *** [python/CMakeFiles/_pulsar.dir/all] Error 2
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to