Hello! I’m trying to begin to use PlatformIO, but for my needs it’s essential to get an ethernet library working. with the Arduino IDE i was able to use the ethernet library of Arduinos Compilation (stoffregens ethernet lib) but when i try to use a simple example-project like LinkStatus (code below) it won’t compile and i get a lot of errors… what could i do? thanks in advance for your time <3
the code:

In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dhcp.cpp:7:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:464:0: warning: "ntohl" redefined [enabled by default]
#define ntohl(x) htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dhcp.cpp:5:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:122:0: note: this is the location of the previous definition
#define ntohl(x) lwip_ntohl(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:8:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:6:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:24:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:8:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:6:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:24:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\socket.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:8:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\socket.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetUdp.cpp:32:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:457:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:6:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:121:0: note: this is the location of the previous definition
#define htonl(x) lwip_htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:24:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetUdp.cpp:30:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:119:0: note: this is the location of the previous definition
#define htons(x) lwip_htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\socket.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:121:0: note: this is the location of the previous definition
#define htonl(x) lwip_htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:8:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:464:0: warning: "ntohl" redefined [enabled by default]
#define ntohl(x) htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetUdp.cpp:32:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:458:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Dns.cpp:6:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:122:0: note: this is the location of the previous definition
#define ntohl(x) lwip_ntohl(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:24:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:464:0: warning: "ntohl" redefined [enabled by default]
#define ntohl(x) htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\socket.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetUdp.cpp:30:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:120:0: note: this is the location of the previous definition
#define ntohs(x) lwip_ntohs(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetClient.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:122:0: note: this is the location of the previous definition
#define ntohl(x) lwip_ntohl(x)
^
In file included from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/ip_addr.h:41:0,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/ipv4_addr.h:38,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/arch/cc.h:93,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/arch.h:48,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/debug.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwipopts.h:3575,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/opt.h:51,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/init.h:40,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/IPAddress.h:27,
from C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Client.h:24,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\Ethernet.h:52,
from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetServer.cpp:22:
C:\Users\Sir_A\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip2\include/lwip/def.h:121:0: note: this is the location of the previous definition
#define htonl(x) lwip_htonl(x)
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\EthernetUdp.cpp:32:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\socket.cpp:23:0:
C:\Users\Sir_A\.platformio\lib\Ethernet_ID872\src\utility/w5100.h:460:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^

Try setting platform = espressif8266@1.8.0 in your platformio.ini, which will switch you back to the v2.4.2 Arduino ESP8266 core. There appear to be known issues with v2.5.0 and the Ethernet library, which should be fixed in v2.5.1

There is a new Ethernet library been developed by Paul Stoffregen
https://www.pjrc.com/arduino-ethernet-library-2-0-0/
which has already found its way into arduino mainstream:
https://github.com/arduino-libraries/Ethernet/blob/master/library.properties
Here at esp8266/Arduino,...