traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.65k stars 338 forks source link

can't compile with cygwin #194

Open fire002 opened 7 years ago

fire002 commented 7 years ago

gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-pointer-sign -MT packet/mtr-cmdparse.o -MD -MP -MF packet/.deps/mtr-cmdparse.Tpo -c -o packet/mtr-cmdparse.o test -f 'packet/cmdparse.c' || echo './'packet/cmdparse.c mv -f packet/.deps/mtr-cmdparse.Tpo packet/.deps/mtr-cmdparse.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-pointer-sign -MT ui/mtr-asn.o -MD -MP -MF ui/.deps/mtr-asn.Tpo -c -o ui/mtr-asn.o test -f 'ui/asn.c' || echo './'ui/asn.c mv -f ui/.deps/mtr-asn.Tpo ui/.deps/mtr-asn.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-pointer-sign -MT ui/mtr-curses.o -MD -MP -MF ui/.deps/mtr-curses.Tpo -c -o ui/mtr-curses.o test -f 'ui/curses.c' || echo './'ui/curses.c mv -f ui/.deps/mtr-curses.Tpo ui/.deps/mtr-curses.Po gcc -g -O2 -Wall -Wno-pointer-sign -o mtr.exe ui/mtr-mtr.o ui/mtr-net.o ui/mtr-cmdpipe.o ui/mtr-dns.o ui/mtr-raw.o ui/mtr-split.o ui/mtr-display.o ui/mtr-report.o ui/mtr-select.o ui/mtr-utils.o packet/mtr-cmdparse.o ui/mtr-asn.o ui/mtr-curses.o -lresolv -lncurses -lm depbase=echo packet/packet.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';\ gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-pointer-sign -MT packet/packet.o -MD -MP -MF $depbase.Tpo -c -o packet/packet.o packet/packet.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from packet/probe.h:32:0, from packet/command.h:23, from packet/wait.h:22, from packet/packet.c:31: packet/probe_cygwin.h:63:9: ошибка: unknown type name «ICMP_ECHO_REPLY32» ICMP_ECHO_REPLY32 *reply4; ^ make[1]: [Makefile:567: packet/packet.o] Ошибка 1 make[1]: выход из каталога «/home/Администратор/mtr/mtr» make: [Makefile:327: all] Ошибка 2

theAsmodai commented 7 years ago

It's looking strange because ICMP_ECHO_REPLY32 is available only in windows x64. https://msdn.microsoft.com/ru-ru/library/windows/desktop/bb540657(v=vs.85).aspx The ICMP_ECHO_REPLY32 structure describes the data returned in response to an IPv4 echo request on a 64-bit platform.