socket.AF_UNIX is not supported
See original GitHub issueHi!
I have tried to use local sockets in kivy app and noticed, that local sockets are disabled at compile time.
Python configure script fails to check “sys/un.h” header (which is sort of broken on android) and disables HAVE_SYS_UN_H
flag:
configure:6133: checking sys/un.h usability
configure:6133: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm -c -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm conftest.c >&5
In file included from /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/un.h:32, from conftest.c:84: /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/linux/un.h:18: error: expected specifier-qualifier-list before ‘sa_family_t’
related android issue: https://code.google.com/p/android/issues/detail?id=53711
Possible solution is to either add workaround to configure script or force-enable HAVE_SYS_UN_H
in pyconfig.h
.
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 10 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@Davincible I’m going to leave this closed as not an active issue, since it’s unlikely anyone will be actively looking into it. However, a PR to improve it would be welcome.
@Davincible I’m doing inter-process communication via kivy/oscpy and it works pretty well