mtr
mtr copied to clipboard
CygWin build problem
Hi,
i followed your instructions here on github but there's always an error occuring. output in attached file. Is there someting missing?
regards, frank
Your build environment is not finding the defines for IPV6 support.
you can search for IN6_ADDR in /usr/include and report which files it is referenced in. Or attach the output of: grep -r IN6_ADDR /usr/include
I am seeing the same thing on a Windows 11 vm with cygwin x64
Here is my output of grep -r IN6_ADDR /usr/include
$ grep -r IN6_ADDR /usr/include
/usr/include/w32api/in6addr.h:} IN6_ADDR, *PIN6_ADDR, *LPIN6_ADDR;
/usr/include/w32api/mprapi.h: IN6_ADDR ipv6addrDns;
/usr/include/w32api/mprapi.h: IN6_ADDR ipv6addrDnsAlt;
/usr/include/w32api/mprapi.h: IN6_ADDR * ipv6addr;
/usr/include/w32api/mprapi.h: IN6_ADDR *lpdwIpv6Address,
/usr/include/w32api/mprapi.h: IN6_ADDR *lpdwIpv6Address
/usr/include/w32api/mprapi.h:typedef DWORD (APIENTRY * PMPRADMINGETIPV6ADDRESSFORUSER)(WCHAR *, WCHAR *, IN6_ADDR *, WINBOOL *);
/usr/include/w32api/mprapi.h:typedef VOID (APIENTRY * PMPRADMINRELEASEIPV6ADDRESSFORUSER)(WCHAR *, WCHAR *, IN6_ADDR *);
/usr/include/w32api/mstcpip.h:LPSTR NTAPI RtlIpv6AddressToStringA(const IN6_ADDR *Addr, LPSTR S);
/usr/include/w32api/mstcpip.h:LPWSTR NTAPI RtlIpv6AddressToStringW(const IN6_ADDR *Addr, LPWSTR S);
/usr/include/w32api/mstcpip.h:LONG NTAPI RtlIpv6AddressToStringExA(const IN6_ADDR *Address, ULONG ScopeId, USHORT Port, LPSTR AddressString, PULONG AddressStringLength);
/usr/include/w32api/mstcpip.h:LONG NTAPI RtlIpv6AddressToStringExW(const IN6_ADDR *Address, ULONG ScopeId, USHORT Port, LPWSTR AddressString, PULONG AddressStringLength);
/usr/include/w32api/mstcpip.h:LONG NTAPI RtlIpv6StringToAddressExA(PCSTR AddressString, IN6_ADDR *Address, PULONG ScopeId, PUSHORT Port);
/usr/include/w32api/mstcpip.h:LONG NTAPI RtlIpv6StringToAddressExW(PCWSTR AddressString, IN6_ADDR *Address, PULONG ScopeId, PUSHORT Port);
/usr/include/w32api/tcpmib.h: IN6_ADDR LocalAddr;
/usr/include/w32api/tcpmib.h: IN6_ADDR RemoteAddr;
/usr/include/w32api/tcpmib.h: IN6_ADDR LocalAddr;
/usr/include/w32api/tcpmib.h: IN6_ADDR RemoteAddr;
/usr/include/w32api/udpmib.h: IN6_ADDR dwLocalAddr;
/usr/include/w32api/windns.h:#ifdef IN6_ADDR
/usr/include/w32api/windns.h: IN6_ADDR In6;
/usr/include/w32api/ws2ipdef.h:#define IPV6_ADDRESS_BITS RTL_BITS_OF(IN6_ADDR)
/usr/include/w32api/ws2ipdef.h:int IN6_ADDR_EQUAL(const struct in6_addr *,const struct in6_addr *);
/usr/include/w32api/ws2ipdef.h:WS2TCPIP_INLINE int IN6_ADDR_EQUAL(const struct in6_addr *a, const struct in6_addr *b) {
/usr/include/w32api/ws2ipdef.h:#define IN6_ARE_ADDR_EQUAL IN6_ADDR_EQUAL
/usr/include/w32api/ws2tcpip.h: IN6_ADDR ipi6_addr;
Maybe this is the solution?
https://github.com/warmcat/libwebsockets/issues/108#issuecomment-40075600
I tried this and it seems to have worked.
https://github.com/traviscross/mtr/issues/403#issuecomment-876504322