Error when creating a Web Export Templates

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abermann

Hello, this is the error I´m getting (after half an hour of succesful compiling):

em++: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated]
error: undefined symbol: htons (referenced by $inetPton6__deps: [‘htons’,‘$jstoi_q’], referenced by $writeSockaddr__deps: [‘$Sockets’,‘$inetPton4’,‘$inetPton6’], referenced by __sys_accept4__deps: [‘$getSocketFromFD’,‘$writeSockaddr’,‘$DNS’,‘$SYSCALLS’], referenced by top-level compiled C/C++ code)
warning: Link with -s LLD_REPORT_UNDEFINED to get more information on undefined symbols
warning: To disable errors for undefined symbols use -s ERROR_ON_UNDEFINED_SYMBOLS=0
warning: _htons may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: ntohs (referenced by $inetNtop6__deps: [‘$inetNtop4’,‘ntohs’], referenced by $readSockaddr__deps: [‘$Sockets’,‘$inetNtop4’,‘$inetNtop6’,‘ntohs’], referenced by $getSocketAddress__deps: [‘$readSockaddr’], referenced by __sys_bind__deps: [‘$getSocketFromFD’,‘$getSocketAddress’,‘$SYSCALLS’], referenced by top-level compiled C/C++ code)
warning: _ntohs may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
em++: error: ‘C:/Users/alebn/Downloads/emsdk/node/14.15.5_64bit/bin/node.exe C:\Users\alebn\Downloads\emsdk\upstream\emscripten\src\compiler.js C:\Temp\tmphmz7g2xm.txt’ failed (1)
scons: *** [bin\godot.javascript.opt.js] Error 1
scons: building terminated because of errors.

Can anybody help me to understand why this happens? I´ve looking all around in the web, without any success… Thanks!