-
Notifications
You must be signed in to change notification settings - Fork 27
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
Asterisk crashes when homebrew is installed somewhere other than /usr/local
#20
Comments
Unfortunately, the Asterisk build system is built using Dark Magic™. When it works, it's real nice and easy. When it breaks, debugging it is a pain. The link step for the executable is the Asterisk also builds a number of module. I have a feeling if the main exe is linked incorrectly, then a number of the modules will also be linked incorrectly. If you
I'll do some debugging on my own, but I'm not quite sure when I'll have the chance to dig into it. |
@afh - I finally was able to setup a fresh El Capitan VM, but I could not reproduce your problem :-(
I have made a few changes recently, but it seems extremely unlikely that one of those accidentally fixed the issue. It's also possible that you have some dependency in |
@leedm777 I'm quite clueless at the moment. I've updated to the latest version of the formula from you tap and as requested I've gathered all relevant files in the following gist: https://gist.github.com/afh/0db81c018136f2d40598 (Personally I like working with log files locally on my workstation, so here's a link to download a ZIP archive of the gist: https://gist.github.com/afh/0db81c018136f2d40598/archive/f31103c834aa6ea2f260e3a89ba65709beefeaba.zip) I wonder what the issue could be? |
@afh Thanks for the feedback! I finally got a setup to reproduce it.
(FWIW, the scenario above where I couldn't reproduce the issue, I was using the CLT without Xcode, and did not use I'm trying to narrow it down further, but for whatever reason the linker is sometimes searching |
@afh I've confirmed that Xcode+CLT+GCC does not have the link problem you've discovered, at least on my machine Can you try re-installing without the On my regular dev machine, So maybe it's the combination of |
@leedm777 Compiling gcc takes a while… ⏳ I'll post updates as soon as it's done |
@leedm777 I can confirm that compiling asterisk without the Unfortunately I find GCC quite heavy as a dependency and would really like to see asterisk compile correctly with LLVM. Yet I understand that it could be of rather little interest to you to see this edge case fixed. I'm uncertain as to whether the different behaviour in GCC and LLVM when linking OpenSSL is within the compilers itself or within the asterisk specific black magic 🔮 |
I may poke around with it some more, but this is getting into the blackest of the Asterisk build magic. I doubt it's even in clang specifically, but something about Xcode's distribution of clang. Or even in some library distributed with Xcode. FWIW, if you could run homebrew in |
Lots of great info Homebrew/legacy-homebrew#46126 regarding what happens when you install Asterisk somewhere other than
/usr
or/usr/local
. Thanks to @afh for the detailed report in that thread.The text was updated successfully, but these errors were encountered: