Skip to content

Compiling error for Android in QT C++ application #2491

@unimaxis

Description

@unimaxis

Expected behavior

When compiling POCO with Android QT app, I get errors:
src/Socket.cpp:305: error: undefined reference to '__FD_SET_chk'
src/Socket.cpp:316: error: undefined reference to '__FD_SET_chk'
src/Socket.cpp:327: error: undefined reference to '__FD_SET_chk'
src/Socket.cpp:359: error: undefined reference to '__FD_ISSET_chk'
src/Socket.cpp:370: error: undefined reference to '__FD_ISSET_chk'
src/Socket.cpp:381: error: undefined reference to '__FD_ISSET_chk'
src/SocketImpl.cpp:718: error: undefined reference to '__FD_SET_chk'
src/Mutex_POSIX.cpp:128: error: undefined reference to 'pthread_mutex_timedlock'
src/Thread_POSIX.cpp:43: error: undefined reference to 'sigemptyset'
src/Thread_POSIX.cpp:44: error: undefined reference to 'sigaddset'
src/Thread_POSIX.cpp:331: error: undefined reference to 'sigemptyset'
src/Thread_POSIX.cpp:332: error: undefined reference to 'sigaddset'
src/Thread_POSIX.cpp:333: error: undefined reference to 'sigaddset'
src/Thread_POSIX.cpp:334: error: undefined reference to 'sigaddset'

Actual behavior

Toolchain for POCO build as
$ndk_path/Android/android-ndk-r17b/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-21 --install-dir=$poco_toolchain_path

Poco configure an build as static
./configure --config=Android --no-samples --no-tests --static
make -s -j3 CXXFLAGS='-std=c++11' ANDROID_ABI=armeabi-v7a

Steps to reproduce the problem

Simple example of httprest server
PocoAndroidTest.zip

POCO version

1.9.1

Compiler and version

Android NDK r17b GCC 4.9

Operating system and version

Ubuntu 16.04 x64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions