[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-06 Thread muhzi
muhzi added the comment: Yeah, makes sense -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-05 Thread Inada Naoki
Inada Naoki added the comment: May I close this issue? I feel target SDK v21 is too old. https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html -- nosy: +inada.naoki ___ Python tracker

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: CPython requires several changes to build for Android < 21. There was an attempt in issue32654 but it's abandoned. -- nosy: +yan12125 ___ Python tracker ___

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
muhzi added the comment: err, wrong logs sorry... configure:11514: checking for truncate configure:11514: armv7a-linux-androideabi16-clang -o conftest -pie -march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5 configure:11514: $? = 0 configure:11514: result: yes configure:7954: checkin

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
muhzi added the comment: Yes it is detected by configure because they exist. >From config.log: configure:11514: checking for truncate configure:11514: armv7a-linux-androideabi21-clang -o conftest -pie -march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5 configure:11514: $? = 0 configure

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread Christian Heimes
Christian Heimes added the comment: The presence of sendfile and truncate is detected by configure. Your copy of configure defines HAVE_SENDFILE and HAVE_SYS_SENDFILE_H. Please check config.log and see why configure detects the functions. -- nosy: +christian.heimes _

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
muhzi added the comment: After some testing, it works and builds extensions OK for android arm with API>=21. fails on lower API versions (e.g. 16). -- ___ Python tracker ___

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
muhzi added the comment: Using the latest NDK r19. Here is my compilation steps for arm: export PATH="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH" export CC="armv7a-linux-androideabi16-clang" export CXX="$CC++" export AR="arm-linux-androideabi-ar" export LD="arm-linux-android

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
New submission from muhzi : I encountered yet another issue with cross compilation on android, it so happens that these errors occur only when I cross compile for non 64-bit archs. i.e. I could cross compile just fine for arm64 & x86_64 but the 32-bit version of these archs produces the follo