[zeromq-dev] Issues installing ZeroMQ and PyZMQ on RHEL 6

Kushal Dalmia kdpict at gmail.com
Tue Feb 21 07:41:40 CET 2012


Hi,

I am a researcher at Carnegie Mellon University and am trying to install
ZeroMQ with its Python bindings on a RHEL 6 box (Red Hat Enterprise Linux
Workstation release 6.1 (Santiago)).

I first tried getting the source from the ZeroMQ website and building it.
The build finishes successfully and I can see all the required header
files and libraries in the expected dirs. However, when I write a simple C
application which links with "-lzmq", the linker fails with a bunch of
errors (Please see attached file for details).

I also tried getting and installing the RPM
(zeromq-2.1.9-1.el6.x86_64.rpm), but get the same issue when trying to
link to it.

Please suggest me how to go about this? The same errors are seen when I do
a "easy_install pyzmq" to install the python bindings.

Thanks,
Kushal Dalmia
Graduate Student
Carnegie Mellon University
-------------- next part --------------
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator new[](unsigned long, std::nothrow_t const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator delete(void*, std::nothrow_t const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::locale::locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_guard_release at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::~basic_ios()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator new(unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::locale::~locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_guard_acquire at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::__throw_logic_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::nothrow at GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for __cxxabiv1::__class_type_info at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_end_catch at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_rethrow at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::ios_base::ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator new(unsigned long, std::nothrow_t const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage at GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const at GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned long, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__gxx_personality_v0 at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::__throw_out_of_range(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const at GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(int)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_begin_catch at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::ios_base::~ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `__cxa_pure_virtual at CXXABI_1.3'
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libzmq.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
collect2: ld returned 1 exit status



More information about the zeromq-dev mailing list