Hi,
For this release:
The most recent release from the current series:
|https://www.openvswitch.org/releases/openvswitch-3.6.0.tar.gz I'm
getting the following compile errors: lib/netlink.c: In function
'min_attr_len': lib/netlink.c:832:38: error: invalid application of
'sizeof' to incomplete type 'struct rtvia' case NL_A_RTA_VIA: return
sizeof(struct rtvia) + sizeof(struct in_addr); ^ lib/netlink.c: In
function 'max_attr_len': lib/netlink.c:854:38: error: invalid
application of 'sizeof' to incomplete type 'struct rtvia' case
NL_A_RTA_VIA: return sizeof(struct rtvia) + sizeof(struct in6_addr); ^
make[1]: *** [lib/netlink.lo] Error 1 make[1]: *** Waiting for
unfinished jobs.... make[1]: Leaving directory `/root/ovs Getting a
bunch of warnings to: In file included from lib/netlink-protocol.h:34:0,
from lib/netlink.h:39, from lib/netlink.c:18: lib/util.h:164:1: warning:
'returns_nonnull' attribute directive ignored [-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE; ^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes] OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t)
MALLOC_LIKE; ^ lib/util.h:166:1: warning: 'returns_nonnull' attribute
directive ignored [-Wattributes] OVS_RETURNS_NONNULL void
*xzalloc(size_t) MALLOC_LIKE; And more. My build procedure, is:
./boot.sh CFLAGS="-O0 -g" ./configure --prefix=/usr --localstatedir=/var
--sysconfdir=/etc make -j5 V=0 install <--- Here is where I get the
errors make install I'm building on: [root@sca15-rain05 ovs]# cat
/etc/redhat-release Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@sca15-rain05 ovs]# cat /etc/oracle-release Oracle Linux Server
release 7.9 [root@sca15-rain05 ovs]# uname -a Linux sca15-rain05
5.4.17-2136.311.6.1.el7uek.x86_64 #2 SMP Thu Sep 22 19:51:14 PDT 2022
x86_64 x86_64 x86_64 GNU/Linux [root@sca15-rain05 ovs]#
[root@sca15-rain05 ovs]# yum list installed kernel-uek Loaded plugins:
ulninfo Repodata is over 2 weeks old. Install yum-cron? Or run: yum
makecache fast Installed Packages kernel-uek.x86_64
5.4.17-2136.311.6.1.el7uek @ol7_UEKR6 I've attached the full build log.
Brendan|
[root@sca15-rain05 ovs]# ./boot.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
[root@sca15-rain05 ovs]#
[root@sca15-rain05 ovs]# CFLAGS="-O0 -g" ./configure --prefix=/usr
--localstatedir=/var --sysconfdir=/etc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for fgrep... /usr/bin/grep -F
checking for egrep... /usr/bin/grep -E
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing pow... -lm
checking for library containing clock_gettime... none required
checking for library containing timer_create... -lrt
checking for library containing pthread_rwlock_tryrdlock... -lpthread
checking for library containing pthread_rwlockattr_destroy... none required
checking for library containing pthread_spin_lock... none required
checking for pthread_spin_lock... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for MSVC x64 compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking whether USDT probes are enabled... no
checking for linux/netlink.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking for capng_clear in -lcap-ng... no
configure: WARNING: cannot find libcap-ng.
--user option will not be supported on Linux.
(you may use --disable-libcapng to suppress this warning).
checking for Python 3 (version 3.7 or later)... /usr/local/bin/python3.7
checking for flake8... yes
checking for sphinx-build-3... no
checking for sphinx-build-2... no
checking for sphinx-build... no
checking for dot... no
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking whether strtok_r macro segfaults on some inputs... no
checking whether AF_XDP is enabled... auto
checking bpf/libbpf.h usability... no
checking bpf/libbpf.h presence... no
checking for bpf/libbpf.h... no
configure: WARNING: Cannot find bpf/libbpf.h, netdev-afxdp will not be
supported (use --disable-afxdp to suppress this warning).
checking whether sys_siglist is declared... yes
checking for sigdescr_np... no
checking whether malloc_trim is declared... yes
checking for struct stat.st_mtim.tv_nsec... yes
checking for struct stat.st_mtimensec... no
checking for struct ifreq.ifr_flagshigh... no
checking for struct mmsghdr.msg_len... yes
checking for struct sockaddr_in6.sin6_scope_id... yes
checking for mlockall... yes
checking for strnlen... yes
checking for getloadavg... yes
checking for statvfs... yes
checking for getmntent_r... yes
checking for sendmmsg... yes
checking for clock_gettime... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking linux/net_namespace.h usability... yes
checking linux/net_namespace.h presence... yes
checking for linux/net_namespace.h... yes
checking stdatomic.h usability... no
checking stdatomic.h presence... no
checking for stdatomic.h... no
checking bits/floatn-common.h usability... no
checking bits/floatn-common.h presence... no
checking for bits/floatn-common.h... no
checking for net/if_mib.h... no
checking for library containing backtrace... none required
checking linux/perf_event.h usability... yes
checking linux/perf_event.h presence... yes
checking for linux/perf_event.h... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking for connect in -lsocket... no
checking for library containing gethostbyname... none required
checking for groff... yes
checking whether gcc -std=gnu99 has <threads.h> that supports thread_local... no
checking whether gcc -std=gnu99 supports __thread... yes
checking for library containing __atomic_load_8... no
checking whether gcc -std=gnu99 supports GCC 4.0+ atomic built-ins... yes
checking value of __atomic_always_lock_free(1)... 1
checking value of __atomic_always_lock_free(2)... 1
checking value of __atomic_always_lock_free(4)... 1
checking value of __atomic_always_lock_free(8)... 1
checking for library containing aio_write... none required
checking for pthread_set_name_np... no
checking for pthread_setname_np() variant... glibc
checking whether __linux__ is defined... true
checking linker output version information... libX-3.6.so.0.0.0)
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for working posix_memalign... yes
checking for ub_ctx_create in -lunbound... no
checking for unw_backtrace in -lunwind... no
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for stdio.h... yes
checking for string.h... (cached) yes
checking whether gcc -std=gnu99 accepts -Werror... yes
checking whether gcc -std=gnu99 accepts -Wall... yes
checking whether gcc -std=gnu99 accepts -Wextra... yes
checking whether gcc -std=gnu99 accepts -Wno-sign-compare... yes
checking whether gcc -std=gnu99 accepts -Wpointer-arith... yes
checking whether gcc -std=gnu99 accepts -Wformat -Wformat-security... yes
checking whether gcc -std=gnu99 accepts -Wswitch-enum... yes
checking whether gcc -std=gnu99 accepts -Wunused-parameter... yes
checking whether gcc -std=gnu99 accepts -Wbad-function-cast... yes
checking whether gcc -std=gnu99 accepts -Wcast-align... yes
checking whether gcc -std=gnu99 accepts -Wstrict-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wold-style-definition... yes
checking whether gcc -std=gnu99 accepts -Wmissing-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wmissing-field-initializers... yes
checking whether gcc -std=gnu99 accepts -Wthread-safety... no
checking whether gcc -std=gnu99 accepts -fno-strict-aliasing... yes
checking whether gcc -std=gnu99 accepts -Wswitch-bool... no
checking whether gcc -std=gnu99 accepts -Wlogical-not-parentheses... no
checking whether gcc -std=gnu99 accepts -Wsizeof-array-argument... no
checking whether gcc -std=gnu99 accepts -Wbool-compare... no
checking whether gcc -std=gnu99 accepts -Wshift-negative-value... no
checking whether gcc -std=gnu99 accepts -Wduplicated-cond... no
checking whether gcc -std=gnu99 accepts -Qunused-arguments... no
checking whether gcc -std=gnu99 accepts -Wshadow... yes
checking whether gcc -std=gnu99 accepts -Wmultistatement-macros... no
checking whether gcc -std=gnu99 accepts -Wcast-align=strict... no
checking whether gcc -std=gnu99 accepts -Wno-null-pointer-arithmetic... no
checking whether gcc -std=gnu99 accepts -Warray-bounds-pointer-arithmetic... no
checking whether gcc -std=gnu99 accepts -Wno-unused... yes
checking whether gcc -std=gnu99 accepts -Wno-unused-parameter... yes
checking target hint for cgcc... x86_64
checking vector options for cgcc... -D__MMX__=1 -D__SSE2_MATH__=1
-D__SSE_MATH__=1 -D__SSE2__=1 -D__SSE__=1
checking whether actions Autovalidator is default implementation... no
checking whether DPCLS Autovalidator is default implementation... no
checking whether DPIF AVX512 is default implementation... no
checking whether MFEX Autovalidator is default implementation... no
checking binutils avx512 assembler checks passing... yes
checking whether compiler correctly emits AVX512-VL... no
checking whether gcc -std=gnu99 accepts -mavx512f... no
checking whether gcc -std=gnu99 accepts -mavx512bw... no
checking whether gcc -std=gnu99 accepts -mavx512vl... no
checking whether gcc -std=gnu99 accepts -mavx512vbmi... no
checking whether compiler correctly emits AVX512-VPOPCNTDQ... no
checking for struct tcf_t.firstuse... yes
checking whether dpdk is enabled... no
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating lib/stdio.h
config.status: creating lib/string.h
config.status: creating ovsdb/libovsdb.sym
config.status: creating ofproto/libofproto.sym
config.status: creating lib/libsflow.sym
config.status: creating lib/libopenvswitch.sym
config.status: creating vtep/libvtep.sym
config.status: creating Makefile
config.status: creating tests/atlocal
config.status: creating lib/libopenvswitch.pc
config.status: creating lib/libsflow.pc
config.status: creating ofproto/libofproto.pc
config.status: creating ovsdb/libovsdb.pc
config.status: creating include/openvswitch/version.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include/openflow/openflow.h.stamp commands
config.status: executing utilities/bugtool/dummy commands
config.status: executing ipsec/dummy commands
make install-am
make[1]: Entering directory `/root/ovs'
CC lib/netlink.lo
CC lib/route-table.lo
CC lib/tc.lo
CC lib/dpdk-stub.lo
CC lib/async-append-aio.lo
In file included from lib/netlink-protocol.h:34:0,
from lib/netlink.h:39,
from lib/netlink.c:18:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
In file included from lib/hash.h:23:0,
from lib/smap.h:20,
from lib/dpdk-stub.c:21:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
In file included from lib/netlink-protocol.h:34:0,
from lib/netlink.h:39,
from lib/tc.h:26,
from lib/tc.c:19:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
In file included from lib/ovs-atomic.h:325:0,
from lib/ovs-thread.h:23,
from lib/async-append-aio.c:29:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
In file included from lib/ovs-atomic.h:325:0,
from lib/ovs-thread.h:23,
from lib/coverage.h:30,
from lib/route-table.c:29:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
lib/netlink.c: In function 'min_attr_len':
lib/netlink.c:832:38: error: invalid application of 'sizeof' to incomplete type
'struct rtvia'
case NL_A_RTA_VIA: return sizeof(struct rtvia) + sizeof(struct in_addr);
^
lib/netlink.c: In function 'max_attr_len':
lib/netlink.c:854:38: error: invalid application of 'sizeof' to incomplete type
'struct rtvia'
case NL_A_RTA_VIA: return sizeof(struct rtvia) + sizeof(struct in6_addr);
^
make[1]: *** [lib/netlink.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
CC lib/stream-ssl.lo
lib/route-table.c: In function 'route_table_parse__':
lib/route-table.c:393:33: error: dereferencing pointer to incomplete type
rdnh->family = rtvia->rtvia_family;
^
lib/route-table.c:398:34: error: dereferencing pointer to incomplete type
- sizeof *rtvia < sizeof addr) {
^
lib/route-table.c:403:36: error: dereferencing pointer to incomplete type
memcpy(&addr, rtvia->rtvia_addr, sizeof addr);
^
lib/route-table.c:409:34: error: dereferencing pointer to incomplete type
- sizeof *rtvia < sizeof rdnh->addr) {
^
lib/route-table.c:414:42: error: dereferencing pointer to incomplete type
memcpy(&rdnh->addr, rtvia->rtvia_addr, sizeof rdnh->addr);
^
make[1]: *** [lib/route-table.lo] Error 1
In file included from lib/bitmap.h:22:0,
from lib/stream-ssl.c:35:
lib/util.h:164:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
^
lib/util.h:165:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:166:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc(size_t) MALLOC_LIKE;
^
lib/util.h:167:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc(void *, size_t);
^
lib/util.h:168:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmemdup(const void *, size_t) MALLOC_LIKE;
^
lib/util.h:169:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xmemdup0(const char *, size_t) MALLOC_LIKE;
^
lib/util.h:170:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL char *xstrdup(const char *) MALLOC_LIKE;
^
lib/util.h:174:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 2) MALLOC_LIKE;
^
lib/util.h:176:5: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_PRINTF_FORMAT(1, 0) MALLOC_LIKE;
^
lib/util.h:177:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *x2nrealloc(void *p, size_t *n, size_t s);
^
lib/util.h:181:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:182:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xcalloc__(size_t, size_t) MALLOC_LIKE;
^
lib/util.h:183:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc__(size_t) MALLOC_LIKE;
^
lib/util.h:184:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xrealloc__(void *, size_t);
^
lib/util.h:186:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:187:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xzalloc_cacheline(size_t) MALLOC_LIKE;
^
lib/util.h:195:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_pagealign(size_t) MALLOC_LIKE;
^
lib/util.h:197:1: warning: 'returns_nonnull' attribute directive ignored
[-Wattributes]
OVS_RETURNS_NONNULL void *xmalloc_size_align(size_t, size_t) MALLOC_LIKE;
^
lib/stream-ssl.c: In function 'get_peer_common_name':
lib/stream-ssl.c:503:5: warning: implicit declaration of function
'ASN1_STRING_get0_data' [-Wimplicit-function-declaration]
peer_name = xstrdup((const char *) ASN1_STRING_get0_data(cn_data));
^
lib/stream-ssl.c:503:25: warning: cast from function call of type 'int' to
non-matching type 'const char *' [-Wbad-function-cast]
peer_name = xstrdup((const char *) ASN1_STRING_get0_data(cn_data));
^
lib/stream-ssl.c:503:25: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
lib/stream-ssl.c: In function 'do_ssl_init':
lib/stream-ssl.c:1044:5: warning: implicit declaration of function 'TLS_method'
[-Wimplicit-function-declaration]
const SSL_METHOD *method = TLS_method();
^
lib/stream-ssl.c:1044:32: warning: initialization makes pointer from integer
without a cast [enabled by default]
const SSL_METHOD *method = TLS_method();
^
lib/stream-ssl.c:1061:5: warning: implicit declaration of function
'SSL_CTX_set_min_proto_version' [-Wimplicit-function-declaration]
SSL_CTX_set_min_proto_version(ctx, TLS1_2_VERSION);
^
lib/stream-ssl.c:1062:5: warning: implicit declaration of function
'SSL_CTX_set_max_proto_version' [-Wimplicit-function-declaration]
SSL_CTX_set_max_proto_version(ctx, 0);
^
lib/stream-ssl.c: In function 'stream_ssl_set_ciphersuites':
lib/stream-ssl.c:1247:5: warning: implicit declaration of function
'SSL_CTX_set_ciphersuites' [-Wimplicit-function-declaration]
if (SSL_CTX_set_ciphersuites(ctx, arg) == 0) {
^
lib/stream-ssl.c: In function 'stream_ssl_set_protocols':
lib/stream-ssl.c:1271:21: error: 'TLS1_3_VERSION' undeclared (first use in this
function)
{"TLSv1.3", TLS1_3_VERSION, false},
^
lib/stream-ssl.c:1271:21: note: each undeclared identifier is reported only
once for each function it appears in
make[1]: *** [lib/stream-ssl.lo] Error 1
make[1]: Leaving directory `/root/ovs'
make: *** [install] Error 2
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss