Example mbed ethernet not compile

Hi, help me please !!!
https://os.mbed.com/docs/v5.8/reference/ethernet.html
this example not compile.

ini:
[env:disco_f407vg]
platform = ststm32
board = disco_f407vg
framework = mbed
upload_protocol = stlink
build_flags = -D PIO_FRAMEWORK_MBED_EVENTS_PRESENT -D PIO_FRAMEWORK_MBED_RTOS_PRESENT