2016-05-13 40 views
0

最新公開的tcpslice版本1.2a1(在github上發現)有一個錯誤,它期望8個字節作爲時間字段,但獲得16個(64位時)。這導致了錯誤:如何在mac 64位上從fedora發佈的源代碼安裝tcpslice?

tcpslice: problems finding end packet of file ./abc1234.bin 

我有我的信息了此錯誤:https://bugzilla.redhat.com/show_bug.cgi?id=485670

這使我從這裏搶更新版本(1.2a3),並嘗試從源代碼編譯:http://pkgs.fedoraproject.org/repo/pkgs/tcpdump/tcpslice-1.2a3.tar.gz/。我覺得或者是接近實際patch

然而,因爲它說我不能在我的Mac運行./configure這(理解)這一點:

checking build system type... configure: error: cannot guess build type; you must specify one 

沒有一個放棄,和監守我不wnat切換到Linux的繼續deveolping我的包裝的腳本,我試圖編譯如下:

./configure --build=i686-pc-linux-gnu 

這種配置和make'd!但是,當我運行新創建的tcpdump時,它的32位仍然給出相同的錯誤!

這是可能的,還有什麼其他--build類型可以用於x86_64位系統?沒有其他--build類型正在爲我編譯。我不知道如何找到可以接受的構建類型,和我目前referenceing這樣的:https://gcc.gnu.org/gcc-4.2/buildstat.html

編輯:我想沃倫·揚的建議here但libtoolize --force沒有重拍的config.guess,所以我手動下載「最新」 config.guess從鏈接this page捲曲。然而,現在./configure說:

checking build system type... Invalid configuration `x86_64-apple-darwin15.4.0': machine `x86_64-apple' not recognized 
configure: error: /bin/sh ./config.sub x86_64-apple-darwin15.4.0 failed 

我擰了嗎?或者,我可以嘗試羅納爾多,也很想默認x86_64的-build類型(我仍然無法找到):

checking build system type... Invalid configuration `x86_64': machine `x86_64' not recognized 
configure: error: /bin/sh ./config.sub x86_64 failed 

回答

0

韋爾普,得到的答覆是手動從這裏下載最新的config.guess和config.sub文件:https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html和覆蓋tcpslice目錄中的那些。

但是,同樣的問題依然存在。在mac上發生時間問題必定有另一個原因,因爲這個版本的tpsps在同一pcap上的ubuntu上運行良好。

感謝沃倫楊在這個問題上的帖子,指導我在正確的(雖然不成功)方向:Compiling tcpsplice on a 64-bit machine。猜猜我會用Ubuntu來完成我的腳本!