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/02/25 10:18:16 UTC

[GitHub] Tevic opened a new issue #3680: go static build error

Tevic opened a new issue #3680: go static build error
URL: https://github.com/apache/pulsar/issues/3680
 
 
   **Describe the bug**
   Pulsar version: 2.3.0
   dpkg -i apache-pulsar-client*.deb
   
   **To Reproduce**
   go build -a -ldflags '-extldflags "-static"' .
   
   
   **Expected behavior**
   build success
   
   **Desktop (please complete the following information):**
   gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
   
   **Additional context**
   Some error output:
   `# command-line-arguments
   /home/tevic/WorkSpace/RunTime/Go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
   /tmp/go-link-849858481/000024.o: In function `_cgo_18049202ccd9_C2func_getaddrinfo':
   /tmp/go-build/cgo-gcc-prolog:49: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) [clone .isra.150]':
   /usr/include/c++/6/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
   /usr/include/c++/6/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorService::close()':
   /usr/include/c++/6/bits/unique_ptr.h:76: undefined reference to `operator delete(void*)'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorService::~ExecutorService()':
   /usr/include/c++/6/bits/unique_ptr.h:76: undefined reference to `operator delete(void*)'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorService::~ExecutorService()':
   /usr/local/include/boost/asio/impl/io_service.ipp:53: undefined reference to `operator delete(void*)'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorServiceProvider::ExecutorServiceProvider(int)':
   /usr/include/c++/6/ext/new_allocator.h:104: undefined reference to `operator new(unsigned long)'
   /usr/include/c++/6/ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorService::ExecutorService()':
   /usr/local/include/boost/asio/impl/io_service.ipp:39: undefined reference to `operator new(unsigned long)'
   /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libpulsar.a(ExecutorService.cc.o): In function `pulsar::ExecutorService::ExecutorService()':` 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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