-
Notifications
You must be signed in to change notification settings - Fork 1
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
Build error on Ubuntu 12 #6
Comments
The other Travis CI environment (using clang) also fails with |
There is no problem when using a more recent version of Ubuntu. On Buntu 16.10 you find in
Can you post the corresponding definition from your system including all relevant |
It looks like this in Ubuntu 12.04: /* UDP header as specified by RFC 768, August 1980. */
#ifdef __FAVOR_BSD
struct udphdr
{
u_int16_t uh_sport; /* source port */
u_int16_t uh_dport; /* destination port */
u_int16_t uh_ulen; /* udp length */
u_int16_t uh_sum; /* udp checksum */
};
#else
struct udphdr
{
u_int16_t source;
u_int16_t dest;
u_int16_t len;
u_int16_t check;
};
#endif So, it seems that if you define |
It was already set in |
Would it make sense to define this in the CFLAGS variable in the build environment? I guess that might be better? |
Sure, that might be a better way to prevent further build errors in case other files start using the BSD style struct. Feel free to close my PR. :) |
I have trouble building usrsctp-neat on Ubuntu 12 on Travis CI. This is the output:
You can find the full log here which also includes precise information about the build system.
The text was updated successfully, but these errors were encountered: