Skip to content

Instantly share code, notes, and snippets.

@DSLituiev
Created January 27, 2016 20:03
Show Gist options
  • Select an option

  • Save DSLituiev/913ea8bd863d93fa12ba to your computer and use it in GitHub Desktop.

Select an option

Save DSLituiev/913ea8bd863d93fa12ba to your computer and use it in GitHub Desktop.
install.packages("rzmq")
Installing package into ‘/home/dima/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cran.cnr.berkeley.edu/src/contrib/rzmq_0.7.7.tar.gz'
Content type 'application/x-gzip' length 16246 bytes (15 KB)
==================================================
downloaded 15 KB
* installing *source* package ‘rzmq’ ...
** package ‘rzmq’ successfully unpacked and MD5 sums checked
** libs
g++ -std=c++11 -I/usr/share/R/include -DNDEBUG -I../inst/cppzmq -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c interface.cpp -o interface.o
interface.cpp:23:1: error: static assertion failed: The minimum required version of libzmq is 3.0.0.
static_assert(ZMQ_VERSION_MAJOR >= 3,"The minimum required version of libzmq is 3.0.0.");
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp: In function ‘void zmq::proxy(void*, void*, void*)’:
../inst/cppzmq/zmq.hpp:117:55: error: ‘zmq_proxy’ was not declared in this scope
int rc = zmq_proxy (frontend, backend, capture);
^
../inst/cppzmq/zmq.hpp: In member function ‘bool zmq::message_t::more()’:
../inst/cppzmq/zmq.hpp:232:40: error: ‘zmq_msg_more’ was not declared in this scope
int rc = zmq_msg_more (&msg);
^
../inst/cppzmq/zmq.hpp: At global scope:
../inst/cppzmq/zmq.hpp:275:72: error: ‘ZMQ_MAX_SOCKETS_DFLT’ was not declared in this scope
inline explicit context_t (int io_threads_, int max_sockets_ = ZMQ_MAX_SOCKETS_DFLT)
^
../inst/cppzmq/zmq.hpp: In constructor ‘zmq::context_t::context_t()’:
../inst/cppzmq/zmq.hpp:269:32: error: ‘zmq_ctx_new’ was not declared in this scope
ptr = zmq_ctx_new ();
^
../inst/cppzmq/zmq.hpp: In constructor ‘zmq::context_t::context_t(int, int)’:
../inst/cppzmq/zmq.hpp:277:32: error: ‘zmq_ctx_new’ was not declared in this scope
ptr = zmq_ctx_new ();
^
../inst/cppzmq/zmq.hpp:281:40: error: ‘ZMQ_IO_THREADS’ was not declared in this scope
int rc = zmq_ctx_set (ptr, ZMQ_IO_THREADS, io_threads_);
^
../inst/cppzmq/zmq.hpp:281:67: error: ‘zmq_ctx_set’ was not declared in this scope
int rc = zmq_ctx_set (ptr, ZMQ_IO_THREADS, io_threads_);
^
../inst/cppzmq/zmq.hpp:284:36: error: ‘ZMQ_MAX_SOCKETS’ was not declared in this scope
rc = zmq_ctx_set (ptr, ZMQ_MAX_SOCKETS, max_sockets_);
^
../inst/cppzmq/zmq.hpp: In member function ‘void zmq::context_t::close()’:
../inst/cppzmq/zmq.hpp:309:42: error: ‘zmq_ctx_destroy’ was not declared in this scope
int rc = zmq_ctx_destroy (ptr);
^
../inst/cppzmq/zmq.hpp: In member function ‘void zmq::socket_t::unbind(const char*)’:
../inst/cppzmq/zmq.hpp:400:44: error: ‘zmq_unbind’ was not declared in this scope
int rc = zmq_unbind (ptr, addr_);
^
../inst/cppzmq/zmq.hpp: In member function ‘void zmq::socket_t::disconnect(const char*)’:
../inst/cppzmq/zmq.hpp:414:48: error: ‘zmq_disconnect’ was not declared in this scope
int rc = zmq_disconnect (ptr, addr_);
^
../inst/cppzmq/zmq.hpp: In member function ‘size_t zmq::socket_t::send(const void*, size_t, int)’:
../inst/cppzmq/zmq.hpp:426:59: error: invalid conversion from ‘const void*’ to ‘zmq_msg_t*’ [-fpermissive]
int nbytes = zmq_send (ptr, buf_, len_, flags_);
^
../inst/cppzmq/zmq.hpp:426:59: error: too many arguments to function ‘int zmq_send(void*, zmq_msg_t*, int)’
In file included from interface.cpp:22:0:
/usr/include/zmq.h:229:16: note: declared here
ZMQ_EXPORT int zmq_send (void *s, zmq_msg_t *msg, int flags);
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp: In member function ‘bool zmq::socket_t::send(zmq::message_t&, int)’:
../inst/cppzmq/zmq.hpp:436:64: error: ‘zmq_msg_send’ was not declared in this scope
int nbytes = zmq_msg_send (&(msg_.msg), ptr, flags_);
^
../inst/cppzmq/zmq.hpp: In member function ‘size_t zmq::socket_t::recv(void*, size_t, int)’:
../inst/cppzmq/zmq.hpp:446:59: error: invalid conversion from ‘void*’ to ‘zmq_msg_t*’ [-fpermissive]
int nbytes = zmq_recv (ptr, buf_, len_, flags_);
^
../inst/cppzmq/zmq.hpp:446:59: error: too many arguments to function ‘int zmq_recv(void*, zmq_msg_t*, int)’
In file included from interface.cpp:22:0:
/usr/include/zmq.h:230:16: note: declared here
ZMQ_EXPORT int zmq_recv (void *s, zmq_msg_t *msg, int flags);
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp: In member function ‘bool zmq::socket_t::recv(zmq::message_t*, int)’:
../inst/cppzmq/zmq.hpp:456:65: error: ‘zmq_msg_recv’ was not declared in this scope
int nbytes = zmq_msg_recv (&(msg_->msg), ptr, flags_);
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp: At global scope:
../inst/cppzmq/zmq.hpp:579:47: error: ‘zmq_event_t’ does not name a type
virtual void on_event_connected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:579:60: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_connected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:580:53: error: ‘zmq_event_t’ does not name a type
virtual void on_event_connect_delayed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:580:66: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_connect_delayed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:581:53: error: ‘zmq_event_t’ does not name a type
virtual void on_event_connect_retried(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:581:66: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_connect_retried(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:582:47: error: ‘zmq_event_t’ does not name a type
virtual void on_event_listening(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:582:60: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_listening(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:583:49: error: ‘zmq_event_t’ does not name a type
virtual void on_event_bind_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:583:62: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_bind_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:584:46: error: ‘zmq_event_t’ does not name a type
virtual void on_event_accepted(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:584:59: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_accepted(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:585:51: error: ‘zmq_event_t’ does not name a type
virtual void on_event_accept_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:585:64: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_accept_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:586:44: error: ‘zmq_event_t’ does not name a type
virtual void on_event_closed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:586:57: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_closed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:587:50: error: ‘zmq_event_t’ does not name a type
virtual void on_event_close_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:587:63: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_close_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:588:50: error: ‘zmq_event_t’ does not name a type
virtual void on_event_disconnected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:588:63: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_disconnected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:589:45: error: ‘zmq_event_t’ does not name a type
virtual void on_event_unknown(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
../inst/cppzmq/zmq.hpp:589:58: error: ISO C++ forbids declaration of ‘event_’ with no type [-fpermissive]
virtual void on_event_unknown(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp:478:72: error: ‘ZMQ_EVENT_ALL’ was not declared in this scope
void monitor(socket_t &socket, const char *addr_, int events = ZMQ_EVENT_ALL)
^
../inst/cppzmq/zmq.hpp: In member function ‘void zmq::monitor_t::monitor(zmq::socket_t&, const char*, int)’:
../inst/cppzmq/zmq.hpp:480:66: error: ‘zmq_socket_monitor’ was not declared in this scope
int rc = zmq_socket_monitor(socket.ptr, addr_, events);
^
../inst/cppzmq/zmq.hpp:496:50: error: ‘zmq_recvmsg’ was not declared in this scope
rc = zmq_recvmsg (s, &eventMsg, 0);
^
../inst/cppzmq/zmq.hpp:507:17: error: ‘zmq_event_t’ was not declared in this scope
zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data(&eventMsg));
^
../inst/cppzmq/zmq.hpp:507:30: error: ‘event’ was not declared in this scope
zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data(&eventMsg));
^
../inst/cppzmq/zmq.hpp:507:50: error: expected type-specifier before ‘zmq_event_t’
zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data(&eventMsg));
^
../inst/cppzmq/zmq.hpp:507:50: error: expected ‘>’ before ‘zmq_event_t’
../inst/cppzmq/zmq.hpp:507:50: error: expected ‘(’ before ‘zmq_event_t’
../inst/cppzmq/zmq.hpp:507:62: error: expected primary-expression before ‘>’ token
zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data(&eventMsg));
^
../inst/cppzmq/zmq.hpp:507:88: error: expected ‘)’ before ‘;’ token
zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data(&eventMsg));
^
In file included from interface.cpp:24:0:
../inst/cppzmq/zmq.hpp:531:22: error: ‘ZMQ_EVENT_CONNECTED’ was not declared in this scope
case ZMQ_EVENT_CONNECTED:
^
../inst/cppzmq/zmq.hpp:534:22: error: ‘ZMQ_EVENT_CONNECT_DELAYED’ was not declared in this scope
case ZMQ_EVENT_CONNECT_DELAYED:
^
../inst/cppzmq/zmq.hpp:537:22: error: ‘ZMQ_EVENT_CONNECT_RETRIED’ was not declared in this scope
case ZMQ_EVENT_CONNECT_RETRIED:
^
../inst/cppzmq/zmq.hpp:540:22: error: ‘ZMQ_EVENT_LISTENING’ was not declared in this scope
case ZMQ_EVENT_LISTENING:
^
../inst/cppzmq/zmq.hpp:543:22: error: ‘ZMQ_EVENT_BIND_FAILED’ was not declared in this scope
case ZMQ_EVENT_BIND_FAILED:
^
../inst/cppzmq/zmq.hpp:546:22: error: ‘ZMQ_EVENT_ACCEPTED’ was not declared in this scope
case ZMQ_EVENT_ACCEPTED:
^
../inst/cppzmq/zmq.hpp:549:22: error: ‘ZMQ_EVENT_ACCEPT_FAILED’ was not declared in this scope
case ZMQ_EVENT_ACCEPT_FAILED:
^
../inst/cppzmq/zmq.hpp:552:22: error: ‘ZMQ_EVENT_CLOSED’ was not declared in this scope
case ZMQ_EVENT_CLOSED:
^
../inst/cppzmq/zmq.hpp:555:22: error: ‘ZMQ_EVENT_CLOSE_FAILED’ was not declared in this scope
case ZMQ_EVENT_CLOSE_FAILED:
^
../inst/cppzmq/zmq.hpp:558:22: error: ‘ZMQ_EVENT_DISCONNECTED’ was not declared in this scope
case ZMQ_EVENT_DISCONNECTED:
^
interface.cpp: In function ‘SEXPREC* initContext()’:
interface.cpp:123:49: error: call to ‘zmq::context_t::context_t(int, int)’ uses the default argument for parameter 2, which is not yet defined
zmq::context_t* context = new zmq::context_t(1);
^
make: *** [interface.o] Error 1
ERROR: compilation failed for package ‘rzmq’
* removing ‘/home/dima/R/x86_64-pc-linux-gnu-library/3.2/rzmq’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment