Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execvpe is glibc specific #3759

Closed
JoePython1 opened this issue Jan 22, 2016 · 5 comments
Closed

execvpe is glibc specific #3759

JoePython1 opened this issue Jan 22, 2016 · 5 comments

Comments

@JoePython1
Copy link

Nim compilation fails with gcc 3.4.3 on Solaris due to non-presence of execvpe system call. Solaris does have execvp though.

@zielmicha
Copy link
Contributor

In osproc there is a condition:

when defined(macosx) or defined(freebsd) or defined(netbsd) or defined(android):
  # MacOSX doesn't have execvpe, so we need workaround.

Adding something like or defined(solaris) will probably fix this issue.

@JoePython1
Copy link
Author

Yes this works. Thank you.

@def-
Copy link
Member

def- commented Jan 24, 2016

So maybe we should turn around the condition since execvpe is GNU only and instead have:

when not defined(linux) or defined(android):

@JoePython1
Copy link
Author

I believe so. Because only Linux uses glibc as far i know.

@Araq
Copy link
Member

Araq commented Jan 24, 2016

+1 for @def-'s idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants