Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memfd_create not being detected correctly #68

Open
sonvirgo opened this issue Mar 15, 2018 · 10 comments
Open

memfd_create not being detected correctly #68

sonvirgo opened this issue Mar 15, 2018 · 10 comments

Comments

@sonvirgo
Copy link

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
Copy link

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
Copy link
Author

sonvirgo commented Mar 17, 2018

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
Copy link

@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
Copy link
Author

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

@qwertychouskie
Copy link

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

@sonvirgo
Copy link
Author

sonvirgo commented Mar 19, 2018

@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
Copy link

@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
Copy link
Author

@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
Copy link
Author

sonvirgo commented Apr 9, 2018

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
Copy link

I do have the same issue on Ubuntu 20.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants