I’ve been trying to compile the open source Bonjour framework developed by Apple for Linux. The problem I have is that when I run make with the option os=linux I get the following compile error:
struct sockaddr has no member named ‘sa_len’
I’ve checked the struct sockddr and it indeed has no member named sa_len… So I’m confused as to why the framework is thinking that it should do!
Could anyone please give me some advice as to how I should be compiling mDNSResponder for Linux? Many thanks.
Looking in mDNSUNP.h one can see that if
sa_lendoes not exist (such as on Linux), a macroNOT_HAVE_SA_LENshould be defined. If it’s not defined in your case, try adding-DNOT_HAVE_SA_LENto your compilation flags.