Closed fire closed 8 years ago
I also get this.
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.
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?
There are two problems there:
For some reason in that OpenSSL version MD5 functions are marked as deprecated. I am using:
$ openssl version OpenSSL 1.0.1j 15 Oct 2014
And the functions don't have a deprecated attribute. So this must be specific to your installation of OpenSSL?
I had same problem - updating openssl solved the problem:
sudo port upgrade openssl
I installed autoconf-archive and did ./bootstrap && ./configure && make