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

Most upvoted comments

I think that’s better to fix trella itself to be 32bits compatible then compile to wasm is basically free (without system extensions).