Wind River Support Network

HomeDefectsLIN6-7155
Fixed

LIN6-7155 : apr build can fail if sctp.h is found by configure

Created: Apr 18, 2014    Updated: Dec 3, 2018
Resolved Date: Apr 27, 2014
Found In Version: 6.0
Fix Version: 6.0.0.7
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

configure can find sctp.h on the host and try to compile with it.  This will fail for targets.

Errors are like --

In file included from network_io/unix/inet_pton.c:18:0:
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix/apr_arch_networkio.h:59:26: fatal error: netinet/sctp.h: No such file or directory
+ #include <netinet/sctp.h>
+                          ^
+compilation terminated.
+In file included from network_io/unix/inet_ntop.c:18:0:
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix/apr_arch_networkio.h:59:26: fatal error: netinet/sctp.h: No such file or directory
+ #include <netinet/sctp.h>
+                          ^
+compilation terminated.
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/x86_64-wrs-linux-libtool --silent --mode=compile x86_64-wrs-linux-gcc  -m64  --sysroot=/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/sysroots/intel-x86-64   -O2 -pipe -g -feliminate-unused-debug-types -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE   -I./include -I/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix -I./include/arch/unix -I/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix -I/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include  -o network_io/unix/sockaddr.lo -c network_io/unix/sockaddr.c && touch network_io/unix/sockaddr.lo
+make[1]: *** [network_io/unix/inet_pton.lo] Error 1
+make[1]: *** Waiting for unfinished jobs....
+In file included from network_io/unix/multicast.c:17:0:
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix/apr_arch_networkio.h:59:26: fatal error: netinet/sctp.h: No such file or directory
+ #include <netinet/sctp.h>
+                          ^
+compilation terminated.
+make[1]: *** [network_io/unix/multicast.lo] Error 1
+In file included from network_io/unix/sendrecv.c:17:0:
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix/apr_arch_networkio.h:59:26: fatal error: netinet/sctp.h: No such file or directory
+ #include <netinet/sctp.h>
+                          ^
+compilation terminated.
+make[1]: *** [network_io/unix/inet_ntop.lo] Error 1
+make[1]: *** [network_io/unix/sendrecv.lo] Error 1
+In file included from network_io/unix/sockaddr.c:17:0:
+/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8/include/arch/unix/apr_arch_networkio.h:59:26: fatal error: netinet/sctp.h: No such file or directory
+ #include <netinet/sctp.h>
+                          ^
+compilation terminated.
+make[1]: *** [network_io/unix/sockaddr.lo] Error 1
+make[1]: Leaving directory `/ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/apr-1.4.8'
+make: *** [all-recursive] Error 1
+ERROR: oe_runmake failed
+WARNING: /ala-blade3.2/builds-2014-04-18-052047/intel-x86-64_cgl_world/bitbake_build/tmp/work/x86_64-wrs-linux/apr/1.4.8-r0/temp/do_compile/run.do_compile.631:137 exit 1 from
+  exit 1

Steps to Reproduce

Not really known, but if one configures for a standard kernel and filesystem, then does

bitbake apr -c configure
bitbake apr -c devshell

you will see in config.log that sctp.h was searched for.  Even if sctp.h is legitimately found in sysroot for the target, we do not want to arbitrarily use it.

Other Downloads


Live chat
Online