build(Arch Linux): Unable to complete build.
Issue generated from Tuleap's migration script. Originally submitted by: Evren D. (demirk4n)
Hi,
Using the latest tarball I'm unable to complete "gnome-client" build for my distro (Arch Linux)
Here's the error message;
/tmp/ring-project/client-gnome/src/ring\_client.cpp:70:23: error: \#if with no expression
\#if HAVE\_APPINDICATOR
\^
/tmp/ring-project/client-gnome/src/ring\_client.cpp:317:23: error: \#if with no expression
\#if HAVE\_APPINDICATOR
\^
make[2]: \*\*\* [CMakeFiles/gnome-ring.dir/build.make:221: CMakeFiles/gnome-ring.dir/src/ring\_client.cpp.o] Error 1
make[1]: \*\*\* [CMakeFiles/Makefile2:1834: CMakeFiles/gnome-ring.dir/all] Error 2
make: \*\*\* [Makefile:128: all] Error 2
Error executing script! Exit code: 512
To reproduce the problem
Download the latest tarball; http://dl.ring.cx/ring-release/tarballs/ring\_20170302.1.edd2c13.tar.gz
./make-ring.py --dependencies --distribution="Arch Linux"
./make-ring.py --install --distribution="Arch Linux"
Env:
4.9.13-1-Arch Linux \#1 SMP PREEMPT Sun Feb 26 13:27:28 UTC 2017 x86\_64 GNU/Linux
As a work around I did comment the relevant part of the code in ring\_client.cpp . With that build went on and completed.
// \#if HAVE\_APPINDICATOR
// \#include <libappindicator/app-indicator.h>
// \#endif
// \#if HAVE\_APPINDICATOR
/\* only use AppIndicator in Unity (Tuleap: \#1440) \*/ // const auto desktop = g\_getenv("XDG\_CURRENT\_DESKTOP"); // if (g\_strcmp0("Unity", desktop) == 0) {
// use\_appinidcator = TRUE;
// // auto indicator = app\_indicator\_new("ring", "ring", APP\_INDICATOR\_CATEGORY\_COMMUNICATIONS);
// app\_indicator\_set\_status(indicator, APP\_INDICATOR\_STATUS\_ACTIVE);
// app\_indicator\_set\_title(indicator, "ring");
// /\* app indicator requires a menu \*/
// app\_indicator\_set\_menu(indicator, GTK\_MENU(priv->icon\_menu));
// priv->systray\_icon = indicator;
// }
// \#endif