Skip to content

Instantly share code, notes, and snippets.

@hackman
Created February 12, 2013 10:48
Show Gist options
  • Save hackman/4761517 to your computer and use it in GitHub Desktop.
Save hackman/4761517 to your computer and use it in GitHub Desktop.
elliptics linkage error
With just cloned repo:
[root@animal elliptics]# git pull
Already up-to-date.
[root@animal elliptics]# git br
* master
[root@animal elliptics]#
[root@animal elliptics]# export LDFLAGS="-Wl,-z,defs"
[root@animal elliptics]# export DESTDIR="/root/build/el-build/"
[root@animal elliptics]# cmake -DWITH_COCAINE=NO .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_LARGEFILE_SUPPORT
-- Performing Test HAVE_LARGEFILE_SUPPORT - Success
-- Large file support found: 1
-- Performing Test HAVE_SYNC_ATOMIC_SUPPORT
-- Performing Test HAVE_SYNC_ATOMIC_SUPPORT - Success
-- __sync support: 1
-- Performing Test HAVE_SENDFILE4_SUPPORT
-- Performing Test HAVE_SENDFILE4_SUPPORT - Success
-- Sendfile support: Linux/Solaris sendfile()
-- Performing Test HAVE_IOPRIO_SUPPORT
-- Performing Test HAVE_IOPRIO_SUPPORT - Success
-- Ioprio support: 1
-- System supports procfs statistics
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uintptr_t
-- Check size of uintptr_t - done
-- uintptr_t was found in stdint.h
-- Check size of uint64_t
-- Check size of uint64_t - done
-- uint64_t was found in stdint.h
-- Check size of int_least32_t
-- Check size of int_least32_t - done
-- int_least32_t was found in stdint.h
-- Check size of int_fast32_t
-- Check size of int_fast32_t - done
-- int_fast32_t was found in stdint.h
-- Check size of intmax_t
-- Check size of intmax_t - done
-- intmax_t was found in stdint.h
-- stdint header was generated in /root/build/elliptics/include/elliptics/typedefs.h
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found EBLOB: /usr/lib64/libeblob.so
leveldb:libs: /usr/lib64/libleveldb.so;/usr/lib64/libsnappy.so
-- Found LEVELDB: /usr/lib64/libleveldb.so;/usr/lib64/libsnappy.so
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- thread
-- system
-- Boost information:
-- Boost_INCLUDE_DIRS: /usr/include
-- Boost_LIBRARY_DIRS: /usr/lib64
-- Boost_LIBRARIES: /usr/lib64/libboost_thread-mt.so;/usr/lib64/libboost_system-mt.so
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- iostreams
-- thread
-- regex
-- program_options
-- system
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- python
-- Found PythonLibs: /usr/lib64/python2.6/config/libpython2.6.so
-- Found PythonInterp: /usr/bin/python2.6
-- Python includes are situated in (/usr/include/python2.6, )
-- Configuring done
-- Generating done
-- Build files have been written to: /root/build/elliptics
[root@animal elliptics]# make
Scanning dependencies of target elliptics_cocaine
[ 1%] Building CXX object srw/CMakeFiles/elliptics_cocaine.dir/srw.cpp.o
Linking CXX shared library libelliptics_cocaine.so
[ 1%] Built target elliptics_cocaine
Scanning dependencies of target elliptics_cocaine_static
[ 2%] Building CXX object srw/CMakeFiles/elliptics_cocaine_static.dir/srw.cpp.o
Linking CXX static library libelliptics_cocaine.a
[ 2%] Built target elliptics_cocaine_static
Scanning dependencies of target elliptics_cache
[ 3%] Building CXX object cache/CMakeFiles/elliptics_cache.dir/cache.cpp.o
Linking CXX static library libelliptics_cache.a
[ 3%] Built target elliptics_cache
Scanning dependencies of target elliptics
[ 4%] Building C object library/CMakeFiles/elliptics.dir/dnet.c.o
[ 5%] Building C object library/CMakeFiles/elliptics.dir/log.c.o
[ 6%] Building C object library/CMakeFiles/elliptics.dir/net.c.o
[ 7%] Building C object library/CMakeFiles/elliptics.dir/server.c.o
[ 8%] Building C object library/CMakeFiles/elliptics.dir/node.c.o
[ 9%] Building C object library/CMakeFiles/elliptics.dir/rbtree.c.o
[ 10%] Building C object library/CMakeFiles/elliptics.dir/trans.c.o
[ 11%] Building C object library/CMakeFiles/elliptics.dir/compat.c.o
[ 12%] Building C object library/CMakeFiles/elliptics.dir/notify.c.o
[ 13%] Building C object library/CMakeFiles/elliptics.dir/notify_common.c.o
[ 14%] Building C object library/CMakeFiles/elliptics.dir/meta.c.o
[ 15%] Building C object library/CMakeFiles/elliptics.dir/metadb.c.o
[ 16%] Building C object library/CMakeFiles/elliptics.dir/crypto.c.o
[ 17%] Building C object library/CMakeFiles/elliptics.dir/check.c.o
[ 18%] Building C object library/CMakeFiles/elliptics.dir/check_common.c.o
[ 19%] Building C object library/CMakeFiles/elliptics.dir/pool.c.o
[ 20%] Building C object library/CMakeFiles/elliptics.dir/crypto/sha512.c.o
[ 21%] Building C object library/CMakeFiles/elliptics.dir/locks.c.o
[ 22%] Building C object library/CMakeFiles/elliptics.dir/discovery.c.o
Linking C shared library libelliptics.so
CMakeFiles/elliptics.dir/dnet.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/dnet.c.o: In function `dnet_send_file_info':
/root/build/elliptics/library/dnet.c:1061: undefined reference to `dnet_get_node_from_state'
CMakeFiles/elliptics.dir/dnet.c.o: In function `dnet_checksum_fd':
/root/build/elliptics/library/dnet.c:1178: undefined reference to `dnet_data_map'
/root/build/elliptics/library/dnet.c:1183: undefined reference to `dnet_data_unmap'
CMakeFiles/elliptics.dir/net.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/node.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/node.c.o: In function `dnet_wait_put':
/root/build/elliptics/library/elliptics.h:245: undefined reference to `dnet_wait_destroy'
CMakeFiles/elliptics.dir/node.c.o: In function `dnet_node_alloc':
/root/build/elliptics/library/node.c:50: undefined reference to `dnet_wait_alloc'
CMakeFiles/elliptics.dir/trans.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/trans.c.o: In function `dnet_check_route_table':
/root/build/elliptics/library/trans.c:369: undefined reference to `dnet_recv_route_list'
CMakeFiles/elliptics.dir/trans.c.o: In function `dnet_check_process':
/root/build/elliptics/library/trans.c:394: undefined reference to `dnet_try_reconnect'
CMakeFiles/elliptics.dir/meta.c.o: In function `dnet_read_meta':
/root/build/elliptics/library/meta.c:512: undefined reference to `dnet_read_data_wait'
/root/build/elliptics/library/meta.c:519: undefined reference to `dnet_read_data_wait_raw'
CMakeFiles/elliptics.dir/check.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/check.c.o: In function `dnet_wait_put':
/root/build/elliptics/library/elliptics.h:245: undefined reference to `dnet_wait_destroy'
CMakeFiles/elliptics.dir/check.c.o: In function `dnet_bulk_check_complete_single':
/root/build/elliptics/library/check.c:474: undefined reference to `dnet_remove_object_now'
/root/build/elliptics/library/check.c:477: undefined reference to `dnet_remove_object'
CMakeFiles/elliptics.dir/check.c.o: In function `dnet_request_bulk_check':
/root/build/elliptics/library/check.c:628: undefined reference to `dnet_wait_alloc'
CMakeFiles/elliptics.dir/check.c.o: In function `dnet_merge_common':
/root/build/elliptics/library/check.c:893: undefined reference to `dnet_remove_object_now'
CMakeFiles/elliptics.dir/check_common.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/check_common.c.o: In function `dnet_wait_put':
/root/build/elliptics/library/elliptics.h:245: undefined reference to `dnet_wait_destroy'
CMakeFiles/elliptics.dir/check_common.c.o: In function `dnet_request_check':
/root/build/elliptics/library/check_common.c:97: undefined reference to `dnet_wait_alloc'
CMakeFiles/elliptics.dir/pool.c.o: In function `dnet_state_dump_addr':
/root/build/elliptics/include/elliptics/interface.h:503: undefined reference to `dnet_state_addr'
CMakeFiles/elliptics.dir/discovery.c.o: In function `dnet_discovery_add_state':
/root/build/elliptics/library/discovery.c:190: undefined reference to `dnet_add_state'
../cache/libelliptics_cache.a(cache.cpp.o): In function `dnet_cmd_cache_io':
/root/build/elliptics/cache/cache.cpp:377: undefined reference to `__cxa_begin_catch'
/root/build/elliptics/cache/cache.cpp:377: undefined reference to `__cxa_end_catch'
/root/build/elliptics/cache/cache.cpp:377: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `dnet_cache_init':
/root/build/elliptics/cache/cache.cpp:392: undefined reference to `operator new(unsigned long)'
/root/build/elliptics/cache/cache.cpp:392: undefined reference to `operator delete(void*)'
/root/build/elliptics/cache/cache.cpp:393: undefined reference to `__cxa_begin_catch'
/root/build/elliptics/cache/cache.cpp:393: undefined reference to `__cxa_end_catch'
/root/build/elliptics/cache/cache.cpp:393: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `dnet_cache_cleanup':
/root/build/elliptics/cache/cache.cpp:404: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__static_initialization_and_destruction_0':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/iostream:72: undefined reference to `std::ios_base::Init::Init()'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/iostream:72: undefined reference to `std::ios_base::Init::~Init()'
../cache/libelliptics_cache.a(cache.cpp.o): In function `exception':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/exception:62: undefined reference to `vtable for std::exception'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~sp_counted_base':
/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:115: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:115: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~thread_exception':
/usr/include/boost/thread/exceptions.hpp:45: undefined reference to `std::exception::~exception()'
/usr/include/boost/thread/exceptions.hpp:45: undefined reference to `operator delete(void*)'
/usr/include/boost/thread/exceptions.hpp:45: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~lock_error':
/usr/include/boost/thread/exceptions.hpp:81: undefined reference to `operator delete(void*)'
/usr/include/boost/thread/exceptions.hpp:81: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~thread_resource_error':
/usr/include/boost/thread/exceptions.hpp:102: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o):/usr/include/boost/thread/exceptions.hpp:102: more undefined references to `operator delete(void*)' follow
../cache/libelliptics_cache.a(cache.cpp.o): In function `mutex':
/usr/include/boost/thread/pthread/mutex.hpp:40: undefined reference to `__cxa_allocate_exception'
/usr/include/boost/thread/pthread/mutex.hpp:40: undefined reference to `__cxa_throw'
../cache/libelliptics_cache.a(cache.cpp.o): In function `condition_variable':
/usr/include/boost/thread/pthread/condition_variable_fwd.hpp:33: undefined reference to `__cxa_allocate_exception'
/usr/include/boost/thread/pthread/condition_variable_fwd.hpp:33: undefined reference to `__cxa_throw'
../cache/libelliptics_cache.a(cache.cpp.o): In function `data_t':
/root/build/elliptics/cache/cache.cpp:113: undefined reference to `operator new(unsigned long)'
/root/build/elliptics/cache/cache.cpp:113: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `ioremap::cache::cache_t::write(unsigned char const*, unsigned long, char const*, unsigned long, bool)':
/root/build/elliptics/cache/cache.cpp:202: undefined reference to `operator new(unsigned long)'
/root/build/elliptics/cache/cache.cpp:202: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `ioremap::cache::cache_t::read(unsigned char const*)':
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::allocator<char>::allocator()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `__cxa_allocate_exception'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::runtime_error::runtime_error(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `__cxa_free_exception'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::terminate()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::terminate()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::allocator<char>::~allocator()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::allocator<char>::~allocator()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `std::runtime_error::~runtime_error()'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `typeinfo for std::runtime_error'
/root/build/elliptics/cache/cache.cpp:217: undefined reference to `__cxa_throw'
../cache/libelliptics_cache.a(cache.cpp.o): In function `ioremap::cache::cache_t::erase_element(ioremap::cache::data_t*)':
/root/build/elliptics/cache/cache.cpp:281: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `boost::unique_lock<boost::mutex>::unlock()':
/usr/include/boost/thread/locks.hpp:382: undefined reference to `__cxa_allocate_exception'
/usr/include/boost/thread/locks.hpp:382: undefined reference to `__cxa_throw'
../cache/libelliptics_cache.a(cache.cpp.o): In function `boost::unique_lock<boost::mutex>::lock()':
/usr/include/boost/thread/locks.hpp:347: undefined reference to `__cxa_allocate_exception'
/usr/include/boost/thread/locks.hpp:347: undefined reference to `__cxa_throw'
../cache/libelliptics_cache.a(cache.cpp.o): In function `std::vector<char, std::allocator<char> >::reserve(unsigned long)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:68: undefined reference to `std::__throw_length_error(char const*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~_Vector_impl':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:75: undefined reference to `std::allocator<char>::~allocator()'
../cache/libelliptics_cache.a(cache.cpp.o): In function `char* std::vector<char, std::allocator<char> >::_M_allocate_and_copy<char*>(unsigned long, char*, char*)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:970: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:973: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:970: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `std::deque<dnet_id, std::allocator<dnet_id> >::_M_push_back_aux(dnet_id const&)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/deque.tcc:382: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/deque.tcc:385: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/deque.tcc:382: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `_Vector_impl':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:81: undefined reference to `std::allocator<char>::allocator()'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:95: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `void std::vector<char, std::allocator<char> >::_M_range_insert<char const*>(__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, char const*, char const*, std::forward_iterator_tag)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:540: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:545: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/vector.tcc:540: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `shared_count<ioremap::cache::raw_data_t>':
/usr/include/boost/smart_ptr/detail/shared_count.hpp:87: undefined reference to `operator new(unsigned long)'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:87: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:89: undefined reference to `__cxa_begin_catch'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:92: undefined reference to `__cxa_rethrow'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:89: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `std::_Deque_base<dnet_id, std::allocator<dnet_id> >::_M_initialize_map(unsigned long)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:513: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:518: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:513: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<char>::allocate(unsigned long, void const*)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:87: undefined reference to `std::__throw_bad_alloc()'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:89: undefined reference to `operator new(unsigned long)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `std::vector<char, std::allocator<char> >::_M_check_len(unsigned long, char const*) const':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_vector.h:1137: undefined reference to `std::__throw_length_error(char const*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `void boost::checked_delete<ioremap::cache::raw_data_t>(ioremap::cache::raw_data_t*)':
/usr/include/boost/checked_delete.hpp:34: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > > >* boost::detail::heap_new_impl<boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > > >, boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > >&>(boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > >&)':
/usr/include/boost/thread/pthread/thread_heap_alloc.hpp:47: undefined reference to `operator new(unsigned long)'
/usr/include/boost/thread/pthread/thread_heap_alloc.hpp:47: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `shared_count<boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > > > >':
/usr/include/boost/smart_ptr/detail/shared_count.hpp:87: undefined reference to `operator new(unsigned long)'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:87: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:89: undefined reference to `__cxa_begin_catch'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:92: undefined reference to `__cxa_rethrow'
/usr/include/boost/smart_ptr/detail/shared_count.hpp:89: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `std::_Deque_base<dnet_id, std::allocator<dnet_id> >::_M_create_nodes(dnet_id**, dnet_id**)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:540: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:543: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_deque.h:540: undefined reference to `__cxa_end_catch'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<dnet_id*>::deallocate(dnet_id**, unsigned long)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:95: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<dnet_id>::allocate(unsigned long, void const*)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:87: undefined reference to `std::__throw_bad_alloc()'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:89: undefined reference to `operator new(unsigned long)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<dnet_id>::deallocate(dnet_id*, unsigned long)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:95: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~thread_data':
/usr/include/boost/thread/detail/thread.hpp:40: undefined reference to `operator delete(void*)'
/usr/include/boost/thread/detail/thread.hpp:40: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o): In function `__gnu_cxx::new_allocator<dnet_id*>::allocate(unsigned long, void const*)':
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:87: undefined reference to `std::__throw_bad_alloc()'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/new_allocator.h:89: undefined reference to `operator new(unsigned long)'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTVN5boost16thread_exceptionE[vtable for boost::thread_exception]+0x20): undefined reference to `std::exception::what() const'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTVN5boost6detail15sp_counted_baseE[vtable for boost::detail::sp_counted_base]+0x20): undefined reference to `__cxa_pure_virtual'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTVN5boost6detail15sp_counted_baseE[vtable for boost::detail::sp_counted_base]+0x30): undefined reference to `__cxa_pure_virtual'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost6detail17sp_counted_impl_pINS0_11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0IvN7ioremap5cache7cache_tEEENS3_5list1INS3_5valueIPS9_EEEEEEEEEE[typeinfo for boost::detail::sp_counted_impl_p<boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > > > >]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0IvN7ioremap5cache7cache_tEEENS2_5list1INS2_5valueIPS8_EEEEEEEE[typeinfo for boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ioremap::cache::cache_t>, boost::_bi::list1<boost::_bi::value<ioremap::cache::cache_t*> > > >]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost6detail17sp_counted_impl_pIN7ioremap5cache10raw_data_tEEE[typeinfo for boost::detail::sp_counted_impl_p<ioremap::cache::raw_data_t>]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost21thread_resource_errorE[typeinfo for boost::thread_resource_error]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost10lock_errorE[typeinfo for boost::lock_error]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost16thread_exceptionE[typeinfo for boost::thread_exception]+0x0): more undefined references to `vtable for __cxxabiv1::__si_class_type_info' follow
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost16thread_exceptionE[typeinfo for boost::thread_exception]+0x10): undefined reference to `typeinfo for std::exception'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro._ZTIN5boost6detail15sp_counted_baseE[typeinfo for boost::detail::sp_counted_base]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o): In function `~sp_counted_impl_p':
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:54: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:54: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:54: undefined reference to `operator delete(void*)'
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:54: undefined reference to `operator delete(void*)'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro+0x0): undefined reference to `vtable for __cxxabiv1::__pointer_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.rel.ro+0x20): undefined reference to `vtable for __cxxabiv1::__class_type_info'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.DW.ref._ZTISt9exception[DW.ref._ZTISt9exception]+0x0): undefined reference to `typeinfo for std::exception'
../cache/libelliptics_cache.a(cache.cpp.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** [library/libelliptics.so.2.21.3.2] Error 1
make[1]: *** [library/CMakeFiles/elliptics.dir/all] Error 2
make: *** [all] Error 2
[root@animal elliptics]#
@hackman
Copy link
Author

hackman commented Feb 18, 2013

It is not the LDFLAGS/DESTDIR, the issue is when I'm doing rpmbuild with the supplied elliptics-bf.spec.
That is from where I copied the LDFLAGS and DESTDIR.

I get the same error without LDFLAGS/DESTDIR.

Any ideas why ?

@bioothod
Copy link

Does it still happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment