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

execinfo.h #1020

Closed
Rudloff opened this issue May 15, 2017 · 7 comments
Closed

execinfo.h #1020

Rudloff opened this issue May 15, 2017 · 7 comments

Comments

@Rudloff
Copy link
Contributor

Rudloff commented May 15, 2017

Hello,

I'm trying to use the segfault-handler npm module but it does not build because it needs execinfo.h.
On Debian this file is part of libc6-dev but it does not seem to be available on Termux.
Do you think ti would be possible to add it?

@fornwall
Copy link
Member

The functions exposed by execinfo.h is not available on Android. See this Stackoverflow question and answers.

Would a stub header help to get things to compile (but not actually producing any backtrace)?

@Rudloff
Copy link
Contributor Author

Rudloff commented May 16, 2017

Thanks but I don't think a stub would be very useful.
I guess I will have to use gdb instead.

@goodevilgenius
Copy link

@fornwall That might help me. I'm having this issue because I'm trying to compile node in Termux. Compilation fails with 'execinfo.h' file not found, so if I could get that stub header, that might let me compile node.

@ghost
Copy link

ghost commented Aug 9, 2019

I'm trying to compile node in Termux.

Node shouldn't require execinfo.h when building for Android if properly configured.

@goodevilgenius
Copy link

@xeffyr I didn't configure anything. I'm trying out nave under Termux. I just did nave install latest, and it automatically downloaded the latest source and tried to compile it.

But, it has the source downloaded now, so maybe I can see if I can tweak it and see if it'll work.

@wuxb45
Copy link

wuxb45 commented Jun 8, 2020

What's the proper way to write portable code for the missing header? Is there something like #ifdef termux?

@ghost
Copy link

ghost commented Jun 8, 2020

@wuxb45 Use either #ifdef __ANDROID__ or #ifdef __TERMUX__.

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sirherobrine23 referenced this issue in Sirherobrine23/cppzst Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants