New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on mac make failed: Undefined symbols for architecture x86_64: #50
Comments
something is not right with the OpenSSL installation and configuration. On Sat, Jul 9, 2016 at 2:04 AM, janreyho notifications@github.com wrote:
|
got the same problem compiling on mac. The problem is your openssl headers are not the ones installed by brew (if you used brew to install openssl). The default openssl on mac is 0.9.8. Coturn uses the 1.0+. So, you need to upgrade it. I used brew, but I needed to pass the new */openssl/include and */openssl/lib to the compiler(Makefile) for it to run; |
I am not sure that I understand what is the problem here. I just compiled $ bin/turnserver ==== Show him the instruments, Practical Frost: ==== 1: TLS supported I have not had a single error or warning, everything worked as-is. Oleg On Wed, Oct 19, 2016 at 8:42 PM, Marcos Faria Arruda <
|
Saw the same issue. I want to try the solution that @marcosArruda said, but don't know how to do. How to pass the new */openssl/include and */openssl/lib to the compiler(Makefile)? |
you can configure C search paths in the "configure" command with
--includedir option. Or you can create a whole "root" directory on your
disk with all necessary headers and libraries and then use --prefix=...
option for the configure command.
Oleg
…On Tue, Feb 21, 2017 at 12:22 AM, Stony Zhang ***@***.***> wrote:
Saw the same issue. I want to try the solution that @marcosArruda
<https://github.com/marcosArruda> said, but don't know how to do.
How to pass the new */openssl/include and */openssl/lib to the
compiler(Makefile)?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#50 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFq2UCwHI7qBDTzdK5rHN8GCEsyfwxY2ks5rep7bgaJpZM4JIlI9>
.
|
@stonyz Not on my machine. I can't see for real right now, but you need to edit the Makefile and use the paths like @mom040267 said. |
I specified that the latest version of OpensSL still throws the same error. |
➜ coturn git:(master) ✗ make
pwd
/Users/hejiayi/Desktop/yinyueke/coturn
mkdir -p bin
cc -g -Wall -Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include -DTURN_HAS_SIN_LEN -DTURN_NO_THREAD_BARRIERS -DTURN_HAS_DAEMON -DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++ -I/usr/local/include/ -I/usr/local/include/ src/apps/stunclient/stunclient.c src/apps/common/apputils.c src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c -o bin/turnutils_stunclient -Llib -lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lresolv -lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads -lsqlite3 -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib
Undefined symbols for architecture x86_64:
"_DTLSv1_2_client_method", referenced from:
_turn_get_method in apputils-99f2a9.o
"_DTLSv1_2_server_method", referenced from:
_turn_get_method in apputils-99f2a9.o
"_EVP_aes_128_gcm", referenced from:
_get_cipher_type in libturnclient.a(ns_turn_msg.o)
"_EVP_aes_256_gcm", referenced from:
_get_cipher_type in libturnclient.a(ns_turn_msg.o)
"_TLSv1_1_client_method", referenced from:
_turn_get_method in apputils-99f2a9.o
"_TLSv1_1_server_method", referenced from:
_turn_get_method in apputils-99f2a9.o
"_TLSv1_2_client_method", referenced from:
_turn_get_method in apputils-99f2a9.o
"_TLSv1_2_server_method", referenced from:
_turn_get_method in apputils-99f2a9.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/turnutils_stunclient] Error 1
The text was updated successfully, but these errors were encountered: