-
Notifications
You must be signed in to change notification settings - Fork 16
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
Enable out-of-tree builds. autoconfigure a clock for clock_gettime. … #48
Conversation
…odify myexec to not die on stderr output. Comment out net/ethernet.h include, which seems to be unnecessary, and isn't available under Cygwin.
I think net/ethernet.h was necessary for the MAC Address column type? Adding a AC_CHECK_HEADER for that file might be a better option. |
If you never use the "mac" type, this will never be referenced. In cygwin, where are these defined/declared? struct ether_addr |
@pooryorick Can you find out where cygwin defines those structs/typedefs? |
@pooryorick I'd like to get this pulled in, for the clock changes, but we can't just kill net/ethernet.h ... we could merge and then undo that part of the patch if you can't provide an alternative. |
One other user reports that no default cygwin headers include anything named "ether_*" So it may be necessary to make the MAC Address column type become unavailable on such platforms, or define a substitute datatype and our own conversion functions. |
Well, I can add this to configure.in: AC_CHECK_HEADER(net/ethernet.h,[CTABLES_CFLAGS="$CTABLES_CFLAGS And I can add this to ctable.h: #ifdef HAVE_NET_ETHERNET_H That will at least avoid compilation problems if you're not using MAC On Thu, Jul 7, 2016 at 12:53 PM, Jeff Lawson notifications@github.com
|
Looks like the three symbols that need to be defined for mac types to work are ether_aton, ether_ntoa, and struct ether_addr. |
According to GNUlib documentation, the ether_* functions are missing on HP-UX 11, Cygwin, mingw, MSVC 9, Interix 3.5, and BeOS. |
Implemented an "ethers.c" for platforms that don't have the ether_* functions. Added mac-ip tests into default configuration. |
… Modify
myexec to not die on stderr output. Comment out net/ethernet.h include, which
seems to be unnecessary, and isn't available under Cygwin.