ISIC 套件安裝期間發出「make」指令時發生錯誤

ISIC 套件安裝期間發出「make」指令時發生錯誤

我正在嘗試在 Kali Linux Rolling 中安裝 ISIC 套件。請按照安裝說明進行操作這裡

作為第一步,我安裝了 libnet 軟體包,一切順利。接下來,當我嘗試從 ISIC make 檔案安裝 ISIC 套件時,它會失敗並在控制台上顯示以下錯誤訊息。

> gcc -o tcpsic tcpsic.c -Wall -W -g -O2 -I/usr/local/include
> `libnet-config --cflags` -DHAVE_LIBNET=1 -Din_addr_t=u_int32_t 
> `libnet-config --defines` -DVERSION=\"0.07\" -lnet -L/usr/local/lib 
> `libnet-config --libs` In file included from
> /usr/include/strings.h:26:0,
>                  from isic.h:1,
>                  from tcpsic.c:1: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
> _DEFAULT_SOURCE" [-Wcpp]  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"    ^~~~~~~ tcpsic.c: In function
> ‘main’: tcpsic.c:274:7: error: dereferencing pointer to incomplete
> type ‘struct tcphdr’
>     tcp->th_off = rand() & 0xf;
>        ^~ Makefile:27: recipe for target 'tcpsic' failed make: *** [tcpsic] Error 1

請幫我解決這個問題。我需要這個工具為我的測試場景啟動並運行。

萬一:有沒有其他方法可以在我的 Kali 機器上安裝這個 ISIC 套件?

答案1

isic-0.07:2006 年。https://github.com/dropletzhu/isic-fix

$ git clone https://github.com/dropletzhu/isic-fix.git

$ cd isic-fix/ && ./configure && make:使用 gcc-4.9(或 gcc-5)等編譯正常。

相關內容