Mac: Repair current OpenSSL undefined reference from homebrew to dynamic #1971
Conversation
* These are the default locations, as of today, for Mac OS X 10.11.4 *(El Capitan)* **NOTES** * This could really use some environment variables for homebrew root and which SSL version is in use. Not familiar enough yet with recent Qt to do this at this time. * Symbolic links could also be used but again determining the current homebrew SSL installed is something to be desired e.g. similar to `$ openssl version` e.g. perhaps a `cut` of `$ brew info openssl`? Refs: * http://brew.sh/ *(homepage)* * https://github.com/Homebrew/brew *(repo)* Historical refs: * QupZilla#1888 * QupZilla#1850
No, on 3 systems I tested the openssl libs were installed in I will only accept correct way: parsing |
Please specify exactly how you got it there then. This Mac is about 2 weeks old and this is where
Elaborate please on your quotes of how you went from this to this.
That will only give the version and not the Keeping it as is will break it out of the box whereas your alleged "three" are flawed or changed somehow. e.g. please describe. |
I did build In any case, you should only add the new include/lib paths, not change the current (and working) one.
Well, in that case try something different. If
Yes, I reviewed your pull request.
I accept pull requests, you can improve the code and documentation. Patches are always welcome (but only correct patches, that goes without saying).
It works on your machine as of May 13 2016. When there is new openssl version it won't work anymore. |
As far as I know openssl will never go away... it's core to Linux as well. So this is a bad assumption.
Not just mine... anything new out of the box. I presume that
Have your friend uninstall openssl and brew and reinstall... or ask him/her how they moved it... but... $ brew --prefix
/usr/local ... yields something promising (found at Btw... quote from them
... at So your friends machine is booged for absolute sure now. :) ;)
Until I asked for more information... I appreciate the cooperation now.
So this is absolutely the wrong path now.
Of course... that's why I am here to fix some bugs. :) However you need to take the initiative as well to get others started out of the box... I bought a $1000.00 Macintosh as a test machine and I've resurrected my understanding of it and Qt a bit just in a few weeks.
You may want to look into a Hackintosh but you didn't hear that from me. ;) |
It won't go away, at least not in the foreseeable future. What it will, on the other hand, is get a new release. Once it is |
Here we go. Please ask your friend to send you a dump of: $ brew config
HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 5f06312916e8ae518e8a9f212f7e683c49ceee67
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 410ff750e698a95e6f9dccdf4f2098ab008a8509
Core tap last commit: 2 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Clang: 7.3 build 703
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
System Ruby: 2.0.0-p648
OS X: 10.11.4-x86_64
Xcode: 7.3.1
CLT: 7.3.1.0.1.1461711523
X11: N/A ... if he/she has |
You can call any system command (including your own shell scripts) with |
Thanks. Will look into that after I figure out the specifics of $ brew --prefix openssl
/usr/local/opt/openssl ... seems they have an artifact laying around of the old, incorrect, tree. :\ EDIT: Looks like it's a symlink mentioned in this PR... so not bugged. |
@nowrep
|
Can you please post output of |
…@nowrep * Addresses a long standing bug on Mac compiling with this project * Also correct the BUILDING markdown file for OS X... was awaiting response from the owner to do this to see which direction to move. **NOTES** * Quotes **are required** when using `$$system` here otherwise `cut` fails with no switch argument found Applies to QupZilla#1971
Sure... $ brew info openssl
openssl: stable 1.0.2h (bottled) [keg-only]
SSL/TLS cryptography library
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2h (1,691 files, 12M)
Poured from bottle on 2016-05-11 at 12:48:11
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb
==> Dependencies
Build: makedepend ✘
==> Options
--universal
Build a universal binary
--without-test
Skip build-time tests (not recommended)
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include |
btw that last commit compiles and installs peachy. :) |
* Do this so it actually parses markdown Indirectly related to QupZilla#1971
* Even though the project is named `brew` and owner is `Homebrew` their pages refers to it as `Homebrew` Applies to QupZilla#1971
* There are more symlinks... so the results from `brew --prefix openssl` yields a symlinked path and adding `/include` and `/lib` to them resolve alternately to the `Cellar`. Feel **much** better about using this one since it's an exact API as I mentioned earlier in the PR Applies to QupZilla#1971
Homebrew maintainer here. @Martii's Homebrew installation PATH is the default and using @Martii In future if you CC me to an issue it would be good to provide me with more context and spend a little more time verifying if something is a bug or not (and if it is: submit it to the Homebrew bugtracker). Thanks! |
@Martii, the following will not works. It was correct before your change: |
Glad you are in a good mood today. You're being perceived as being funny and facetious with this portion. ;)
That's why you were striked out. Discovery is all about knowing when to approach someone instead of blindly being led. Apologies for the 12 hours today and 3 days of investigation which led to a Cc and not a To... just thought it was about time to get an outside opinion on this contextual issue in the PR. Thanks so much for dropping in.
You guys will just have to wait your turn. ;) :) As Yoda would say... "There, there is another" mentioned in here and it'll be mirrored to your issue tracker eventually. @nowrep @cranes-bill |
[![Build Status](https://travis-ci.org/QupZilla/qupzilla.svg?branch=master)](https://travis-ci.org/QupZilla/qupzilla) | ||
Homepage: [http://www.qupzilla.com](http://www.qupzilla.com) | ||
Blog: [http://blog.qupzilla.com](http://blog.qupzilla.com) | ||
IRC: `#qupzilla` at `irc.freenode.net` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes break newlines, the double space at the end of line must stay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They might indeed... however my editor is permanently set to strip trailing spaces and is done automatically. The MD could use some fine tuning for sure outside of this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an issue, those newlines are intended (double space in md = newline).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a pain.. this isn't quite what I was expecting... and yes I did test it in the GH editor before committing... so GH has a bug with their preview too... Give me a minute and I'll go find that option. Eventually this should be phased out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw who's spec is that? I've never seen that in CommonMark nor Daring Fireballs... but since this is a new discovery I may have missed it. Is it GH specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, it may indeed be GitHub extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you do want to insert a
<br />
break tag using Markdown, you end a line with two or more spaces, then type return.
* Only one newline is needed and has nothing to do with trailing spaces... at least according to the GH editor * Restores the flow :) Applies to QupZilla#1971
@cranes-bill Renaming the BUILDING to BUILDING.md is fine, as long as all links are changed too. |
It won't work until it's merged ... click the View button in the Files changed way up top. |
They are in this PR... I did a grep for |
* GH preview said it didn't need this but I guess it does... we'll try newlines everywhere ;) Applies to QupZilla#1971
@nowrep |
Yes, I need the newlines in readme. When I last tried to remove the spaces, the rendered document had no newlines. Not sure if it is still needed (github preview indicates that it is not, so we may try it without). |
I've literally never heard of this before... so what did you want me to do? |
https://github.com/Martii/qupzilla/blob/edbb1eff723409b169b2e201568ff25b64a8ad05/README.md it is needed, so keep the double spaces (for newlines) as they were. It's good idea to configure your text editor to not fix whitespaces automatically, because no one likes patches full of whitespace changes. |
That's why you do this:
It's actually a terrible idea to not fix whitespace. |
It's not, it makes it harder to find the right commit in history. And if you really want to fix the whitespaces, do it in separate commit. |
I'll put them back in for this but for future reference I will not be able to tell until it's up and they'll have to be backed out. You have no choice in this matter unless you try defining an editor config profile to override this... which is why it should be a separate issue. Btw it's very simple to make all commits merged into one now so it doesn't muddy up the commit history here if that's what you are worried about. Use the UI. |
I'm not worried about this, there is an option to squash and merge. The problem is when you |
* Restore the spaces manually **NOTES** This is not any known specification but it's what @nowrep wants Refs: * [CommonMark](http://commonmark.org/) * [Daring Fireballs](http://daringfireball.net/projects/markdown/)
Let me check to see if that did it. |
Looks like I got the commit in before you merged... confusing here... GH went all wacky too. |
Try using:
So it's definitely a non-issue... not to mention this is the least feature of |
* Homebrew is currently production state for openssl e.g. runtimes, snapshots, or whatever other synonym is used * Add some error protection if neither are found. * Precedence is production *(pro)* then development *(dev)* Post followup for QupZilla#1971
…mic (#1971) * Repair current OpenSSL static reference from homebrew * These are the default locations, as of today, for Mac OS X 10.11.4 *(El Capitan)* **NOTES** * This could really use some environment variables for homebrew root and which SSL version is in use. Not familiar enough yet with recent Qt to do this at this time. * Symbolic links could also be used but again determining the current homebrew SSL installed is something to be desired e.g. similar to `$ openssl version` e.g. perhaps a `cut` of `$ brew info openssl`? Refs: * http://brew.sh/ *(homepage)* * https://github.com/Homebrew/brew *(repo)* Historical refs: * #1888 * #1850 * Mac: Scrape `brew` output for openssl working install directory as per @nowrep * Addresses a long standing bug on Mac compiling with this project * Also correct the BUILDING markdown file for OS X... was awaiting response from the owner to do this to see which direction to move. **NOTES** * Quotes **are required** when using `$$system` here otherwise `cut` fails with no switch argument found Applies to #1971 * Fix BUILDING to BUILDING.md * Do this so it actually parses markdown Indirectly related to #1971 * Fix `brew` to Homebrew * Even though the project is named `brew` and owner is `Homebrew` their pages refers to it as `Homebrew` Applies to #1971 * Yet another change * There are more symlinks... so the results from `brew --prefix openssl` yields a symlinked path and adding `/include` and `/lib` to them resolve alternately to the `Cellar`. Feel **much** better about using this one since it's an exact API as I mentioned earlier in the PR Applies to #1971 * Add a single newline for @cranes-bill * Only one newline is needed and has nothing to do with trailing spaces... at least according to the GH editor * Restores the flow :) Applies to #1971 * More flow of README.md * GH preview said it didn't need this but I guess it does... we'll try newlines everywhere ;) Applies to #1971 * Use non-standard markdown for "newlines" * Restore the spaces manually **NOTES** This is not any known specification but it's what @nowrep wants Refs: * [CommonMark](http://commonmark.org/) * [Daring Fireballs](http://daringfireball.net/projects/markdown/)
NOTES
$ openssl version
e.g. perhaps acut
of$ brew info openssl
?Refs:
Historical refs:
PR READY AGAIN