Skip to content

NDK: Unified Headers issue #445

Description

@nurupo

Description

Android NDK's unified headers cause compile errors in OpenSSL and TokTok C-Toxcore libraries. This doesn't happen with the deprecated headers.

OpenSSL:

./libcrypto.so: error: undefined reference to 'stderr'
./libcrypto.so: error: undefined reference to 'stdin'
./libcrypto.so: error: undefined reference to 'signal'
./libcrypto.so: error: undefined reference to 'tcsetattr'
./libcrypto.so: error: undefined reference to 'tcgetattr'

TokTok C-Toxcore:

../testing/DHT_test.c:208: error: undefined reference to 'stdin'
../toxcore/DHT.c:2404: error: undefined reference to 'rand'
../toxcore/DHT.c:1626: error: undefined reference to 'rand'
../toxcore/DHT.c:1629: error: undefined reference to 'rand'
../toxcore/DHT.c:1938: error: undefined reference to 'rand'
../toxcore/network.c:548: error: undefined reference to 'srand'

Environment Details

Not all of these will be relevant to every bug, but please provide as much
information as you can.

  • NDK Version: 15.1.4119039
  • Build system: standalone toolchain
  • Host OS: Debian Jessie amd64
  • Compiler: Clang? (whatever make_standalone_toolchain.py produces)
  • ABI: arm
  • STL: Not specified
  • NDK API level: No idea
  • Device API level: 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions