saleyn / eixx

Erlang C++ Interface
Apache License 2.0
137 stars 26 forks source link

Fails to compile on osx. #6

Closed fire closed 8 years ago

fire commented 9 years ago

I installed autoconf-archive and did ./bootstrap && ./configure && make

$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-am.lo -MD -MP -MF .deps/libeixx_la-am.Tpo -c -o libeixx_la-am.lo `test -f 'am.cpp' || echo './'`am.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-am.lo -MD -MP -MF .deps/libeixx_la-am.Tpo -c am.cpp  -fno-common -DPIC -o .libs/libeixx_la-am.o
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
1 warning generated.
mv -f .deps/libeixx_la-am.Tpo .deps/libeixx_la-am.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-atom.lo -MD -MP -MF .deps/libeixx_la-atom.Tpo -c -o libeixx_la-atom.lo `test -f 'atom.cpp' || echo './'`atom.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-atom.lo -MD -MP -MF .deps/libeixx_la-atom.Tpo -c atom.cpp  -fno-common -DPIC -o .libs/libeixx_la-atom.o
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
In file included from ../include/eixx/marshal/tuple.hpp:41:
../include/eixx/marshal/visit.hpp:41:31: warning: class template 'tuple' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class tuple;
                              ^
../include/eixx/marshal/defaults.hpp:44:42: note: previous use is here
        template <typename Alloc> struct tuple;
                                         ^
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
In file included from ../include/eixx/marshal/tuple.hpp:41:
../include/eixx/marshal/visit.hpp:42:31: warning: class template 'list' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class list;
                              ^
../include/eixx/marshal/defaults.hpp:45:42: note: previous use is here
        template <typename Alloc> struct list;
                                         ^
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
../include/eixx/marshal/tuple.hpp:48:27: warning: class template 'eterm' was
      previously declared as a struct template [-Wmismatched-tags]
template <typename Alloc> class eterm;
                          ^
../include/eixx/marshal/defaults.hpp:43:42: note: previous use is here
        template <typename Alloc> struct eterm;
                                         ^
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
../include/eixx/marshal/tuple.hpp:51:1: warning: 'tuple' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class tuple {
^
../include/eixx/marshal/defaults.hpp:44:35: note: did you mean class here?
        template <typename Alloc> struct tuple;
                                  ^~~~~~
                                  class
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:52:
../include/eixx/marshal/list.hpp:52:1: warning: 'list' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class list : protected alloc_base<cons<Alloc>, Alloc> {
^
../include/eixx/marshal/defaults.hpp:45:35: note: did you mean class here?
        template <typename Alloc> struct list;
                                  ^~~~~~
                                  class
In file included from atom.cpp:25:
../include/eixx/marshal/eterm.hpp:132:1: warning: 'eterm' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class eterm {
^
../include/eixx/marshal/defaults.hpp:43:35: note: did you mean class here?
        template <typename Alloc> struct eterm;
                                  ^~~~~~
                                  class
In file included from atom.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:606:
In file included from ../include/eixx/marshal/eterm.ipp:39:
In file included from ../include/eixx/marshal/eterm_format.hpp:70:
../include/eixx/marshal/eterm_format.ipp:108:16: warning: 'static' function
      'pvariable' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static var pvariable(const char **fmt)
               ^
../include/eixx/marshal/eterm_format.ipp:148:17: warning: 'static' function
      'patom' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static atom patom(const char **fmt)
                ^
../include/eixx/marshal/eterm_format.ipp:161:17: warning: 'static' function
      'pquotedatom' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static atom pquotedatom(const char **fmt)
                ^
10 warnings generated.
mv -f .deps/libeixx_la-atom.Tpo .deps/libeixx_la-atom.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-defaults.lo -MD -MP -MF .deps/libeixx_la-defaults.Tpo -c -o libeixx_la-defaults.lo `test -f 'defaults.cpp' || echo './'`defaults.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-defaults.lo -MD -MP -MF .deps/libeixx_la-defaults.Tpo -c defaults.cpp  -fno-common -DPIC -o .libs/libeixx_la-defaults.o
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
1 warning generated.
mv -f .deps/libeixx_la-defaults.Tpo .deps/libeixx_la-defaults.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-ref.lo -MD -MP -MF .deps/libeixx_la-ref.Tpo -c -o libeixx_la-ref.lo `test -f 'ref.cpp' || echo './'`ref.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-ref.lo -MD -MP -MF .deps/libeixx_la-ref.Tpo -c ref.cpp  -fno-common -DPIC -o .libs/libeixx_la-ref.o
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
In file included from ../include/eixx/marshal/tuple.hpp:41:
../include/eixx/marshal/visit.hpp:41:31: warning: class template 'tuple' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class tuple;
                              ^
../include/eixx/marshal/defaults.hpp:44:42: note: previous use is here
        template <typename Alloc> struct tuple;
                                         ^
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
In file included from ../include/eixx/marshal/tuple.hpp:41:
../include/eixx/marshal/visit.hpp:42:31: warning: class template 'list' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class list;
                              ^
../include/eixx/marshal/defaults.hpp:45:42: note: previous use is here
        template <typename Alloc> struct list;
                                         ^
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
../include/eixx/marshal/tuple.hpp:48:27: warning: class template 'eterm' was
      previously declared as a struct template [-Wmismatched-tags]
template <typename Alloc> class eterm;
                          ^
../include/eixx/marshal/defaults.hpp:43:42: note: previous use is here
        template <typename Alloc> struct eterm;
                                         ^
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:51:
../include/eixx/marshal/tuple.hpp:51:1: warning: 'tuple' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class tuple {
^
../include/eixx/marshal/defaults.hpp:44:35: note: did you mean class here?
        template <typename Alloc> struct tuple;
                                  ^~~~~~
                                  class
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:52:
../include/eixx/marshal/list.hpp:52:1: warning: 'list' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class list : protected alloc_base<cons<Alloc>, Alloc> {
^
../include/eixx/marshal/defaults.hpp:45:35: note: did you mean class here?
        template <typename Alloc> struct list;
                                  ^~~~~~
                                  class
In file included from ref.cpp:25:
../include/eixx/marshal/eterm.hpp:132:1: warning: 'eterm' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class eterm {
^
../include/eixx/marshal/defaults.hpp:43:35: note: did you mean class here?
        template <typename Alloc> struct eterm;
                                  ^~~~~~
                                  class
In file included from ref.cpp:25:
In file included from ../include/eixx/marshal/eterm.hpp:606:
In file included from ../include/eixx/marshal/eterm.ipp:39:
In file included from ../include/eixx/marshal/eterm_format.hpp:70:
../include/eixx/marshal/eterm_format.ipp:108:16: warning: 'static' function
      'pvariable' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static var pvariable(const char **fmt)
               ^
../include/eixx/marshal/eterm_format.ipp:148:17: warning: 'static' function
      'patom' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static atom patom(const char **fmt)
                ^
../include/eixx/marshal/eterm_format.ipp:161:17: warning: 'static' function
      'pquotedatom' declared in header file should be declared 'static inline'
      [-Wunneeded-internal-declaration]
    static atom pquotedatom(const char **fmt)
                ^
10 warnings generated.
mv -f .deps/libeixx_la-ref.Tpo .deps/libeixx_la-ref.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-basic_otp_node_local.lo -MD -MP -MF .deps/libeixx_la-basic_otp_node_local.Tpo -c -o libeixx_la-basic_otp_node_local.lo `test -f 'basic_otp_node_local.cpp' || echo './'`basic_otp_node_local.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT libeixx_la-basic_otp_node_local.lo -MD -MP -MF .deps/libeixx_la-basic_otp_node_local.Tpo -c basic_otp_node_local.cpp  -fno-common -DPIC -o .libs/libeixx_la-basic_otp_node_local.o
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
1 warning generated.
mv -f .deps/libeixx_la-basic_otp_node_local.Tpo .deps/libeixx_la-basic_otp_node_local.Plo
/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O0 -I../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1  -L/usr/local/lib -lboost_system -o libeixx.la -rpath /Users/fire/Documents/eixx/install/lib libeixx_la-am.lo libeixx_la-atom.lo libeixx_la-defaults.lo libeixx_la-ref.lo libeixx_la-basic_otp_node_local.lo
libtool: link: g++ -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libeixx.0.dylib  .libs/libeixx_la-am.o .libs/libeixx_la-atom.o .libs/libeixx_la-defaults.o .libs/libeixx_la-ref.o .libs/libeixx_la-basic_otp_node_local.o   -L/usr/local/lib -lboost_system  -O0 -pthread   -pthread -install_name  /Users/fire/Documents/eixx/install/lib/libeixx.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
libtool: link: (cd ".libs" && rm -f "libeixx.dylib" && ln -s "libeixx.0.dylib" "libeixx.dylib")
libtool: link: ( cd ".libs" && rm -f "libeixx.la" && ln -s "../libeixx.la" "libeixx.la" )
g++ -DHAVE_CONFIG_H -I. -I..  -g -O0 -I./../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/include -I/usr/local/Cellar/erlang/17.1_1/lib/erlang/lib/erl_interface-3.7.17/src   -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT test_node-test_node.o -MD -MP -MF .deps/test_node-test_node.Tpo -c -o test_node-test_node.o `test -f 'test_node.cpp' || echo './'`test_node.cpp
clang: warning: argument unused during compilation: '-MMD'
warning: unknown warning option '-Wno-unused-local-typedefs'
      [-Wunknown-warning-option]
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:51:
In file included from ./../include/eixx/marshal/tuple.hpp:41:
./../include/eixx/marshal/visit.hpp:41:31: warning: class template 'tuple' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class tuple;
                              ^
./../include/eixx/marshal/defaults.hpp:44:42: note: previous use is here
        template <typename Alloc> struct tuple;
                                         ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:51:
In file included from ./../include/eixx/marshal/tuple.hpp:41:
./../include/eixx/marshal/visit.hpp:42:31: warning: class template 'list' was
      previously declared as a struct template [-Wmismatched-tags]
    template <typename Alloc> class list;
                              ^
./../include/eixx/marshal/defaults.hpp:45:42: note: previous use is here
        template <typename Alloc> struct list;
                                         ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:51:
./../include/eixx/marshal/tuple.hpp:48:27: warning: class template 'eterm' was
      previously declared as a struct template [-Wmismatched-tags]
template <typename Alloc> class eterm;
                          ^
./../include/eixx/marshal/defaults.hpp:43:42: note: previous use is here
        template <typename Alloc> struct eterm;
                                         ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:51:
./../include/eixx/marshal/tuple.hpp:51:1: warning: 'tuple' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class tuple {
^
./../include/eixx/marshal/defaults.hpp:44:35: note: did you mean class here?
        template <typename Alloc> struct tuple;
                                  ^~~~~~
                                  class
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:52:
./../include/eixx/marshal/list.hpp:52:1: warning: 'list' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class list : protected alloc_base<cons<Alloc>, Alloc> {
^
./../include/eixx/marshal/defaults.hpp:45:35: note: did you mean class here?
        template <typename Alloc> struct list;
                                  ^~~~~~
                                  class
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
./../include/eixx/marshal/eterm.hpp:132:1: warning: 'eterm' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
class eterm {
^
./../include/eixx/marshal/defaults.hpp:43:35: note: did you mean class here?
        template <typename Alloc> struct eterm;
                                  ^~~~~~
                                  class
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:36:
./../include/eixx/connect/basic_otp_mailbox.hpp:105:45: warning: class template
      'async_queue' was previously declared as a struct template
      [-Wmismatched-tags]
    template<typename T, typename A> friend class util::async_queue;
                                            ^
./../include/eixx/util/async_queue.hpp:57:8: note: previous use is here
struct async_queue : std::enable_shared_from_this<async_queue<T, Alloc>>
       ^
./../include/eixx/connect/basic_otp_mailbox.hpp:105:45: note: did you mean
      struct here?
    template<typename T, typename A> friend class util::async_queue;
                                            ^~~~~
                                            struct
./../include/eixx/connect/basic_otp_mailbox.hpp:108:77: error: friend
      declaration of '_Function_handler' does not match any declaration in
      namespace 'std'
  ..._R, typename _F, typename... _Args> friend class std::_Function_handler;
                                                      ~~~~~^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:36:
In file included from ./../include/eixx/connect/basic_otp_mailbox.hpp:355:
./../include/eixx/connect/basic_otp_mailbox.ipp:93:18: warning: unused variable
      'res' [-Wunused-variable]
            bool res;
                 ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:37:
In file included from ./../include/eixx/connect/basic_otp_connection.hpp:40:
In file included from ./../include/eixx/connect/transport_otp_connection.hpp:349:
In file included from ./../include/eixx/connect/transport_otp_connection.ipp:34:
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:
./../include/eixx/connect/transport_otp_connection_tcp.ipp:694:5: warning:
      'MD5' is deprecated: first deprecated in OS X 10.7
      [-Wdeprecated-declarations]
    MD5((unsigned char *) string, length, (unsigned char *) digest.c);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/md5.h:116:16: note:
      'MD5' has been explicitly marked deprecated here
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md) ...
               ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:37:
In file included from ./../include/eixx/connect/basic_otp_connection.hpp:40:
In file included from ./../include/eixx/connect/transport_otp_connection.hpp:349:
In file included from ./../include/eixx/connect/transport_otp_connection.ipp:34:
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:
./../include/eixx/connect/transport_otp_connection_tcp.ipp:706:5: warning:
      'MD5_Init' is deprecated: first deprecated in OS X 10.7
      [-Wdeprecated-declarations]
    MD5_Init(&c);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/md5.h:113:5: note:
      'MD5_Init' has been explicitly marked deprecated here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:37:
In file included from ./../include/eixx/connect/basic_otp_connection.hpp:40:
In file included from ./../include/eixx/connect/transport_otp_connection.hpp:349:
In file included from ./../include/eixx/connect/transport_otp_connection.ipp:34:
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:
./../include/eixx/connect/transport_otp_connection_tcp.ipp:707:5: warning:
      'MD5_Update' is deprecated: first deprecated in OS X 10.7
      [-Wdeprecated-declarations]
    MD5_Update(&c, (unsigned char *) cookie, (uint32_t) strlen(cookie));
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/md5.h:114:5: note:
      'MD5_Update' has been explicitly marked deprecated here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_M...
    ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:37:
In file included from ./../include/eixx/connect/basic_otp_connection.hpp:40:
In file included from ./../include/eixx/connect/transport_otp_connection.hpp:349:
In file included from ./../include/eixx/connect/transport_otp_connection.ipp:34:
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:
./../include/eixx/connect/transport_otp_connection_tcp.ipp:708:5: warning:
      'MD5_Update' is deprecated: first deprecated in OS X 10.7
      [-Wdeprecated-declarations]
    MD5_Update(&c, (unsigned char *) chbuf,  (uint32_t) strlen(chbuf));
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/md5.h:114:5: note:
      'MD5_Update' has been explicitly marked deprecated here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_M...
    ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:37:
In file included from ./../include/eixx/connect/basic_otp_connection.hpp:40:
In file included from ./../include/eixx/connect/transport_otp_connection.hpp:349:
In file included from ./../include/eixx/connect/transport_otp_connection.ipp:34:
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:
./../include/eixx/connect/transport_otp_connection_tcp.ipp:709:5: warning:
      'MD5_Final' is deprecated: first deprecated in OS X 10.7
      [-Wdeprecated-declarations]
    MD5_Final(digest, &c);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/md5.h:115:5: note:
      'MD5_Final' has been explicitly marked deprecated here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERS...
    ^
test_node.cpp:62:17: error: non-constant-expression cannot be narrowed from type
      'long' to '__darwin_suseconds_t' (aka 'int') in initializer list
      [-Wc++11-narrowing]
                l_binding[N3]->to_long() };
                ^~~~~~~~~~~~~~~~~~~~~~~~
test_node.cpp:62:17: note: override this message by inserting an explicit cast
                l_binding[N3]->to_long() };
                ^~~~~~~~~~~~~~~~~~~~~~~~
                static_cast<__darwin_suseconds_t>( )
test_node.cpp:66:47: warning: format specifies type 'long' but the argument has
      type '__darwin_suseconds_t' (aka 'int') [-Wformat]
            tm.tm_hour, tm.tm_min, tm.tm_sec, tv.tv_usec);
                                              ^~~~~~~~~~
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:36:
./../include/eixx/connect/basic_otp_mailbox.hpp:107:5: error: too many template
      parameters in template redeclaration
    template<typename _R, typename... _ArgTypes> friend class std::function;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_node.cpp:68:15: note: in instantiation of template class
      'eixx::connect::basic_otp_mailbox<std::__1::allocator<char>,
      std::__1::recursive_mutex>' requested here
        a_mbox.node().stop();
              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1245:1: note:
      previous template declaration is here
template<class _Fp> class _LIBCPP_TYPE_VIS_ONLY function; // undefined
^~~~~~~~~~~~~~~~~~~
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:66:
In file included from ./../include/eixx/connect.hpp:36:
./../include/eixx/connect/basic_otp_mailbox.hpp:108:77: error: no class named
      '_Function_handler' in namespace 'std'
  ..._R, typename _F, typename... _Args> friend class std::_Function_handler;
                                                      ~~~~~^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:45:
In file included from ./../include/eixx/marshal/atom.hpp:37:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:502:5: error:
      static_assert failed "Allocator::value_type must be same type as
      value_type"
    static_assert((is_same<typename allocator_type::value_type, value_type>::value),
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../include/eixx/marshal/eterm_format.ipp:63:32: note: in instantiation of
      template class
      'std::__1::vector<eixx::marshal::eterm<std::__1::allocator<char> >,
      std::__1::allocator<char> >' requested here
        struct vector : public std::vector<eterm<Alloc>, Alloc> {
                               ^
./../include/eixx/marshal/eterm_format.ipp:350:23: note: in instantiation of
      template class
      'eixx::marshal::<anonymous>::vector<std::__1::allocator<char> >' requested
      here
        vector<Alloc> v(a_alloc);
                      ^
./../include/eixx/marshal/eterm.ipp:298:16: note: in instantiation of function
      template specialization 'eixx::marshal::eformat<std::__1::allocator<char>
      >' requested here
        return eformat<Alloc>(fmt, pap, a_alloc);
               ^
./../include/eixx/marshal/eterm.ipp:337:18: note: in instantiation of member
      function 'eixx::marshal::eterm<std::__1::allocator<char> >::format'
      requested here
    try { return format(Alloc(), &fmt, &ap); } catch (...) { va_end(ap)...
                 ^
test_node.cpp:38:45: note: in instantiation of member function
      'eixx::marshal::eterm<std::__1::allocator<char> >::format' requested here
    static const eterm s_put_chars = eterm::format("{io_request,_,_,{put...
                                            ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:50:
./../include/eixx/marshal/ref.hpp:199:84: error: invalid use of non-static data
      member 'u'
  ...::memcmp(&m_blob->data()->u, &t.m_blob->data()->u, sizeof(ref_blob::u)) ...
                                                               ~~~~~~~~~~^
./../include/eixx/marshal/eterm.ipp:79:37: note: in instantiation of member
      function 'eixx::marshal::ref<std::__1::allocator<char> >::operator=='
      requested here
        case REF:    return vt.r    == rhs.vt.r;
                                    ^
./../include/eixx/marshal/visit_match.hpp:65:23: note: in instantiation of
      member function 'eixx::marshal::eterm<std::__1::allocator<char>
      >::operator==' requested here
            return et == m_pattern;
                      ^
./../include/eixx/marshal/visit.hpp:50:23: note: in instantiation of function
      template specialization
      'eixx::marshal::visit_eterm_match<std::__1::allocator<char>
      >::operator()<long>' requested here
            : result( v(t1) )
                      ^
./../include/eixx/marshal/eterm.hpp:570:33: note: in instantiation of function
      template specialization 'eixx::marshal::wrap<bool,
      eixx::marshal::visit_eterm_match<std::__1::allocator<char> >
      >::wrap<long>' requested here
            case LONG:   return wrapper(v, vt.i);
                                ^
./../include/eixx/marshal/visit.hpp:66:19: note: in instantiation of function
      template specialization 'eixx::marshal::eterm<std::__1::allocator<char>
      >::visit<eixx::marshal::visit_eterm_match<std::__1::allocator<char> > >'
      requested here
        return et.visit(*static_cast<const Derived*>(this)).result;
                  ^
./../include/eixx/marshal/eterm.ipp:263:22: note: in instantiation of function
      template specialization
      'eixx::marshal::static_visitor<eixx::marshal::visit_eterm_match<std::__1::allocator<char>
      >, bool>::apply_visitor<std::__1::allocator<char> >' requested here
        if (!visitor.apply_visitor(*this))
                     ^
test_node.cpp:41:21: note: in instantiation of member function
      'eixx::marshal::eterm<std::__1::allocator<char> >::match' requested here
    if (s_put_chars.match(a_msg->msg(), &l_binding))
                    ^
In file included from test_node.cpp:2:
In file included from ./../include/eixx/eixx.hpp:65:
In file included from ./../include/eixx/eterm.hpp:37:
In file included from ./../include/eixx/marshal/eterm.hpp:52:
In file included from ./../include/eixx/marshal/list.hpp:356:
./../include/eixx/marshal/list.ipp:55:9: error: 'auto' deduced as 'const
      eixx::marshal::eterm<std::__1::allocator<char> > *' in declaration of 'p'
      and deduced as 'const eixx::marshal::eterm<std::__1::allocator<char> >' in
      declaration of 'end'
    for(auto p = items, *end = items+N; p != end; ++p, ++hd) {
        ^        ~~~~~         ~~~~~~~
./../include/eixx/marshal/list.hpp:146:27: note: in instantiation of member
      function 'eixx::marshal::list<std::__1::allocator<char> >::init' requested
      here
        : base_t(alloc) { init(items, a_size, alloc); }
                          ^
./../include/eixx/marshal/list.hpp:143:11: note: in instantiation of member
      function 'eixx::marshal::list<std::__1::allocator<char> >::list' requested
      here
        : list(items, N, alloc) {}
          ^
./../include/eixx/marshal/list.hpp:245:16: note: in instantiation of function
      template specialization 'eixx::marshal::list<std::__1::allocator<char>
      >::list<1>' requested here
        return list<Alloc>(l, a);
               ^
test_node.cpp:88:15: note: in instantiation of function template specialization
      'eixx::marshal::list<std::__1::allocator<char> >::make<const char *>'
      requested here
        list::make("This is a test string"), &g_io_server->self());
              ^
15 warnings and 7 errors generated.
make[2]: *** [test_node-test_node.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
myers commented 9 years ago

I also get this.

saleyn commented 9 years ago

It seems that it's actually using clang in your case instead of g++ to build the library. It's currently not compatible with clang.

myers commented 9 years ago

I attempted to do this with g++:

$ brew install gcc
$ CC=/usr/local/bin/gcc-4.9 CXX=/usr/local/bin/g++-4.9 ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/bin/g++-4.9 accepts -g... yes
checking dependency style of /usr/local/bin/g++-4.9... gcc3
checking whether /usr/local/bin/g++-4.9 supports C++11 features by default... yes
checking build system type... x86_64-apple-darwin13.4.0
checking host system type... x86_64-apple-darwin13.4.0
checking how to print strings... printf
checking for gcc... /usr/local/bin/gcc-4.9
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/bin/gcc-4.9 accepts -g... yes
checking for /usr/local/bin/gcc-4.9 option to accept ISO C89... none needed
checking whether /usr/local/bin/gcc-4.9 understands -c and -o together... yes
checking dependency style of /usr/local/bin/gcc-4.9... gcc3
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/local/bin/gcc-4.9... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin13.4.0 file names to x86_64-apple-darwin13.4.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin13.4.0 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from /usr/local/bin/gcc-4.9 object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... /usr/local/bin/gcc-4.9 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/local/bin/gcc-4.9 supports -fno-rtti -fno-exceptions... no
checking for /usr/local/bin/gcc-4.9 option to produce PIC... -fno-common -DPIC
checking if /usr/local/bin/gcc-4.9 PIC flag -fno-common -DPIC works... yes
checking if /usr/local/bin/gcc-4.9 static flag -static works... no
checking if /usr/local/bin/gcc-4.9 supports -c -o file.o... yes
checking if /usr/local/bin/gcc-4.9 supports -c -o file.o... (cached) yes
checking whether the /usr/local/bin/gcc-4.9 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... /usr/local/bin/g++-4.9 -E
checking for ld used by /usr/local/bin/g++-4.9... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the /usr/local/bin/g++-4.9 linker (/usr/bin/ld) supports shared libraries... yes
checking for /usr/local/bin/g++-4.9 option to produce PIC... -fno-common -DPIC
checking if /usr/local/bin/g++-4.9 PIC flag -fno-common -DPIC works... yes
checking if /usr/local/bin/g++-4.9 static flag -static works... no
checking if /usr/local/bin/g++-4.9 supports -c -o file.o... yes
checking if /usr/local/bin/g++-4.9 supports -c -o file.o... (cached) yes
checking whether the /usr/local/bin/g++-4.9 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/local/bin/g++-4.9 accepts -g... (cached) yes
checking dependency style of /usr/local/bin/g++-4.9... (cached) gcc3
checking for a sed that does not truncate output... (cached) /usr/local/bin/gsed
checking for boostlib >= 1.49.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::ASIO library is available... yes
checking for main in -lboost_system-mt... yes
checking whether the Boost::Date_Time library is available... yes
checking for exit in -lboost_date_time-mt... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt... yes
checking whether the Boost::Unit_Test_Framework library is available... yes
checking whether openssl crypto is enabled... yes
checking openssl/opensslconf.h usability... yes
checking openssl/opensslconf.h presence... yes
checking for openssl/opensslconf.h... yes
checking for CRYPTO_lock in -lcrypto... yes
checking for AES_ecb_encrypt in -lcrypto... yes
checking for BF_ecb_encrypt in -lcrypto... yes
checking for CAST_ecb_encrypt in -lcrypto... yes
checking for Camellia_ecb_encrypt in -lcrypto... no
checking for DES_ecb_encrypt in -lcrypto... yes
checking for idea_ecb_encrypt in -lcrypto... no
checking for RC2_ecb_encrypt in -lcrypto... yes
checking for RC5_32_ecb_encrypt in -lcrypto... yes
checking for MD2 in -lcrypto... yes
checking for MD4 in -lcrypto... yes
checking for MD5 in -lcrypto... yes
checking for RIPEMD160 in -lcrypto... yes
checking for SHA1 in -lcrypto... yes
checking for RSA_set_method in -lcrypto... yes
checking for DSA_set_method in -lcrypto... yes
checking for DH_set_method in -lcrypto... yes
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for gettimeofday... yes
checking for socket... yes
checking for sqrt... yes
configure: Erlang environment
checking for erlc... /usr/local/bin/erlc
checking for erl... /usr/local/bin/erl
checking for Erlang/OTP 'kernel' library subdirectory... /usr/local/Cellar/erlang/17.3/lib/erlang/lib/kernel-3.0.3
checking for Erlang/OTP 'kernel' library version... 3.0.3
checking for Erlang/OTP 'stdlib' library subdirectory... /usr/local/Cellar/erlang/17.3/lib/erlang/lib/stdlib-2.2
checking for Erlang/OTP 'stdlib' library version... 2.2
checking for Erlang/OTP 'sasl' library subdirectory... /usr/local/Cellar/erlang/17.3/lib/erlang/lib/sasl-2.4.1
checking for Erlang/OTP 'sasl' library version... 2.4.1
checking for Erlang/OTP 'erl_interface' library subdirectory... /usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18
checking for Erlang/OTP 'erl_interface' library version... 3.7.18
checking for erl... /usr/local/bin/erl
checking for erlc... /usr/local/bin/erlc
checking for erlc... /usr/local/bin/erlc
checking for erl... /usr/local/bin/erl
checking for Erlang/OTP root directory... /usr/local/Cellar/erlang/17.3/lib/erlang
checking /usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/src/epmd/ei_epmd.h usability... yes
checking /usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/src/epmd/ei_epmd.h presence... yes
checking for /usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/src/epmd/ei_epmd.h... yes
checking for Erlang/OTP ERTS version... 6.2
checking for Erlang/OTP ERTS directory... /usr/local/Cellar/erlang/17.3/lib/erlang/erts-6.2
checking for Erlang/OTP release... 17
checking for Erlang/OTP ERTS version... (cached) 6.2
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/eixx.pc
config.status: creating test/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing include/eixx/config.h commands
config.status: creating include/eixx/config.h - prefix EIXX for config.h defines
config.status: include/eixx/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

========================================================================
   CXXFLAGS:  -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -pthread -I/usr/local/include
    LDFLAGS:  -L/usr/local/lib -lboost_system -L/usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/lib
      BOOST:
     Erlang: /usr/local/Cellar/erlang/17.3/lib/erlang
------------------------------------------------------------------------
             Configuration completed successfully!
========================================================================

$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
/usr/local/bin/g++-4.9 -DHAVE_CONFIG_H -I. -I..  -g -O0 -I./../include -pthread -I/usr/local/include -I/usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/include -I/usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/src   -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -MT test_node-test_node.o -MD -MP -MF .deps/test_node-test_node.Tpo -c -o test_node-test_node.o `test -f 'test_node.cpp' || echo './'`test_node.cpp
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:0,
                 from ./../include/eixx/connect/transport_otp_connection.ipp:34,
                 from ./../include/eixx/connect/transport_otp_connection.hpp:349,
                 from ./../include/eixx/connect/basic_otp_connection.hpp:40,
                 from ./../include/eixx/connect.hpp:37,
                 from ./../include/eixx/eixx.hpp:66,
                 from test_node.cpp:2:
./../include/eixx/connect/transport_otp_connection_tcp.ipp: In member function 'uint32_t eixx::connect::tcp_connection<Handler, Alloc>::md_32(char*, int)':
./../include/eixx/connect/transport_otp_connection_tcp.ipp:694:5: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated (declared at /usr/include/openssl/md5.h:116) [-Wdeprecated-declarations]
     MD5((unsigned char *) string, length, (unsigned char *) digest.c);
     ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp: In member function 'void eixx::connect::tcp_connection<Handler, Alloc>::gen_digest(unsigned int, const char*, uint8_t*)':
./../include/eixx/connect/transport_otp_connection_tcp.ipp:706:5: warning: 'int MD5_Init(MD5_CTX*)' is deprecated (declared at /usr/include/openssl/md5.h:113) [-Wdeprecated-declarations]
     MD5_Init(&c);
     ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:707:5: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated (declared at /usr/include/openssl/md5.h:114) [-Wdeprecated-declarations]
     MD5_Update(&c, (unsigned char *) cookie, (uint32_t) strlen(cookie));
     ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:708:5: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated (declared at /usr/include/openssl/md5.h:114) [-Wdeprecated-declarations]
     MD5_Update(&c, (unsigned char *) chbuf,  (uint32_t) strlen(chbuf));
     ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:709:5: warning: 'int MD5_Final(unsigned char*, MD5_CTX*)' is deprecated (declared at /usr/include/openssl/md5.h:115) [-Wdeprecated-declarations]
     MD5_Final(digest, &c);
     ^
test_node.cpp: In function 'bool on_main_msg(eixx::otp_mailbox&, eixx::transport_msg*&)':
test_node.cpp:62:40: warning: narrowing conversion of 'l_binding.eixx::marshal::varbind<Alloc>::operator[]<std::allocator<char> >(eixx::marshal::atom((* & N3)))->eixx::marshal::eterm<Alloc>::to_long<std::allocator<char> >()' from 'long int' to '__darwin_suseconds_t {aka int}' inside { } [-Wnarrowing]
                 l_binding[N3]->to_long() };
                                        ^
test_node.cpp:66:57: warning: format '%ld' expects argument of type 'long int', but argument 5 has type '__darwin_suseconds_t {aka int}' [-Wformat=]
             tm.tm_hour, tm.tm_min, tm.tm_sec, tv.tv_usec);
                                                         ^
test_node.cpp:66:57: warning: format '%ld' expects argument of type 'long int', but argument 5 has type '__darwin_suseconds_t {aka int}' [-Wformat=]
In file included from ./../include/eixx/connect/transport_otp_connection_tcp.hpp:209:0,
                 from ./../include/eixx/connect/transport_otp_connection.ipp:34,
                 from ./../include/eixx/connect/transport_otp_connection.hpp:349,
                 from ./../include/eixx/connect/basic_otp_connection.hpp:40,
                 from ./../include/eixx/connect.hpp:37,
                 from ./../include/eixx/eixx.hpp:66,
                 from test_node.cpp:2:
./../include/eixx/connect/transport_otp_connection_tcp.ipp: In instantiation of 'uint32_t eixx::connect::tcp_connection<Handler, Alloc>::md_32(char*, int) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; uint32_t = unsigned int]':
./../include/eixx/connect/transport_otp_connection_tcp.ipp:682:39:   required from 'uint32_t eixx::connect::tcp_connection<Handler, Alloc>::gen_challenge() [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; uint32_t = unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:299:37:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_connect(const boost::system::error_code&) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:276:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_read_body(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:218:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_read_header(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:165:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_write(const boost::system::error_code&) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:132:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_connect(const boost::system::error_code&, boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator = boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:105:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_resolve(const boost::system::error_code&, boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator = boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:85:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::connect(eixx::atom, eixx::atom, eixx::atom) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; eixx::atom = eixx::marshal::atom]'
test_node.cpp:148:1:   required from here
./../include/eixx/connect/transport_otp_connection_tcp.ipp:694:69: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated (declared at /usr/include/openssl/md5.h:116) [-Wdeprecated-declarations]
     MD5((unsigned char *) string, length, (unsigned char *) digest.c);
                                                                     ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp: In instantiation of 'void eixx::connect::tcp_connection<Handler, Alloc>::gen_digest(unsigned int, const char*, uint8_t*) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; uint8_t = unsigned char]':
./../include/eixx/connect/transport_otp_connection_tcp.ipp:513:70:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_read_challenge_body(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:465:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_read_challenge_header(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:427:68:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_read_status_body(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:388:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_read_status_header(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:352:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_write_name(const boost::system::error_code&) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:334:19:   [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
./../include/eixx/connect/transport_otp_connection_tcp.ipp:218:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_read_header(const boost::system::error_code&, size_t) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; size_t = long unsigned int]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:165:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_write(const boost::system::error_code&) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:132:23:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_epmd_connect(const boost::system::error_code&, boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator = boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:105:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::handle_resolve(const boost::system::error_code&, boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator = boost::asio::ip::basic_resolver_iterator<boost::asio::ip::tcp>]'
./../include/eixx/connect/transport_otp_connection_tcp.ipp:85:19:   required from 'void eixx::connect::tcp_connection<Handler, Alloc>::connect(eixx::atom, eixx::atom, eixx::atom) [with Handler = eixx::connect::basic_otp_connection<std::allocator<char>, std::recursive_mutex>; Alloc = std::allocator<char>; eixx::atom = eixx::marshal::atom]'
test_node.cpp:148:1:   required from here
./../include/eixx/connect/transport_otp_connection_tcp.ipp:706:16: warning: 'int MD5_Init(MD5_CTX*)' is deprecated (declared at /usr/include/openssl/md5.h:113) [-Wdeprecated-declarations]
     MD5_Init(&c);
                ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:707:71: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated (declared at /usr/include/openssl/md5.h:114) [-Wdeprecated-declarations]
     MD5_Update(&c, (unsigned char *) cookie, (uint32_t) strlen(cookie));
                                                                       ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:708:70: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated (declared at /usr/include/openssl/md5.h:114) [-Wdeprecated-declarations]
     MD5_Update(&c, (unsigned char *) chbuf,  (uint32_t) strlen(chbuf));
                                                                      ^
./../include/eixx/connect/transport_otp_connection_tcp.ipp:709:25: warning: 'int MD5_Final(unsigned char*, MD5_CTX*)' is deprecated (declared at /usr/include/openssl/md5.h:115) [-Wdeprecated-declarations]
     MD5_Final(digest, &c);
                         ^
mv -f .deps/test_node-test_node.Tpo .deps/test_node-test_node.Po
/bin/sh ../libtool  --tag=CXX   --mode=link /usr/local/bin/g++-4.9  -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -L/usr/local/lib -L/usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/lib -L/usr/local/lib -lboost_system -o test_node test_node-test_node.o libeixx.la -lei -lboost_system -lboost_thread-mt -lcrypto
libtool: link: /usr/local/bin/g++-4.9 -MMD -Wall -Wno-unused-local-typedefs -fno-strict-aliasing -std=c++11 -DBOOST_SYSTEM_NO_DEPRECATED=1 -o .libs/test_node test_node-test_node.o -Wl,-bind_at_load  -L/usr/local/lib -L/usr/local/Cellar/erlang/17.3/lib/erlang/lib/erl_interface-3.7.18/lib ./.libs/libeixx.dylib -lei -lboost_system -lboost_thread-mt -lcrypto -pthread
Undefined symbols for architecture x86_64:
  "eixx::connect::basic_otp_node_local::basic_otp_node_local(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      eixx::connect::basic_otp_node<std::allocator<char>, std::recursive_mutex>::basic_otp_node(boost::asio::io_service&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::allocator<char> const&, signed char) in test_node-test_node.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [test_node] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

any suggestions to try?

saleyn commented 9 years ago

There are two problems there:

mrmnmly commented 9 years ago

I had same problem - updating openssl solved the problem:

sudo port upgrade openssl