-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix missing struct members s6_addr32' and
s6_addr16' on OSX.
#142
Conversation
uhm. how did you build proxychains-ng ? it has a configure check so we don't have to hardcode a list of currently broken systems into the code. |
I just followed the INSTALL instructions.
On Sat, Oct 8, 2016 at 11:28 AM, rofl0r notifications@github.com wrote:
|
what's the output of configure ? |
(NB: This is from current master)
|
aha, so the bug is that OSX (which version?)'s |
Yes I agree - this is what appears to be happening. Mac OS X version 10.9.5. |
FWIW, here's the
EDIT
|
So I changed all
But
|
What does it try to do when |
Because what I see is:
Which, if I understand correctly, doesn't do anything other than print a message about it? |
it should add |
apparently mktemp on OSX 10.9.5 requires a parameter. instead of playing whack-a-mole with apple we now use the portable code from musl's configure script which should work everywhere. adresses #142
|
|
The fix
A straightforward way to fix the compilation issue is to change I'll adjust the PR to do the following:
BackgroundI think I just figured it out! From the output of
From Makefile variable assignment:
The output observed suggests the order of evaluation when Apparent order of evaluation: 1st statement: 2nd evaluated statement: The |
9ddca69
to
a7d7be1
Compare
@rofl0r Thank you so much for being so responsive on this issue! I believe this PR is in good shape, looking forward to your feedback. I've tested it on the Mac and Linux and now both build and work without issue. :) Cheers! |
just to make sure: did you have exported CPPFLAGS on your system ? |
@rofl0r Nice catch! I'd forgotten about this stanza in my
I still believe it'd be best to switch to appending to CPPFLAGS, unless there is something else I've overlooked. |
so yeah, in that case the problem was because your CPPFLAGS were overriding the ones set by the build system. this is intentional because we want to mimick autoconf behaviour as nearly as possible. in this case though the s6_addr32 macro is essential to compilation so it doesn't make sense to make it overridable. i'll think about it some more to find a clean fix. I disagree with the removal of config.mak: it is against the users expectation (at least if he's used to autoconf) that |
hello @jaytaylor , could you test my commit in the branch OUR_CPPFLAGS and report if that closes this issue ? thanks! |
Hey @rofl0r, The OUR_CPPFLAGS branch works nicely for me! I also like this solution, it is a nice, clean approach to avoid the Cheers, |
On Mac OS X, random chain was broken and returned always the last proxy from the config file. Use fix as suggested by @ravomavain. Closes rofl0r#75.
we temporarily store all buildsystem-set conditionals into OUR_CPPFLAGS and write it into config.mak as an addition to eventually user-supplied CPPFLAGS. this should prevent crucial things we set from being overwritten by a user that has CPPFLAGS exported. fixes rofl0r#142
a7d7be1
to
dcbfe60
Compare
@rofl0r FYI, I believe I've removed all controversial commits so you can merge this PR. |
864b7a3
to
7c0778e
Compare
@jaytaylor thanks for testing! |
Haha, nothing essential. Just my (fairly standard I think) vim ignores and the dylib ignore.
|
well if you care enough, please make another clean PR on top of current master, so we can keep the commit history straight. |
Like FreeBSD,
in6_addr
doesn't have a struct member calleds6_addr32' or
s6_add16' on Mac OS X.This commit adds OSX to the controlled group that replaces:
Sample of errors thrown:
For further explanation also see this PassiveDNS project commit:
gamelinux/passivedns@42dbd6c