Comment 3 for bug 1784622

Revision history for this message
moma (osmoma) wrote : Re: [Bug 1784622] Re: Undeclared dependency on gio-unix-2.0

Hello,
Yes, I may agree with you.

Looks like some systems prefer gio-unix-2.0 instead of gio-2.0.
F.eks some pure Unix systems: https://developer.gnome.org/
gio/stable/ch03.html

NixOS is a Linux-distro, but the packaging and package system is different
from Debian or Fedora.

You should study two (2) options.

Option 1)
Include the glib-unix.h in the dbus-player.h or .c file.

The re-compile.

Ref:
https://developer.gnome.org/glib/stable/glib-UNIX-specific-utilities-and-integration.html

----

Option 2)
Try this.
Would you please edit the "configure.ac" and add gio-unix-2.0 to it.

Check you library version with
pkg-config --modversion gio-unix-2.0

The lines may look like this:

PKG_CHECK_MODULES(GLIB_UNIX, glib-unix-2.0 >= 2.0)
AC_SUBST(GLIB_UNIX_CFLAGS)
AC_SUBST(GLIB_UNIX_LIBS)

--------------------------------

The reset and re-configure the source:

cd audio-recorder*
make clean

aclocal
autoconf
automake -a

Or as one-liner:
aclocal && autoconf && automake -a

You may also run:
autoreconf -i
-------------

These commands will configure, build/compile, and install the program:

cd audio-recorder*
./configure
make clean
make

sudo make install # run this as root or sudo! AT LEAST ONCE.
-------------

Notice: KILL or QUIT previous instances of the program !
pkill audio-recorder

Then re-run the program
src/audio-recorder
--------------

Good luck.

Osmo (Moma) Antero
  Portugal

2018-07-31 15:06 GMT+01:00 Jan Tojnar <email address hidden>:

> Running `pkg-config --cflags gio-unix-2.0` in the package prints the
> following:
>
> -I/nix/store/l1v16k68v3njjw281fbfk20zxsb52q35-glib-2.56.0-dev/include
> /gio-unix-2.0/
> -I/nix/store/l1v16k68v3njjw281fbfk20zxsb52q35-glib-2.56.0-dev/include/
> glib-2.0
> -I/nix/store/ycpkd4jxpy913v6fxf4b5mmy9bz81vsy-
> glib-2.56.0/lib/glib-2.0/include
>
> I think the issue is that the gio-unix-2.0 cflags are not passed to the
> dbus-player.c file.
>
> --
> You received this bug notification because you are subscribed to Audio
> Recorder.
> https://bugs.launchpad.net/bugs/1784622
>
> Title:
> Undeclared dependency on gio-unix-2.0
>
> Status in Audio Recorder:
> New
>
> Bug description:
> I am building audio-recorder 2.1.3 on NixOS and getting the following
> error:
>
> ```
> dbus-player.c:22:10: fatal error: gio/gdesktopappinfo.h: No such file or
> directory
> #include <gio/gdesktopappinfo.h>
> ^~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[1]: *** [Makefile:463: dbus-player.o] Error 1
> make[1]: Leaving directory '/build/trunk/src'
> make: *** [Makefile:439: all-recursive] Error 1
> ```
>
> Downstream issue: https://github.com/NixOS/nixpkgs/issues/36468
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/audio-recorder/+bug/1784622/+subscriptions
>

--
Sent from my PC, laptop or phone with Ubuntu-Linux.