Fehler beim Ausgeben des „make“-Befehls während der ISIC-Paketinstallation

Fehler beim Ausgeben des „make“-Befehls während der ISIC-Paketinstallation

Ich versuche, das ISIC-Paket in Kali Linux Rolling zu installieren. Befolgen Sie die Installationsanweisungen vonHier

Als ersten Schritt habe ich das Libnet-Paket installiert und es lief problemlos. Als nächstes schlägt der Versuch, das ISIC-Paket aus der ISIC-Make-Datei zu installieren, mit der folgenden Fehlermeldung auf der Konsole fehl.

> 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

Bitte helfen Sie mir, das Problem zu beheben. Ich brauche dieses Tool für meine Testszenarien.

Nur für den Fall:Gibt es eine alternative Möglichkeit, dieses ISIC-Paket auf meiner Kali-Maschine zu installieren?

Antwort1

isic-0.07: Jahr 2006. Daher das 2014er Update "isic-fix"https://github.com/dropletzhu/isic-fix

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

$ cd isic-fix/ && ./configure && make: Lässt sich beispielsweise mit gcc-4.9 (oder gcc-5) problemlos kompilieren.

verwandte Informationen