Cbenchをインストールする際にエラーを作る【解決済み]:「time_diff to`未定義参照 "」

背景

Ubuntuの16.04でCbenchをインストールするときに次のエラーが発生しました

libtool: link: gcc -g -O2 -Wall -I/home/yxchen/oflops/../openflow//include -Wshadow -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/yxchen/oflops/../openflow//lib -ldl -lpcap /home/yxchen/oflops/.libs/liboflops_test.a -lconfig -lpthread -lnetsnmp
traffic_generator.o: In function `get_next_pkt':
/home/yxchen/oflops/traffic_generator.c:140: undefined reference to `time_diff'
collect2: error: ld returned 1 exit status
Makefile:577: recipe for target 'oflops' failed
make[2]: *** [oflops] Error 1
make[2]: Leaving directory '/home/ubuntu/mtcbench/oflops'
Makefile:642: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/mtcbench/oflops'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2

チェックtraffic_generator.cディスカバリ機能は後にtime_diff疑いは良い質問をインストールしていない依存しているので、定義されます。

解きます

  1. gitのクローンhttps://github.com/intracom-telecom-sdn/mtcbench.git
  2. CD /パス/に/ mtcbench#のmtcbench開いているフォルダ
  3. ./deploy/docker/provision.sh#このスクリプトは、すべての必要な依存関係をインストールします

そして、バックフォルダoflopsにきれいにし、それを作ります。

参照

エラー:おそらく不足している依存関係にtime_diffへの未定義参照

おすすめ

転載: www.cnblogs.com/multhree/p/11646930.html