antirez / antirez/hping

compile issue / Mac OS X Yosemite 10.10.5

Offen
#17 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
1.7k
Forks
364
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'll admit, i'm not a coder nor a programmer. Came across this error trying to install hping from the github set of files, specifically following the INSTALLATION instructions. Anything jump out? Looks like a great tool, wanted to play with it.
#

sh-3.2# ./configure
build byteorder.c...
byteorder.c:86:41: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
printf("sizeof(unsigned int) = %d\n", sizeof(unsigned int));
~~ ^~~~~~~~~~~~~~~~~~~~
%lu
1 warning generated.
## create byteorder.h...

system type: DARWIN

LIMITWHENSUID: -DLIMITWHENSUID
FORCE_LIBPCAP:
HAVE_PROC :
LIBPCAP : PCAP=libpcap/libpcap.a
PCAP_INCLUDE : -I./libpcap
MANPATH : /usr/local/man
## (to modify try configure --help)

creating Makefile...
now you can try `make'
sh-3.2# make --ok, so I continue on. Why not??
gcc -c -O2 -Wall -I./libpcap -g -DLIMITWHENSUID getlhs.c
getlhs.c:145:2: error: expected expression
else if ( strstr(ifname, "lo") )
^
1 error generated.
make: **\* [getlhs.o] Error 1

sh-3.2# make install ---eh, nothing to lose, so I tried.
gcc -c -O2 -Wall -I./libpcap -g -DLIMITWHENSUID getlhs.c
getlhs.c:145:2: error: expected expression
else if ( strstr(ifname, "lo") )
^
1 error generated.
make: **\* [getlhs.o] Error 1
sh-3.2#

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.