Skip to content

python binding installation fails under cygwin #113

Closed
@jtmoon79

Description

@jtmoon79

Compiling the python binding under cygwin fails.
This may be a problem with zeromq linking to libraries. However, pyzmq brings out the problem.

$ uname -a
    CYGWIN_NT-6.1 TMOON-DEV2 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
$ mkdir /tmp/tmp1
$ cd /tmp/tmp1
$ wget 'http://download.zeromq.org/zeromq-2.1.7.zip'
$ unzip zeromq-2.1.7.zip
$ cd zeromq-2.1.7
$ ./configure
$ make 
    ... succeeds...
$ make install
    
    ... notable output...
    libtool: install: ranlib /usr/local/lib/libzmq.a
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /usr/local/lib
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-LLIBDIR' linker flag
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    ... succeeds ...
$ cd ../
$ wget --no-check-certificate 'https://github.com/downloads/zeromq/pyzmq/pyzmq-2.1.7.zip'
$ unzip pyzmq-2.1.7.zip
$ cd pyzmq-2.1.7
$ which python && python --version
    /usr/bin/python
    Python 2.6.5
$ python setup.py configure --zmq=/usr/local
    running configure
    ******************************************
    Configure: Autodetecting ZMQ settings...
        Custom ZMQ dir:       /usr/local
    cc -I/usr/local/include -Izmq/utils -Izmq/core -Izmq/devices -c detect/vers.c -o detect/vers.o
    cc detect/vers.o -L/usr/local/lib -Wl,-R/usr/local/lib -lzmq -o detect/vers.exe
    /usr/local/lib/libzmq.a(libzmq_la-zmq.o): In function `zmq_init':
    /tmp/tmp1/zeromq-2.1.7/src/zmq.cpp:280: undefined reference to `std::nothrow'
    /tmp/tmp1/zeromq-2.1.7/src/zmq.cpp:280: undefined reference to `std::nothrow'
    /usr/local/lib/libzmq.a(libzmq_la-zmq.o):zmq.cpp:(.eh_frame+0x12): undefined reference to `___gxx_personality_v0'
    /usr/local/lib/libzmq.a(libzmq_la-ctx.o): In function `_ZNSt17_Rb_tree_iteratorISt4pairIKSsN3zmq10endpoint_tEEEppEv':
    /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/stl_tree.h:182: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
    /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/stl_tree.h:182: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
    /usr/local/lib/libzmq.a(libzmq_la-ctx.o): In function `_ZNSt8_Rb_treeISsSt4pairIKSsN3zmq10endpoint_tEESt10_Select1stIS4_ESt4lessISsESaIS4_EE5eraseESt17_Rb_tree_iteratorIS4_E':
    ...error continue for a long time...

The undefined references are to many different libraries. I may re-post this error at zeromq.

-J_Tom_Moon_79

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions