Open nocibambi opened 7 years ago
This is a Vala compiler bug, as evidenced by the fact that the error occurs in GCC, thus Vala generated invalid C code.
The good news is that the bug has already been fixed in Vala 0.34, so upgrading Vala should resolve the problem. Alternatively, if you are not interested in the D-Bus service, you can just compile from the v0.2.0
tag which doesn't trigger the bug.
I'm getting the error using vala 0.34.1 (on NixOS).
Service.c: In function ‘plotinus_command_provider_proxy_proxy_get_commands’:
Service.c:2321:228: error: ‘error’ undeclared (first use in this function)
make[2]: *** [CMakeFiles/gtk_module.dir/build.make:271: CMakeFiles/gtk_module.dir/src/Service.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/gtk_module.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/dbus_service.dir/build.make:271: CMakeFiles/dbus_service.dir/src/Service.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
@olejorgenb: I can't reproduce this. It works with Vala 0.34 on Ubuntu 16.10. Could you provide more details?
Output: https://paste.pound-python.org/show/g1mnR5KFHXcdgugAQCdY/
$ gcc --version
gcc (GCC) 6.4.0
But if it works for you it's probably some weird combination of how NixOS does things and vala. Couldn't find any similar issues searching https://github.com/NixOS/nixpkgs/issues
When I was going through the installation steps (on Ubuntu 16.04), the
make
command produced a lengthy error message (see below).I installed all the prerequisites and did not receive any error messages during the preceding steps.
Any hints of the source of the error?