Created attachment 28713 [details] [review] Patch fixing the first problem. farsight2-0.0.14 doesn't compile on NetBSD-5.99.15/amd64. It fails with: Making all in rawudp CC fs-rawudp-transmitter.o CC fs-rawudp-component.o CC fs-rawudp-marshal.o In file included from fs-rawudp-transmitter.c:56: /usr/include/netinet/ip.h:149: error: expected specifier-qualifier-list before 'n_time' Looks like a missing header file, but I'm not sure which one. /usr/include/netinet/in_systm.h has a line: typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ But I'm not sure if that is intended to be included directly. If I include it, however, compilation proceeds until it fails later with: Making all in multicast CC fs-multicast-stream-transmitter.o CC fs-multicast-transmitter.o In file included from fs-multicast-transmitter.c:56: /usr/include/netinet/ip.h:67: error: field 'ip_src' has incomplete type /usr/include/netinet/ip.h:67: error: field 'ip_dst' has incomplete type /usr/include/netinet/ip.h:149: error: expected specifier-qualifier-list before 'n_time' /usr/include/netinet/ip.h:187: error: field 'ippseudo_src' has incomplete type /usr/include/netinet/ip.h:188: error: field 'ippseudo_dst' has incomplete type Here I need to include both netinet/in.h and netinet/in_systm.h to compile.
Created attachment 28714 [details] [review] Patch fixing the second problem.
netinet/in_systm.h is not standard (ie it doesn't exist in glibc). But that said, netinet/ip.h is not POSIX either. I guess the whole thing needs configure tests to know what to include...
Can you try the latest farstream 0.2.3 release and tell me if anything fails there? We use the GLib abstractions a lot more now.
I've tried compiling farstream 0.2.3 on NetBSD-6.99.20/amd64. I have one issue: In file included from fs-multicast-transmitter.c:57:0: /usr/include/netinet/ip.h:68:19: error: field 'ip_src' has incomplete type /usr/include/netinet/ip.h:68:27: error: field 'ip_dst' has incomplete type /usr/include/netinet/ip.h:204:19: error: field 'ipt_addr' has incomplete type /usr/include/netinet/ip.h:240:17: error: field 'ippseudo_src' has incomplete type /usr/include/netinet/ip.h:241:17: error: field 'ippseudo_dst' has incomplete type If I just remove that header include, it compiles fine on NetBSD. I'll attach a patch.
Created attachment 81402 [details] [review] Patch fixing compilation problem in farstream-0.2.3 on NetBSD-6.99.20/amd64.
Thanks, fixed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.