hfujita / pulseaudio-raop2

Experimental RAOP2 (Apple AirPlay2) support for PulseAudio
http://hfujita.github.io/pulseaudio-raop2/
Other
138 stars 19 forks source link

memfd_create not being detected correctly #68

Open sonvirgo opened 6 years ago

sonvirgo commented 6 years ago

I am on systemd 238 and have the same issue while making pulseaudio-raop2. Work around please. Kali 2017.3

In file included from pulsecore/shm.c:48:0:
./pulsecore/memfd-wrappers.h:36:19: error: static declaration of ‘memfd_create’ follows non-static declaration
 static inline int memfd_create(const char *name, unsigned int flags) {
                   ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,
                 from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
                 from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                 from pulsecore/shm.c:37:
/usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
 int memfd_create (const char *__name, unsigned int __flags) __THROW;
     ^~~~~~~~~~~~
Makefile:8048: recipe for target 'pulsecore/libpulsecommon_7.0_la-shm.lo' failed
make[3]: *** [pulsecore/libpulsecommon_7.0_la-shm.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/root/Downloads/pulseaudio-raop2/src'
Makefile:4920: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/root/Downloads/pulseaudio-raop2/src'
Makefile:807: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Downloads/pulseaudio-raop2'
Makefile:622: recipe for target 'all' failed
make: *** [all] Error 2
qwertychouskie commented 6 years ago

This code is now a part of PulseAudio proper as of version 11. Please try a fresh compile of the latest version from https://www.freedesktop.org/wiki/Software/PulseAudio/.

sonvirgo commented 6 years ago

Thanks! I see. I tried to build 11.1 source in Ubuntu 17.04. It build fine but GDM can not start after installing it from the build. So I install Bionic version to Zesty, and it works very well up to now.

qwertychouskie commented 6 years ago

@sonvirgo No problem. I do recommend that you upgrade to Ubuntu 17.10 though as 17.04 is EOL (https://fridge.ubuntu.com/2018/01/17/ubuntu-17-04-zesty-zapus-reached-end-of-life-on-january-13-2018/).

sonvirgo commented 6 years ago

@qwertychouskie Thank you. My m3 7y30 tablet doesn't like Gnome on Wayland. So I will wait till official 18.04 release.

qwertychouskie commented 6 years ago

@sonvirgo I recommend you read https://itsfoss.com/switch-xorg-wayland/.

sonvirgo commented 6 years ago

@qwertychouskie I have famous ofono issue with PulseAudio 11. HFP profile doesn't work. I am trying to setup HFP from Ubuntu Zesty Gnome to my Nokia X2DS CM 12.1, I am following the FreeDesktopOrg guide to enable HFP but having no success, only at the test/enable-modem step:

Phone stuck at:

E/BluetoothHeadsetServiceJni( 2470): Failed report phone state change, status: 2

While Ubuntu stuck at:

ofonod[923]: plugins/hfp_hf_bluez5.c:profile_new_connection() version: 262

I am sure, both tablet and phone work with each other in Windows 10 DUN. So there must be something wrong with ofono.

qwertychouskie commented 6 years ago

@sonvirgo probably some conflict between files in Zesty and the Pulseaudio from Bionic. I recommend you upgrade to at least 17.10, though I am currently running Xubuntu 18.04 and it seems stable enough.

sonvirgo commented 6 years ago

@qwertychouskie Thank you. For now I give up. Let's see it when users voice about this. I have just tested HFP on other machine vanilla Xenial, exact same error. I suspect some thing like confirmation dialog not is triggered, while this open up for DUN connection from Windows.

sonvirgo commented 6 years ago

For Bluez5, ofono issue, this is due to CM build. I connect to Samsung Tab A 9.7 P555, Nougat 7.1.1 OK :D

idoodler commented 4 years ago

I do have the same issue on Ubuntu 20.04.