poco-1.5.1: Doesn't compile for Android #57

Closed
ghost opened this Issue Jan 12, 2013 · 10 comments

Projects

None yet

2 participants

@ghost
ghost commented Jan 12, 2013

Hi,

I just downloaded poco-1.5.1-all and it doesn't compile out of the box for android.

I'm using android-ndk-r8d with gcc 4.7 toolchain on MacOS (but it shouldn't matter which OS i'm using when cross compiling).

I setup my toolchain like this:

./make-standalone-toolchain.sh --ndk-dir=/Users/bquenin/android-ndk-r8d --platform=android-8 --install-dir=/Users/bquenin/android-toolchain --toolchain=arm-linux-androideabi-4.7

Then I configured poco like this:

./configure --config=Android --no-samples --no-tests --omit=Data

And run the compilation:

make -s -j16

bquenin@Bertrand-Quenins-MacBook-Pro:~/poco-1.5.1-all$ make -j16
make -C /Users/bquenin/poco-1.5.1-all/Foundation
** Compiling src/ArchiveStrategy.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/ArchiveStrategy.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/ArchiveStrategy.o
** Compiling src/DateTimeFormatter.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/DateTimeFormatter.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/DateTimeFormatter.o
** Compiling src/Exception.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/Exception.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/Exception.o
** Compiling src/FIFOBufferStream.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/FIFOBufferStream.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FIFOBufferStream.o
** Compiling src/FPEnvironment.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/FPEnvironment.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FPEnvironment.o
** Compiling src/File.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/File.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/File.o
** Compiling src/FileChannel.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/FileChannel.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FileChannel.o
** Compiling src/Formatter.cpp (debug, static)
** Compiling src/FormattingChannel.cpp (debug, static)
** Compiling src/Glob.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/Glob.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/Glob.o
** Compiling src/HexBinaryDecoder.cpp (debug, static)
** Compiling src/LineEndingConverter.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/LineEndingConverter.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/LineEndingConverter.o
** Compiling src/HexBinaryEncoder.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/HexBinaryEncoder.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/HexBinaryEncoder.o
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/HexBinaryDecoder.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/HexBinaryDecoder.o
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/FormattingChannel.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FormattingChannel.o
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/Formatter.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/Formatter.o
** Compiling src/Latin1Encoding.cpp (debug, static)
** Compiling src/Latin2Encoding.cpp (debug, static)
** Compiling src/InflatingStream.cpp (debug, static)
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/Latin2Encoding.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/Latin2Encoding.o
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/Latin1Encoding.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/Latin1Encoding.o
arm-linux-androideabi-g++  -Iinclude -I/Users/bquenin/poco-1.5.1-all/CppUnit/include -I/Users/bquenin/poco-1.5.1-all/Foundation/include -I/Users/bquenin/poco-1.5.1-all/XML/include -I/Users/bquenin/poco-1.5.1-all/JSON/include -I/Users/bquenin/poco-1.5.1-all/Util/include -I/Users/bquenin/poco-1.5.1-all/Net/include -I/Users/bquenin/poco-1.5.1-all/Crypto/include -I/Users/bquenin/poco-1.5.1-all/NetSSL_OpenSSL/include -I/Users/bquenin/poco-1.5.1-all/Data/include -I/Users/bquenin/poco-1.5.1-all/Data/SQLite/include -I/Users/bquenin/poco-1.5.1-all/Data/ODBC/include -I/Users/bquenin/poco-1.5.1-all/Data/MySQL/include -I/Users/bquenin/poco-1.5.1-all/Zip/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/include -I/Users/bquenin/poco-1.5.1-all/PageCompiler/File2Page/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=Bertrand-Quenins-MacBook-Pro.local  -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY  -g -D_DEBUG  -c src/InflatingStream.cpp -o /Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/InflatingStream.o
In file included from src/FPEnvironment_DUMMY.cpp:37:0,
                 from src/FPEnvironment.cpp:42:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:98:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:104:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:110:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:116:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:122:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:128:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static float Poco::FPEnvironmentImpl::copySignImpl(float, float)':
include/Poco/FPEnvironment_DUMMY.h:134:9: error: 'copysignf' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:134:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from src/FPEnvironment_DUMMY.cpp:37,
                 from src/FPEnvironment.cpp:42:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:352:7: note:   'copysignf'
In file included from src/FPEnvironment_DUMMY.cpp:37:0,
                 from src/FPEnvironment.cpp:42:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static double Poco::FPEnvironmentImpl::copySignImpl(double, double)':
include/Poco/FPEnvironment_DUMMY.h:140:9: error: 'copysign' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:140:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from src/FPEnvironment_DUMMY.cpp:37,
                 from src/FPEnvironment.cpp:42:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:275:8: note:   'copysign'
make[1]: *** [/Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FPEnvironment.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from src/DateTimeFormatter.cpp:40:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:98:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:104:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:110:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:116:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:122:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:128:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static float Poco::FPEnvironmentImpl::copySignImpl(float, float)':
include/Poco/FPEnvironment_DUMMY.h:134:9: error: 'copysignf' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:134:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from src/DateTimeFormatter.cpp:40:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:352:7: note:   'copysignf'
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from src/DateTimeFormatter.cpp:40:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static double Poco::FPEnvironmentImpl::copySignImpl(double, double)':
include/Poco/FPEnvironment_DUMMY.h:140:9: error: 'copysign' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:140:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from src/DateTimeFormatter.cpp:40:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:275:8: note:   'copysign'
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/ArchiveStrategy.cpp:37:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:98:14: error: expected unqualified-id before '(' token
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/FileChannel.cpp:38:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:98:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:104:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:110:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:116:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:122:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:128:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static float Poco::FPEnvironmentImpl::copySignImpl(float, float)':
include/Poco/FPEnvironment_DUMMY.h:134:9: error: 'copysignf' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:134:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/FileChannel.cpp:38:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:352:7: note:   'copysignf'
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/FileChannel.cpp:38:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static double Poco::FPEnvironmentImpl::copySignImpl(double, double)':
include/Poco/FPEnvironment_DUMMY.h:140:9: error: 'copysign' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:140:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/FileChannel.cpp:38:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:275:8: note:   'copysign'
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:104:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:110:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:116:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:122:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:128:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static float Poco::FPEnvironmentImpl::copySignImpl(float, float)':
include/Poco/FPEnvironment_DUMMY.h:134:9: error: 'copysignf' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:134:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/ArchiveStrategy.cpp:37:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:352:7: note:   'copysignf'
In file included from include/Poco/FPEnvironment.h:47:0,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/ArchiveStrategy.cpp:37:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static double Poco::FPEnvironmentImpl::copySignImpl(double, double)':
include/Poco/FPEnvironment_DUMMY.h:140:9: error: 'copysign' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:140:9: note: suggested alternative:
In file included from /Users/bquenin/android-toolchain/bin/../lib/gcc/../../include/c++/4.7/cmath:46:0,
                 from include/Poco/FPEnvironment_DUMMY.h:45,
                 from include/Poco/FPEnvironment.h:47,
                 from include/Poco/NumericString.h:45,
                 from include/Poco/NumberFormatter.h:44,
                 from include/Poco/ArchiveStrategy.h:47,
                 from src/ArchiveStrategy.cpp:37:
/Users/bquenin/android-toolchain/bin/../sysroot/usr/include/math.h:275:8: note:   'copysign'
make[1]: *** [/Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/DateTimeFormatter.o] Error 1
make[1]: *** [/Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/FileChannel.o] Error 1
make[1]: *** [/Users/bquenin/poco-1.5.1-all/Foundation/obj/Android/armeabi/debug_static/ArchiveStrategy.o] Error 1
make: *** [Foundation-libexec] Error 2

Anyone knows what i'm doing wrong ?

Thanks,
BQ.

Owner
aleks-f commented Jan 12, 2013

copysign* is C99/C++ TR1, apparently still not in std namespace with gcc 4.7. Remove std:: in front of it and see if it helps. If you provide a patch, we'll test and include it for future releases.

@aleks-f aleks-f was assigned Jan 12, 2013

I just removed the std from in front of copysign and copysignf and it fixed my gcc compile problem for iOS.

Owner
aleks-f commented Jan 12, 2013

please post a patch here, or send pull request

pull request submitted.

Owner
aleks-f commented Jan 12, 2013

merged in to develop for next release:

a867fb8

Will leave this issue open for better visibility.

@ghost
ghost commented Jan 12, 2013

Digging a little deeper, there are several options to fix this:

  • Removing the "std" in front of "copysign" indeed fixes the issue for iOS and Android, but only for "copysign" definition. For the others (isinf, isnan, etc.) removing "std" fixes the build for Android, but breaks it for iOS ... I don't really know how to manage this...
  • On a side note, it seems that removing the "-DPOCO_NO_FPENVIRONMENT" from the Android build configuration (in build/config/Android) fix the compilation issue. However, it seems that it's intentionally disabled so I don't know if it's a viable option.

Any insights would be appreciated :)

Thanks,
BQ.

PS: The submitted patch only fixes the iOS build. Android one is still broken.

Owner
aleks-f commented Jan 12, 2013

The best permanent solution is probably our usual way to deal with this kind of problem: separate .h/.cpp files.

@ghost
ghost commented Jan 12, 2013

I can surely give it a try. What would you suggest for naming ?

FPEnvironment_ANDROID and FPEnvironment_IOS ?

Owner
aleks-f commented Jan 12, 2013

That will work. FPEnvironment_DUMMY should remain as is now (all in std:: except copysign*).

@ghost
ghost commented Jan 12, 2013

End of the discussion here : #62

@ghost ghost closed this Jan 12, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment