~steef/snixembed#9: 
Cannot build on Linux Mint 18.3 Sylvia x86_64

Hello!

Clean clone from https://git.sr.ht/~steef/snixembed [--- cut ---]

make valac -o snixembed -X -pthread -X -I/usr/include/libdbusmenu-gtk3-0.4 -X -I/usr/include/libdbusmenu-glib-0.4 -X -I/usr/include/gtk-3.0 -X -I/usr/include/at-spi2-atk/2.0 -X -I/usr/include/at-spi-2.0 -X -I/usr/include/dbus-1.0 -X -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -X -I/usr/include/gtk-3.0 -X -I/usr/include/gio-unix-2.0/ -X -I/usr/include/mirclient -X -I/usr/include/mircore -X -I/usr/include/mircookie -X -I/usr/include/cairo -X -I/usr/include/pango-1.0 -X -I/usr/include/harfbuzz -X -I/usr/include/pango-1.0 -X -I/usr/include/atk-1.0 -X -I/usr/include/cairo -X -I/usr/include/pixman-1 -X -I/usr/include/freetype2 -X -I/usr/include/libpng12 -X -I/usr/include/gdk-pixbuf-2.0 -X -I/usr/include/libpng12 -X -I/usr/include/glib-2.0 -X -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -X -ldbusmenu-gtk3 -X -ldbusmenu-glib -X -lgtk-3 -X -lgdk-3 -X -lpangocairo-1.0 -X -lpango-1.0 -X -latk-1.0 -X -lcairo-gobject -X -lcairo -X -lgdk_pixbuf-2.0 -X -lgio-2.0 -X -lgobject-2.0 -X -lglib-2.0 --pkg gtk+-3.0 --pkg gio-2.0 --pkg Dbusmenu-0.4 --pkg DbusmenuGtk3-0.4 src/*.vala version.vala src/statusnotifierwatcher.vala:33.5-33.52: error: property getter must have a body public string[] registered_status_notifier_items { get; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Compilation failed: 1 error(s), 0 warning(s) makefile:13: recipe for target 'snixembed' failed make: *** [snixembed] Error 1 [--- cut ---]

Quick workarounded with this: [--- cut ---]

git diff diff --git a/src/statusnotifierwatcher.vala b/src/statusnotifierwatcher.vala index eb29817..5dddaba 100644 --- a/src/statusnotifierwatcher.vala +++ b/src/statusnotifierwatcher.vala @@ -30,7 +30,7 @@ public class StatusNotifierWatcher : Object { }

 // Properties
  • public string[] registered_status_notifier_items { get; }
  • public string[] registered_status_notifier_items { get; set; } public bool is_status_notifier_host_registered { get { return true; } }

    // This property is undocumented yet KDE implements it [--- cut ---]

Though still not luck: [--- cut ---]

make valac -o snixembed -X -pthread -X -I/usr/include/libdbusmenu-gtk3-0.4 -X -I/usr/include/libdbusmenu-glib-0.4 -X -I/usr/include/gtk-3.0 -X -I/usr/include/at-spi2-atk/2.0 -X -I/usr/include/at-spi-2.0 -X -I/usr/include/dbus-1.0 -X -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -X -I/usr/include/gtk-3.0 -X -I/usr/include/gio-unix-2.0/ -X -I/usr/include/mirclient -X -I/usr/include/mircore -X -I/usr/include/mircookie -X -I/usr/include/cairo -X -I/usr/include/pango-1.0 -X -I/usr/include/harfbuzz -X -I/usr/include/pango-1.0 -X -I/usr/include/atk-1.0 -X -I/usr/include/cairo -X -I/usr/include/pixman-1 -X -I/usr/include/freetype2 -X -I/usr/include/libpng12 -X -I/usr/include/gdk-pixbuf-2.0 -X -I/usr/include/libpng12 -X -I/usr/include/glib-2.0 -X -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -X -ldbusmenu-gtk3 -X -ldbusmenu-glib -X -lgtk-3 -X -lgdk-3 -X -lpangocairo-1.0 -X -lpango-1.0 -X -latk-1.0 -X -lcairo-gobject -X -lcairo -X -lgdk_pixbuf-2.0 -X -lgio-2.0 -X -lgobject-2.0 -X -lglib-2.0 --pkg gtk+-3.0 --pkg gio-2.0 --pkg Dbusmenu-0.4 --pkg DbusmenuGtk3-0.4 src/*.vala version.vala src/main.vala:10.5-12.26: warning: unhandled error GLib.SpawnError' src/statusnotifieritem.vala:62.19-62.37: warning: unhandled errorGLib.Error' res = me.call.end(result); ^^^^^^^^^^^^^^^^^^^ src/proxyicon.vala:38.17-38.37: error: The name popup_at_pointer' does not exist in the context ofDbusmenuGtk.Menu' menu.popup_at_pointer(event); ^^^^^^^^^^^^^^^^^^^^^ src/proxyicon.vala:11.22-11.92: warning: unhandled error `GLib.IOError' item = yield Bus.get_proxy(BusType.SESSION, name, object, DBusProxyFlags.NONE, null); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Compilation failed: 1 error(s), 3 warning(s) makefile:13: recipe for target 'snixembed' failed make: *** [snixembed] Error 1 [--- cut ---]

Any clue would be appreciated. Thanks.

-- George L. Yermulnik [YZ-RIPE]

Status
REPORTED
Submitter
George L. Yermulnik
Assigned to
No-one
Submitted
9 months ago
Updated
4 months ago
Labels
No labels applied.

~steef 8 months ago

Hello! Both errors seem to indicate that your vala (and VAPI for libdbusmenu-gtk3) version is too outdated to build this project. Your Mint version looks out of date. Maybe you can build it on the latest Mint release? I've had bug reports from a Debian user, so I suspect it will also compile fine on the latest Mint. If not, please let me know!

~hyiltiz 4 months ago*

#Tired but failed to build in Debian too. Installed the dependencies:

apt show valac-bin libgio2.0-cil-dev libglib2.0-dev libgtk3.0-cil-dev libdbusmenu-gtk3-dev libdbusmenu-gtk3-4 libdbusmenu-glib-dev
Package: valac-bin
Version: 0.48.11-1
Priority: optional
Section: devel
Source: vala
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Installed-Size: 371 kB
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.48), libvala-0.48-0 (= 0.48.11-1), libvalacodegen-0.48-0 (= 0.48.11-1)
Conflicts: valac-0.12, valac-0.14, valac-0.16, valac-0.18, valac-0.20, valac-0.22, valac-0.24, valac-0.26, valac-0.28, valac-0.30
Breaks: valac (<< 0.46.5-1.1~)
Replaces: valac (<< 0.46.5-1.1~)
Homepage: https://wiki.gnome.org/Projects/Vala/
Download-Size: 295 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: internal package for C# like language for the GObject system
 Vala is a new programming language that aims to bring modern programming
 language features to GNOME developers without imposing any additional
 runtime requirements and without using a different ABI compared to
 applications and libraries written in C.
 .
 This particular package is an implementation detail of the vala packaging.
 It should not be installed directly and there should be no dependencies
 on it. Refer to the valac package instead.

Package: libgio2.0-cil-dev
Version: 2.22.3-3
Priority: optional
Section: cli-mono
Source: gio-sharp
Maintainer: Debian CLI Libraries Team <pkg-cli-libs-team@lists.alioth.debian.org>
Installed-Size: 300 kB
Depends: libgio-cil (= 2.22.3-3)
Homepage: http://gitorious.org/gio-sharp
Tag: devel::ecma-cli, devel::library, role::devel-lib
Download-Size: 21.3 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: CLI binding for the GIO I/O stack 2.22
 This package provides the gio-sharp assembly that allows CLI (.NET) programs
 to use the GIO I/O stack 2.22.
 .
 This package contains development files for the gio-sharp library, and should
 be used for compilation.

Package: libglib2.0-dev
Version: 2.66.1-2
Priority: optional
Section: libdevel
Source: glib2.0
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Installed-Size: 10.1 MB
Depends: libffi-dev (>= 3.3), libglib2.0-0 (= 2.66.1-2), libglib2.0-bin (= 2.66.1-2), libglib2.0-dev-bin (= 2.66.1-2), libmount-dev (>= 2.35.2-7~), libpcre3-dev (>= 1:8.31), libselinux1-dev, pkg-config, zlib1g-dev
Suggests: libgirepository1.0-dev (>= 1.62), libglib2.0-doc
Breaks: libglib2.0-0-dbg (<< 2.51.4-1~)
Replaces: libglib2.0-0-dbg (<< 2.51.4-1~)
Homepage: http://www.gtk.org/
Tag: devel::lang:c, devel::library, implemented-in::c, role::devel-lib,
 uitoolkit::gtk
Download-Size: 1,572 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: Development files for the GLib library
 GLib is a library containing many useful C routines for things such
 as trees, hashes, lists, and strings.  It is a useful general-purpose
 C library used by projects such as GTK+, GIMP, and GNOME.
 .
 This package is needed to compile programs against libglib2.0-0,
 as only it includes the header files and static libraries (optionally)
 needed for compiling.
 .
 GObject-Introspection metadata for this library can be found in the
 libgirepository1.0-dev package.

Package: libgtk3.0-cil-dev
Version: 2.99.3-4
Priority: optional
Section: cli-mono
Source: gtk-sharp3
Maintainer: Debian CLI Libraries Team <pkg-cli-libs-team@lists.alioth.debian.org>
Installed-Size: 1,630 kB
Depends: libatk3.0-cil (= 2.99.3-4), libcairo1.10-cil (= 2.99.3-4), libgdk3.0-cil-dev (= 2.99.3-4), libgio3.0-cil-dev (= 2.99.3-4), libglib3.0-cil-dev (= 2.99.3-4), libgtk3.0-cil (= 2.99.3-4), libpango3.0-cil (= 2.99.3-4)
Recommends: libmono-profiler-gui-thread-check
Suggests: monodoc-gtk3.0-manual
Homepage: http://www.mono-project.com/GtkSharp
Tag: uitoolkit::gtk
Download-Size: 136 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: CLI binding for the GTK+ toolkit 3.0
 This package provides the gtk-sharp assembly that allows CLI (.NET) programs
 to use the GTK+ 3.0 user interface toolkit.
 .
 GTK# 3.0 is a CLI (.NET) language binding for the GTK+ 3.0 toolkit and related
 libraries.
 .
 This package contains development files for ATK#, Cairo#, GDK#, Glib#, GTK# and
 Pango#, and should be used for compilation.

Package: libdbusmenu-gtk3-dev
Version: 18.10.20180917~bzr492+repack1-2
Priority: optional
Section: libdevel
Source: libdbusmenu
Maintainer: The Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Installed-Size: 239 kB
Depends: gir1.2-dbusmenu-gtk3-0.4 (= 18.10.20180917~bzr492+repack1-2), libdbusmenu-glib-dev, libdbusmenu-gtk3-4 (= 18.10.20180917~bzr492+repack1-2), libgtk-3-dev (>= 2.91.4-0ubuntu1)
Homepage: https://launchpad.net/dbusmenu
Tag: devel::library, role::devel-lib
Download-Size: 54.5 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: library for passing menus over DBus - GTK-3+ version development files
 libdbusmenu passes a menu structure across DBus so that a program can
 create a menu simply without worrying about how it is displayed on the
 other side of the bus.
 .
 This package contains files that are needed to build GTK-3+ applications.

Package: libdbusmenu-gtk3-4
Version: 18.10.20180917~bzr492+repack1-2
Priority: optional
Section: libs
Source: libdbusmenu
Maintainer: The Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Installed-Size: 124 kB
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libdbusmenu-glib4 (>= 0.5.90), libgdk-pixbuf2.0-0 (>= 2.22.1-0ubuntu4), libglib2.0-0 (>= 2.37.3), libpango-1.0-0 (>= 1.14.0)
Homepage: https://launchpad.net/dbusmenu
Tag: role::shared-lib
Download-Size: 46.1 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: library for passing menus over DBus - GTK-3+ version
 libdbusmenu passes a menu structure across DBus so that a program can
 create a menu simply without worrying about how it is displayed on the
 other side of the bus.
 .
 This package contains shared libraries to be used by GTK-3+ applications.

Package: libdbusmenu-glib-dev
Version: 18.10.20180917~bzr492+repack1-2
Priority: optional
Section: libdevel
Source: libdbusmenu
Maintainer: The Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Installed-Size: 529 kB
Depends: gir1.2-dbusmenu-glib-0.4 (= 18.10.20180917~bzr492+repack1-2), libdbusmenu-glib4 (= 18.10.20180917~bzr492+repack1-2), libgtk2.0-dev (>= 2.12.0)
Homepage: https://launchpad.net/dbusmenu
Tag: devel::library, role::devel-lib
Download-Size: 84.2 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian testing/main amd64 Packages
Description: library for passing menus over DBus - development files
 libdbusmenu passes a menu structure across DBus so that a program can
 create a menu simply without worrying about how it is displayed on the
 other side of the bus.
 .
 This package contains files that are needed to build applications.

#Then got the source:

commit d93051355481609c479e99da26aba0db687a1306 (HEAD -> master, tag: 0.3.0, origin/master, origin/HEAD)
Author: Steef Hegeman <mail@steefhegeman.com>
Date:   Mon Jun 8 01:10:10 2020 +0200

    version 0.3.0

    See tag for announcement.

#But make says:

echo "const string VERSION = \"0.3.0\";" > version.vala
valac -o snixembed  -X -pthread  -X -I/usr/include/libdbusmenu-gtk3-0.4  -X -I/usr/include/libdbusmenu-glib-0.4  -X -I/usr/include/gtk-3.0  -X -I/usr/include/at-spi2-atk/2.0  -X -I/usr/include/at-spi-2.0  -X -I/usr/include/dbus-1.0  -X -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include  -X -I/usr/include/gtk-3.0  -X -I/usr/include/gio-unix-2.0  -X -I/usr/include/cairo  -X -I/usr/include/pango-1.0  -X -I/usr/include/fribidi  -X -I/usr/include/harfbuzz  -X -I/usr/include/atk-1.0  -X -I/usr/include/cairo  -X -I/usr/include/pixman-1  -X -I/usr/include/uuid  -X -I/usr/include/freetype2  -X -I/usr/include/libpng16  -X -I/usr/include/gdk-pixbuf-2.0  -X -I/usr/include/libmount  -X -I/usr/include/blkid  -X -I/usr/include/glib-2.0  -X -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -X -ldbusmenu-gtk3  -X -ldbusmenu-glib  -X -lgtk-3  -X -lgdk-3  -X -lpangocairo-1.0  -X -lpango-1.0  -X -lharfbuzz  -X -latk-1.0  -X -lcairo-gobject  -X -lcairo  -X -lgdk_pixbuf-2.0  -X -lgio-2.0  -X -lgobject-2.0  -X -lglib-2.0   --pkg gtk+-3.0  --pkg gio-2.0  --pkg Dbusmenu-0.4  --pkg DbusmenuGtk3-0.4 src/*.vala version.vala
error: Package `glib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gtk+-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gio-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 4 error(s), 0 warning(s)
make: *** [makefile:13: snixembed] Error 1

~steef 4 months ago

Like I mentioned in the matrix room, the error seems to indicate that you're missing the vapi files. They are a dependency of the valac package, do you have that installed? (It is mentioned on the Debian website that valac-bin is an internal package that should not be installed directly, so that package alone is not enough to compile the project.)

~hyiltiz 4 months ago

Installing valac-0.48-vapi as directed led to a successful build. Thank you!

~hyiltiz 4 months ago*

Installing valac-0.48-vapi as directed led to a successful build. Thank you! (EDIT: hmm, sr.ht is having a hick-up)

Register here or Log in to comment, or comment via email.