question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

socket.AF_UNIX is not supported

See original GitHub issue

Hi!

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:closed
  • Created 10 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
inclementcommented, Jan 31, 2019

@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.

1reaction
AndreMirascommented, Jan 31, 2019

@Davincible I’m doing inter-process communication via kivy/oscpy and it works pretty well

Read more comments on GitHub >

github_iconTop Results From Across the Web

AF_UNIX in windows - linux - Stack Overflow
Windows does not support Unix domain sockets, nor does it provide a good alternative that uses the socket API. You should use TCP...
Read more >
AF_UNIX abstract on Windows do not work #4240 - GitHub
Windows implementation of AF_UNIX does not support abstract sockets (as already established here so far) and we have very less desire to ...
Read more >
windows server 2016 does not support AF_UNIX?
since 2018, windows start to support AF_UNIX. But I found the AF_UNIX program which works well on win10 cant run on windows 2016, ......
Read more >
Issue 33408: Enable AF_UNIX support in Windows
AF_UNIX is not a valid attribute on Windows. I think it's possible that there is code that detects whether AF_UNIX is an attribute...
Read more >
Unix Sockets are Now Supported on Windows - Bozhidar Batsov
Beginning in Insider Build 17063, you'll be able to use the unix socket (AF_UNIX) address family on Windows to communicate between Win32 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found