My guess is that these functions are not supported by emscripten because they don't make much sense in a browser or WASI sandbox (running external native processes would be a security risk - I would also like to see some sort popen() functionality at least in WASI though). Such unsupported functions used to have empty stubs, but that might have changed with switching to MUSL. On Wednesday, 9 June 2021 at 03:41:11 UTC+2 [email protected] wrote:
> Hi! I am newbie to emscripten. When I use emmake to build a library, there > are some errors that show lack of IPC libs. Then I check emsdk and find > that there is a complete library of libc in the system folder, but the IPC > target files is missing in libc.a of sysroot. Does emscripten not support > IPC temporarily? Or IPC can't run in wasm runtime? > ``` > *error: undefined symbol: ftok (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: _ftok may need to be added to > EXPORTED_FUNCTIONS if it arrives from a system library error: undefined > symbol: popen (referenced by top-level compiled C/C++ code) warning: _popen > may need to be added to EXPORTED_FUNCTIONS if it arrives from a system > library error: undefined symbol: shmat (referenced by top-level compiled > C/C++ code) warning: _shmat may need to be added to EXPORTED_FUNCTIONS if > it arrives from a system library error: undefined symbol: shmctl > (referenced by top-level compiled C/C++ code) warning: _shmctl may need to > be added to EXPORTED_FUNCTIONS if it arrives from a system library error: > undefined symbol: shmdt (referenced by top-level compiled C/C++ code) > warning: _shmdt may need to be added to EXPORTED_FUNCTIONS if it arrives > from a system library error: undefined symbol: shmget (referenced by > top-level compiled C/C++ code) warning: _shmget may need to be added to > EXPORTED_FUNCTIONS if it arrives from a system library error: undefined > symbol: wordexp (referenced by top-level compiled C/C++ code) warning: > _wordexp may need to be added to EXPORTED_FUNCTIONS if it arrives from a > system library error: undefined symbol: wordfree (referenced by top-level > compiled C/C++ code) warning: _wordfree may need to be added to > EXPORTED_FUNCTIONS if it arrives from a system library Error: Aborting > compilation due to previous errors* > ``` > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/4b1f3c27-e615-49d6-b196-0f0531282572n%40googlegroups.com.
