trealla: Undefined posix_spawn_file_actions_addchdir_np
While trying to build this project on Ubuntu 18.04 64bits I’m getting this error:
make
...
src/streams.c: In function ‘fn_process_create_3’:
src/streams.c:793:5: warning: implicit declaration of function ‘posix_spawn_file_actions_addchdir_np’; did you mean ‘posix_spawn_file_actions_adddup2’? [-Wimplicit-function-declaration]
793 | posix_spawn_file_actions_addchdir_np(&file_actions, cwd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| posix_spawn_file_actions_adddup2
...
src/streams.o: In function `fn_process_create_3':
streams.c:(.text+0x183d4): undefined reference to `posix_spawn_file_actions_addchdir_np'
collect2: error: ld returned 1 exit status
Makefile:114: recipe for target 'tpl' failed
make: *** [tpl] Error 1
...
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 40 (14 by maintainers)
Commits related to this issue
- Add spawn.h header file, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
- Fix for libc and #if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 29, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
- Fix for libc blah, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
- Fix for libc blah, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
- Fix for '$read_term_from_chars'/4, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
- Fixes for 32-bit compile on Ubuntu 14.04, re issue #54 — committed to trealla-prolog/trealla by infradig 2 years ago
I think that’s better to fix
trella
itself to be 32bits compatible then compile towasm
is basically free (without system extensions).