Closed waynemoore closed 7 years ago
Could you try out this:
`#ifndef HOST_NAME_MAX
If it works for you, I can add that to passivedns.h I dont have a Mac to test on.
Thanks @gamelinux I can confirm that works from a fresh clone of the repo, but you have to format it like so:
#ifndef HOST_NAME_MAX
#if defined(__APPLE__)
#define HOST_NAME_MAX 255
#else #define HOST_NAME_MAX 64
#endif /* __APPLE__ */
#endif /* HOST_NAME_MAX */
i.e. not all on one line.
LoL - that did not have all in one line when I pasted it here. Added in commit 2bed37beb73527ba8549b9cac4a8ac010a4fb4b3
Thanks!
I've had some trouble building on macOS Sierra. Where I end up with this error:
I definitely have the dependencies installed via homebrew. It seems to be related to Apple deprecating openssl:
I managed to work around this by setting variables to one of the homebrew installed libraries:
Then configure works. However, during make I end up with an error relating to a missing constant:
I Googled around to see what this value typically is for macOS and it appeared to be 255, so I hacked it at this point just to get it to compile by sticking it into
src/passivedns.h
:This got me a compiled binary. As I said, this was a hack and I'm not a C programmer so I didn't spend much more time on this but I'm recording it here in case it's helpful for someone else who can turn it into a proper fix.