#12114 closed enhancement (fixed)
execvpe not implemented
Reported by: | miqlas | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | execvpe | Cc: | miqlas@… |
Blocked By: | Blocking: | ||
Platform: | All |
Description
I got this error message as i tried to compile Nim on the latest Haiku nightly gcc2h:
nimcache/stdlib_osproc.o: In function `startprocessafterfork_145004': stdlib_osproc.c:(.text+0x2a80): undefined reference to `execvpe' collect2: error: ld returned 1 exit status Error: execution of an external program failed
I understand, this is not required for POSIX compatibility, but it would make the port of Nim lot easier. Of course, we can implement it in the Nim patchset, but unfortunately the Nim bootstrap generating some files, what require execpve, so it is not possible to patch these files.
Here is the source from klibc: http://code.metager.de/source/xref/linux/klibc/usr/klibc/execvpe.c
Change History (5)
comment:1 by , 9 years ago
Resolution: | → no change required |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Resolution: | no change required |
---|---|
Status: | closed → reopened |
I took the liberty to implement it for Haiku, too. It's pretty much a one-liner.
follow-up: 4 comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Implemented in hrev49438.
comment:4 by , 9 years ago
comment:5 by , 9 years ago
Thanks! Since we don't support that this way, we should really remove it then (it didn't work anyway, just worked like a normal exec).
From https://github.com/nim-lang/Nim/issues/3138, I understand Haiku isn't the only platform without execvpe support, and that a workaround might be in the works.
Good luck with porting and please don't forget to post your findings about nim at Haikuports!