DynamoRIO / DynamoRIO/dynamorio

'tools/run_in_bg.c:87: error: undefined reference to 'stderr'' with Android NDK 15b

Open
#2,556 2 comments 0 reactions 0 assignees View on GitHub
OpSys-Android OpSys-ARM
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

Building DyanmoRIO with the latest Android NDK (15b) fails with the following error

```
dynamorio/tools/run_in_bg.c:87: error: undefined reference to 'stderr'
dynamorio/tools/run_in_bg.c:157: error: undefined reference to 'stderr'
dynamorio/tools/run_in_bg.c:157: error: undefined reference to 'stdout'
```
Apparently the global variables for stderr and stdout have been removed from Bionic (https://stackoverflow.com/questions/39322852/android-ndk-undefined-reference-to-stderr)

Xref #1927, which describes another issue when building with recent NDK versions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.