Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in ovs-data.c using make #30

Open
dcc6fvo opened this issue Mar 26, 2017 · 0 comments
Open

Errors in ovs-data.c using make #30

dcc6fvo opened this issue Mar 26, 2017 · 0 comments

Comments

@dcc6fvo
Copy link

dcc6fvo commented Mar 26, 2017

Ubuntu 12.04 - 64 bits
OVS 2.3.1

Configure runs ok but make not:

make

make all-recursive
make[1]: Entrando no diretório /root/of-config' Making all in server make[2]: Entrando no diretório /root/of-config/server'
depbase=echo ovs-data.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/local/include -I/root/openvswitch-2.3.1/lib/ -I/root/openvswitch-2.3.1/include/ -I/root/openvswitch-2.3.1/include/openvswitch/ -Wall -O3 -pthread -I/usr/include/libxml2 -MT ovs-data.o -MD -MP -MF $depbase.Tpo -c -o ovs-data.o ovs-data.c &&
mv -f $depbase.Tpo $depbase.Po
ovs-data.c:94:6: erro: ‘ADVERTISED_40000baseKR4_Full’ undeclared here (not in a function)
ovs-data.c:95:6: erro: ‘ADVERTISED_40000baseCR4_Full’ undeclared here (not in a function)
ovs-data.c:96:6: erro: ‘ADVERTISED_40000baseSR4_Full’ undeclared here (not in a function)
ovs-data.c:97:6: erro: ‘ADVERTISED_40000baseLR4_Full’ undeclared here (not in a function)
ovs-data.c: Na função ‘txn_mod_contr_target’:
ovs-data.c:4330:21: aviso: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:4350:25: aviso: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:4352:25: aviso: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c: Na função ‘txn_add_contr’:
ovs-data.c:4181:13: aviso: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c: Na função ‘write_cert’:
ovs-data.c:3173:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3174:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c: Na função ‘txn_mod_own_cert_key_data’:
ovs-data.c:3644:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3645:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c: Na função ‘txn_add_owned_certificate’:
ovs-data.c:3292:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3293:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3294:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3295:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3296:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ovs-data.c:3297:10: aviso: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
make[2]: ** [ovs-data.o] Erro 1
make[2]: Saindo do diretório /root/of-config/server' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diretório /root/of-config'
make: ** [all] Erro 2

configure log:

root@mininet:~/of-config# ./configure --with-ovs-srcdir=/root/openvswitch-2.3.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for sshd... /usr/sbin/sshd
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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /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 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
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... yes
checking whether to build static libraries... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBNETCONF... yes
checking for library containing nc_init... none required
checking for library containing ncntf_dispatch_receive... none required
checking for library containing shm_open... -lrt
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking for library containing ovsrec_init... -lopenvswitch
checking for xml2-config... xml2-config
checking for LIBDBUS... yes
checking for library containing dbus_bus_get... none required
checking for existence of D-Bus configuration directory /etc/dbus-1/system.d/... ok
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking dynamic-string.h usability... yes
checking dynamic-string.h presence... yes
checking for dynamic-string.h... yes
checking ovsdb-idl-provider.h usability... yes
checking ovsdb-idl-provider.h presence... yes
checking for ovsdb-idl-provider.h... yes
checking vlog.h usability... yes
checking vlog.h presence... yes
checking for vlog.h... yes
checking vswitch-idl.h usability... yes
checking vswitch-idl.h presence... yes
checking for vswitch-idl.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/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for int64_t... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/org.opennetworking.ofc.server.service
config.status: creating model/Makefile
config.status: creating server/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands


of-config 0.0.1

Configuration Options Summary:

ASM.(32 bit only)..:
Static binary......:

Documentation..........:

Compilation............: make (or gmake)
CPPFLAGS.............: -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/local/include -I/root/openvswitch-2.3.1/lib/ -I/root/openvswitch-2.3.1/include/ -I/root/openvswitch-2.3.1/include/openvswitch/
CFLAGS...............: -Wall -O3 -pthread -I/usr/include/libxml2
LDFLAGS..............: -L/root/openvswitch-2.3.1/lib/.libs/
LIBS.................: -ldbus-1 -lpthread -lrt -L/usr/local/lib -lnetconf -L/usr/lib/x86_64-linux-gnu -lxml2

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant