Skip to content
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

installing in mac problem #65

Open
lgphp opened this issue May 29, 2020 · 6 comments
Open

installing in mac problem #65

lgphp opened this issue May 29, 2020 · 6 comments

Comments

@lgphp
Copy link

lgphp commented May 29, 2020

lgphp@mac-pro ~GOPATH/media-server-go (master●)$ go install [ruby-2.3.7p456]

github.com/notedit/media-server-go/wrapper

Undefined symbols for architecture x86_64:
"_X509_getm_notAfter", referenced from:
DTLSConnection::GenerateCertificate() in libmediaserver.a(dtls.o)
"_X509_getm_notBefore", referenced from:
DTLSConnection::GenerateCertificate() in libmediaserver.a(dtls.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@Leeaandrob
Copy link

I had similar issues installing on ubuntu =/

@imtiyazs
Copy link

It seems you are having wrong compiler.

I am using latest MacOS Catalina and below is the clang version:

Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@lgphp
Copy link
Author

lgphp commented May 31, 2020

i am using clang complier :
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@imtiyazs
Copy link

imtiyazs commented Jun 1, 2020

May be this can help.

I know this is an old issue, but just for resolution: using g++/clang++ in place of gcc/clang solves the issue.

Google led me to this thread once again, and replacing clang with clang++ solved the issue again :)

Switching from gcc to g++ to compile solved this issue for me (for a non-JSON issue, but similar issue).

https://stackoverflow.com/questions/7533321/error-when-compiling-some-simple-c-code

nlohmann/json#285

@notedit
Copy link
Owner

notedit commented Jun 1, 2020

@imtiyazs thanks

@imtiyazs
Copy link

imtiyazs commented Jun 1, 2020

@notedit My Pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants