wcbench
wcbench copied to clipboard
Make error while installing cbench on ubuntu 15.10 collect2:error .......... please help me with a solution if possible i m stucked here
supplication@supplication-HP-Pavilion-g6-Notebook-PC:~/oflops$ ./configure --with-openflow-src-dir=/home/supplication/openflow
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for /home/supplication/openflow/include/openflow/openflow.h... 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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gawk... (cached) mawk
checking how to run the C preprocessor... gcc -E
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 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 for doxygen... no
configure: WARNING: cannot find doxygen. Will not build source documentation
checking config.h usability... no
checking config.h presence... no
checking for config.h... no
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking net-snmp/net-snmp-config.h usability... yes
checking net-snmp/net-snmp-config.h presence... yes
checking for net-snmp/net-snmp-config.h... yes
checking for net-snmp/net-snmp-includes.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for strerror... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/doxygen.conf
config.status: creating cbench/Makefile
config.status: creating example_modules/Makefile
config.status: creating example_modules/oflops_debug/Makefile
config.status: creating example_modules/openflow_action_install/Makefile
config.status: creating example_modules/openflow_action_measurement/Makefile
config.status: creating example_modules/openflow_path_delay/Makefile
config.status: creating example_modules/openflow_flow_dump_test/Makefile
config.status: creating example_modules/openflow_packet_in/Makefile
config.status: creating example_modules/openflow_port_status/Makefile
config.status: creating example_modules/snmp_cpu/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
supplication@supplication-HP-Pavilion-g6-Notebook-PC:~/oflops$ make
make all-recursive
make[1]: Entering directory '/home/supplication/oflops'
Making all in .
make[2]: Entering directory '/home/supplication/oflops'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT test_module.lo -MD -MP -MF .deps/test_module.Tpo -c -o test_module.lo test_module.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT test_module.lo -MD -MP -MF .deps/test_module.Tpo -c test_module.c -fPIC -DPIC -o .libs/test_module.o
In file included from test_module.c:20:0:
utils.h:34:12: warning: inline function 'time_diff' declared but never defined
inline int time_diff(struct timeval now, struct timeval *then);
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT test_module.lo -MD -MP -MF .deps/test_module.Tpo -c test_module.c -o test_module.o >/dev/null 2>&1
mv -f .deps/test_module.Tpo .deps/test_module.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT msgbuf.lo -MD -MP -MF .deps/msgbuf.Tpo -c -o msgbuf.lo msgbuf.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT msgbuf.lo -MD -MP -MF .deps/msgbuf.Tpo -c msgbuf.c -fPIC -DPIC -o .libs/msgbuf.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT msgbuf.lo -MD -MP -MF .deps/msgbuf.Tpo -c msgbuf.c -o msgbuf.o >/dev/null 2>&1
mv -f .deps/msgbuf.Tpo .deps/msgbuf.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT pcap_track.lo -MD -MP -MF .deps/pcap_track.Tpo -c -o pcap_track.lo pcap_track.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT pcap_track.lo -MD -MP -MF .deps/pcap_track.Tpo -c pcap_track.c -fPIC -DPIC -o .libs/pcap_track.o
In file included from pcap_track.c:20:0:
utils.h:34:12: warning: inline function 'time_diff' declared but never defined
inline int time_diff(struct timeval *now, struct timeval *then);
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT pcap_track.lo -MD -MP -MF .deps/pcap_track.Tpo -c pcap_track.c -o pcap_track.o >/dev/null 2>&1
mv -f .deps/pcap_track.Tpo .deps/pcap_track.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT oflops_snmp.lo -MD -MP -MF .deps/oflops_snmp.Tpo -c -o oflops_snmp.lo oflops_snmp.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT oflops_snmp.lo -MD -MP -MF .deps/oflops_snmp.Tpo -c oflops_snmp.c -fPIC -DPIC -o .libs/oflops_snmp.o
In file included from oflops_snmp.c:2:0:
./utils.h:34:12: warning: inline function 'time_diff' declared but never defined
inline int time_diff(struct timeval *now, struct timeval *then);
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT oflops_snmp.lo -MD -MP -MF .deps/oflops_snmp.Tpo -c oflops_snmp.c -o oflops_snmp.o >/dev/null 2>&1
mv -f .deps/oflops_snmp.Tpo .deps/oflops_snmp.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT utils.lo -MD -MP -MF .deps/utils.Tpo -c -o utils.lo utils.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c -fPIC -DPIC -o .libs/utils.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c -o utils.o >/dev/null 2>&1
mv -f .deps/utils.Tpo .deps/utils.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-MT wc_event.lo -MD -MP -MF .deps/wc_event.Tpo -c -o wc_event.lo wc_event.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT wc_event.lo -MD -MP -MF .deps/wc_event.Tpo -c wc_event.c -fPIC -DPIC -o .libs/wc_event.o
wc_event.c: In function 'wc_run_next_event':
wc_event.c:276:24: warning: variable 'last' set but not used [-Wunused-but-set-variable]
static struct timeval last = {0,0};
^
wc_event.c: In function 'event_loop':
wc_event.c:399:7: warning: implicit declaration of function 'pthread_yield' [-Wimplicit-function-declaration]
pthread_yield();
^
In file included from wc_event.c:21:0:
wc_event.c: At top level:
utils.h:34:12: warning: inline function 'time_diff' declared but never defined
inline int time_diff(struct timeval *now, struct timeval *then);
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -MT wc_event.lo -MD -MP -MF .deps/wc_event.Tpo -c wc_event.c -o wc_event.o >/dev/null 2>&1
mv -f .deps/wc_event.Tpo .deps/wc_event.Plo
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow pkg-config --cflags libconfig
-L/home/supplication/openflow/lib pkg-config --libs libconfig
-o liboflops_test.la -rpath /usr/local/lib test_module.lo msgbuf.lo pcap_track.lo oflops_snmp.lo utils.lo wc_event.lo -lnetsnmp
libtool: link: gcc -shared -fPIC -DPIC .libs/test_module.o .libs/msgbuf.o .libs/pcap_track.o .libs/oflops_snmp.o .libs/utils.o .libs/wc_event.o -L/home/supplication/openflow/lib -L/usr/local/lib /usr/local/lib/libconfig.so -lnetsnmp -O2 -Wl,-soname -Wl,liboflops_test.so.0 -o .libs/liboflops_test.so.0.0.0
libtool: link: (cd ".libs" && rm -f "liboflops_test.so.0" && ln -s "liboflops_test.so.0.0.0" "liboflops_test.so.0")
libtool: link: (cd ".libs" && rm -f "liboflops_test.so" && ln -s "liboflops_test.so.0.0.0" "liboflops_test.so")
libtool: link: ar cru .libs/liboflops_test.a test_module.o msgbuf.o pcap_track.o oflops_snmp.o utils.o wc_event.o
ar: u' modifier ignored since
D' is the default (see U') libtool: link: ranlib .libs/liboflops_test.a libtool: link: ( cd ".libs" && rm -f "liboflops_test.la" && ln -s "../liboflops_test.la" "liboflops_test.la" ) gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT channel_info.o -MD -MP -MF .deps/channel_info.Tpo -c -o channel_info.o channel_info.c channel_info.c: In function ‘setup_channel’: channel_info.c:112:20: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ch_info->dump = pcap_dump_open(ch_info->pcap_handle, "controller.pcap"); ^ In file included from channel_info.c:18:0: channel_info.c: At top level: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/channel_info.Tpo .deps/channel_info.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT context.o -MD -MP -MF .deps/context.Tpo -c -o context.o context.c In file included from context.c:6:0: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/context.Tpo .deps/context.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT control.o -MD -MP -MF .deps/control.Tpo -c -o control.o control.c In file included from control.c:25:0: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/control.Tpo .deps/control.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT module_run.o -MD -MP -MF .deps/module_run.Tpo -c -o module_run.o module_run.c module_run.c: In function ‘run_test_module’: module_run.c:71:21: warning: passing argument 1 of ‘pcap_dump_close’ from incompatible pointer type [-Wincompatible-pointer-types] pcap_dump_close(ctx->channels[OFLOPS_CONTROL].dump); ^ In file included from /usr/include/pcap.h:43:0, from module_run.c:4: /usr/include/pcap/pcap.h:419:6: note: expected ‘pcap_dumper_t * {aka struct pcap_dumper *}’ but argument is of type ‘struct pcap_dump_t *’ void pcap_dump_close(pcap_dumper_t *); ^ module_run.c: In function ‘process_control_event’: module_run.c:279:24: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 4 has type ‘int’ [-Wformat=] fprintf(stderr, "%s:%zd :: Data buffer probably trashed : unknown openflow type %d\n", ^ In file included from module_run.c:20:0: module_run.c: At top level: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/module_run.Tpo .deps/module_run.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT module_default.o -MD -MP -MF .deps/module_default.Tpo -c -o module_default.o module_default.c mv -f .deps/module_default.Tpo .deps/module_default.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT oflops.o -MD -MP -MF .deps/oflops.Tpo -c -o oflops.o oflops.c oflops.c: In function ‘run_module’: oflops.c:23:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (void *)run_test_module(tmp->ctx, tmp->ix_mod); ^ oflops.c: In function ‘start_traffic_thread’: oflops.c:29:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (void *)run_traffic_generation(tmp->ctx, tmp->ix_mod); ^ In file included from log.h:6:0, from oflops.c:15: oflops.c: At top level: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/oflops.Tpo .deps/oflops.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT oflops_pcap.o -MD -MP -MF .deps/oflops_pcap.Tpo -c -o oflops_pcap.o oflops_pcap.c In file included from oflops_pcap.c:8:0: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/oflops_pcap.Tpo .deps/oflops_pcap.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT timer_event.o -MD -MP -MF .deps/timer_event.Tpo -c -o timer_event.o timer_event.c timer_event.c: In function ‘timer_run_next_event’: timer_event.c:29:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] int err; ^ mv -f .deps/timer_event.Tpo .deps/timer_event.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o msg.c In file included from log.h:6:0, from msg.h:23, from msg.c:1: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/msg.Tpo .deps/msg.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c In file included from log.h:6:0, from log.c:1: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ mv -f .deps/log.Tpo .deps/log.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT traffic_generator.o -MD -MP -MF .deps/traffic_generator.Tpo -c -o traffic_generator.o traffic_generator.c traffic_generator.c: In function ‘innitialize_generator_packet’: traffic_generator.c:229:36: warning: passing argument 2 of ‘ip_sum_calc’ from incompatible pointer type [-Wincompatible-pointer-types] state->ip->check=ip_sum_calc(20, state->ip); ^ In file included from traffic_generator.h:11:0, from traffic_generator.c:1: utils.h:44:10: note: expected ‘uint16_t * {aka short unsigned int *}’ but argument is of type ‘struct iphdr *’ uint16_t ip_sum_calc(uint16_t len_ip_header, uint16_t buff[]); ^ traffic_generator.c: At top level: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ traffic_generator.c: In function ‘init_traf_gen’: traffic_generator.c:35:3: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result] setuid(0); ^ traffic_generator.c: In function ‘report_pktgen_traffic_generator’: traffic_generator.c:93:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, len, status_file); ^ traffic_generator.c:100:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, len, status_file); ^ traffic_generator.c:108:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, len, status_file); ^ mv -f .deps/traffic_generator.Tpo .deps/traffic_generator.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-MT usage.o -MD -MP -MF .deps/usage.Tpo -c -o usage.o usage.c In file included from usage.c:15:0: log.h:8:26: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] #define DEFAULT_LOG_FILE "oflops.log" ^ usage.c:24:30: note: in expansion of macro ‘DEFAULT_LOG_FILE’ {"log", required_argument, DEFAULT_LOG_FILE, 'o'}, // --log oflops.log ^ log.h:8:26: note: (near initialization for ‘oflops_options[4].flag’) #define DEFAULT_LOG_FILE "oflops.log" ^ usage.c:24:30: note: in expansion of macro ‘DEFAULT_LOG_FILE’ {"log", required_argument, DEFAULT_LOG_FILE, 'o'}, // --log oflops.log ^ usage.c:25:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion] {"generator", required_argument, 2, 'g'}, // -g 1 ^ usage.c:25:36: note: (near initialization for ‘oflops_options[5].flag’) usage.c:26:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion] {"trace", no_argument, 2, 't'}, // -t 1 ^ usage.c:26:26: note: (near initialization for ‘oflops_options[6].flag’) usage.c: In function ‘parse_args’: usage.c:114:4: warning: implicit declaration of function ‘load_config_file’ [-Wimplicit-function-declaration] load_config_file(ctx, optarg); ^ usage.c: In function ‘load_config_file’: usage.c:235:57: warning: passing argument 2 of ‘channel_info_init’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] channel_info_init(&ctx->channels[OFLOPS_CONTROL], config_setting_get_string(elem)); ^ In file included from context.h:9:0, from usage.c:9: channel_info.h:32:5: note: expected ‘char *’ but argument is of type ‘const char *’ int channel_info_init(struct channel_info * channel, char * dev); ^ usage.c:280:3: warning: implicit declaration of function ‘setup_channel_snmp’ [-Wimplicit-function-declaration] setup_channel_snmp(ctx, OFLOPS_CONTROL, in_oid, out_oid); ^ usage.c:287:9: warning: implicit declaration of function ‘my_read_objid’ [-Wimplicit-function-declaration] if(!my_read_objid(out_oid, ctx->cpuOID, &ctx->cpuOID_len)) ^ usage.c:301:55: warning: passing argument 2 of ‘channel_info_init’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] channel_info_init(&ctx->channels[ctx->n_channels++], config_setting_get_string(config_setting_get_member(elem, "dev"))); ^ In file included from context.h:9:0, from usage.c:9: channel_info.h:32:5: note: expected ‘char *’ but argument is of type ‘const char *’ int channel_info_init(struct channel_info * channel, char * dev); ^ usage.c:336:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] path = config_setting_get_string(config_setting_get_member(elem, "path")); ^ usage.c:343:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] path = config_setting_get_string(config_setting_get_member(elem, "param")); ^ In file included from usage.c:13:0: usage.c: At top level: utils.h:34:12: warning: inline function ‘time_diff’ declared but never defined inline int time_diff(struct timeval *now, struct timeval *then); ^ usage.c: In function ‘load_config_file’: usage.c:359:1: warning: control reaches end of non-void function [-Wreturn-type] }; ^ usage.c:265:5: warning: ‘in_oid’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(in_oid != NULL) free(in_oid); ^ usage.c:267:5: warning: ‘out_oid’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(out_oid != NULL) free(out_oid); ^ mv -f .deps/usage.Tpo .deps/usage.Po /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow
pkg-config --cflags libconfig-static -Wl,-E -L/home/supplication/openflow/lib
pkg-config --libs libconfig-o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o -ldl -lpcap -lnetsnmp -loflops_test -lpthread libtool: link: gcc -g -O2 -Wall -I/home/supplication/openflow/include -Wshadow -I/usr/local/include -Wl,-E -o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o -L/home/supplication/openflow/lib -L/usr/local/lib -ldl -lpcap /home/supplication/oflops/.libs/liboflops_test.a /usr/local/lib/libconfig.so -lnetsnmp -lpthread traffic_generator.o: In function
get_next_pkt':
/home/supplication/oflops/traffic_generator.c:140: undefined reference to `time_diff'
collect2: error: ld returned 1 exit status
Makefile:574: recipe for target 'oflops' failed
make[2]: ** [oflops] Error 1
make[2]: Leaving directory '/home/supplication/oflops'
Makefile:639: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/supplication/oflops'
Makefile:431: recipe for target 'all' failed
make: *** [all] Error 2
This could help : https://github.com/dfarrell07/wcbench/issues/77#issuecomment-210360937 Also, please try to use pastebin/fpaste(https://paste.fedoraproject.org/) when posting long error messages, makes things easier. Thanks