GNOME Bugzilla – Bug 753944
curl: configure check for netinet/ip.h doesn't work on FreeBSD
Last modified: 2015-08-28 18:27:45 UTC
Created attachment 309836 [details] [review] Patch to check netinet/ip.h with sys/types.h and netinet/in.h For the curlsink plugin, configure checks for a handfull of headers. The problem header in this set is netinet/ip.h. On FreeBSD the sys/types.h and netinet/in.h header needs to be included before netinet/ip.h can be tested. --------------------------- configure: *** checking feature: Curl plugin *** configure: *** for plug-ins: curl *** checking for CURL... yes checking for unistd.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/types.h... (cached) yes checking for netinet/in.h... (cached) yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled" configure: WARNING: netinet/ip.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------------------------------------------ ## configure: WARNING: ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ## configure: WARNING: ## ------------------------------------------------------------------------ ## checking for netinet/ip.h... no checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking for winsock2.h... (cached) no checking ws2tcpip.h usability... no checking ws2tcpip.h presence... no checking for ws2tcpip.h... no checking for fcntl.h... (cached) yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking for fcntl.h... (cached) yes checking for socket support needed by curlsink... no checking for SSH2... yes configure: *** These plugins will not be built: curl configure: *** checking feature: DASH plug-in *** snippet from config.log: configure:37965: checking netinet/ip.h usability configure:37965: cc -c -O2 -pipe -O2 -Wno-format -fstack-protector -fno-strict-aliasing In file included from conftest.c:106: /usr/include/netinet/ip.h:69:17: error: field has incomplete type 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:69:9: note: forward declaration of 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:69:24: error: field has incomplete type 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:69:9: note: forward declaration of 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:181:19: error: field has incomplete type 'struct in_addr' struct in_addr ipt_addr; ^ /usr/include/netinet/ip.h:69:9: note: forward declaration of 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:216:17: error: field has incomplete type 'struct in_addr' struct in_addr ippseudo_src; /* source internet address */ ^ /usr/include/netinet/ip.h:69:9: note: forward declaration of 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ /usr/include/netinet/ip.h:217:17: error: field has incomplete type 'struct in_addr' struct in_addr ippseudo_dst; /* destination internet address */ ^ /usr/include/netinet/ip.h:69:9: note: forward declaration of 'struct in_addr' struct in_addr ip_src,ip_dst; /* source and dest address */ ^ 5 errors generated.
commit 98457cb6ea7fc22834603546baef07264bffa296 Author: Koop Mast <kwm@rainbow-runner.nl> Date: Fri Aug 21 20:29:24 2015 +0200 curl: Give netinet/ip.h it own configure check On FreeBSD netinet/ip.h needs the sys/types.h and netinet/in.h header before it can be tested. https://bugzilla.gnome.org/show_bug.cgi?id=753944