emscripten-core / emscripten-core/emscripten

Emmake make errors: lack of linux system library dependencies

Open
#14,406 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi! When I use emmake make, I get some errors. It may mean the lack of linux system library dependencies.
```
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
em++: error: '/home/changran/emsdk/node/14.15.5_64bit/bin/node /home/changran/emsdk/upstream/emscripten/src/compiler.js /tmp/tmpz_bvxil7.txt' failed (1)
make[2]: *** [Makefile:554:modsec-rules-check] 错误 1
make[2]: 离开目录“/home/changran/emModsecurity/111/ModSecurity/tools/rules-check”
make[1]: *** [Makefile:486:all-recursive] 错误 1
make[1]: 离开目录“/home/changran/emModsecurity/111/ModSecurity/tools”
make: *** [Makefile:1034:all-recursive] 错误 1
emmake: error: 'make' failed (2)
```
I don‘t konw how to fix it. Please help. Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.