wenxuwan opened a new issue #6724: Compile client failed with container
URL: https://github.com/apache/pulsar/issues/6724
 
 
   **Describe the bug**
   When i try to compile client with container,  it failed with link error.
   
   /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
   
   In the container, i find the snappy compiled with  CFLAGS="-fPIC -O3" .
   # Snappy
   RUN curl -O -L 
https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz && 
\
       tar xvfz snappy-1.1.3.tar.gz && \
       cd snappy-1.1.3 && \
       CFLAGS="-fPIC -O3" ./configure && \
       make && make install && \
       rm -rf /snappy-1.1.3 /snappy-1.1.3.tar.gz
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   

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