sekarpdkt commented on issue #1964: pulsar-client-cpp not able to build with 
static link
URL: https://github.com/apache/pulsar/issues/1964#issuecomment-485254585
 
 
   I tried it in Ubuntu. Still fails.
   ```
   
   [ 89%] Linking CXX shared library libpulsar.so
   /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libboost_regex.a(regex.o): relocation 
R_X86_64_PC32 against symbol `_ZTVN5boost9exceptionE' can not be used when 
making a shared object; recompile with -fPIC
   /usr/bin/ld: final link failed: Bad value
   collect2: error: ld returned 1 exit status
   lib/CMakeFiles/pulsarShared.dir/build.make:2370: recipe for target 
'lib/libpulsar.so.2.4.0-SNAPSHOT' failed
   make[2]: *** [lib/libpulsar.so.2.4.0-SNAPSHOT] Error 1
   CMakeFiles/Makefile2:153: recipe for target 
'lib/CMakeFiles/pulsarShared.dir/all' failed
   make[1]: *** [lib/CMakeFiles/pulsarShared.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   [ 90%] Linking CXX static library libpulsar.a
   [ 90%] Built target pulsarStatic
   Makefile:129: recipe for target 'all' failed
   make: *** [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