After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779337 - git master branch fails to compile.
git master branch fails to compile.
Status: RESOLVED NOTABUG
Product: system-monitor
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-27 21:33 UTC by Hussam Al-Tayeb
Modified: 2017-03-01 13:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hussam Al-Tayeb 2017-02-27 21:33:18 UTC
I get the following error:

  CXX      main.o
make[3]: *** No rule to make target 'legacy/gsm-resources.o', needed by 'gnome-system-monitor'.  Stop.
make[3]: Leaving directory '/home/hussam/cache/gnome/gnome-system-monitor/src/gnome-system-monitor/src'
make[2]: *** [Makefile:641: all-recursive] Error 1
make[2]: Leaving directory '/home/hussam/cache/gnome/gnome-system-monitor/src/gnome-system-monitor/src'
make[1]: *** [Makefile:599: all-recursive] Error 1
make[1]: Leaving directory '/home/hussam/cache/gnome/gnome-system-monitor/src/gnome-system-monitor'
make: *** [Makefile:464: all] Error 2


This is a clean checkout of gnome-system-monitor from git master branch.
Comment 1 Robert Roth 2017-02-27 21:44:33 UTC
Strange, I have just made a completely clean checkout, and system monitor builds just fine. Adding Benoit to CC, maybe he can help me out here.
Comment 2 Benoît Dejean 2017-02-28 17:40:09 UTC
Hello, what do you mean by clean checkout ? In a brand new directory ? If not, even by running again the autogen, you might run into this. Try a "git clean -x -f" (=> https://manpages.debian.org/jessie/git-man/git-clean.1.en.html ) ?
Comment 3 Robert Roth 2017-02-28 18:05:03 UTC
I have tried cloning the repository from scratch, and building, and it did work that way.
Comment 4 Hussam Al-Tayeb 2017-02-28 18:26:12 UTC
I did 
git clone git://git.gnome.org/gnome-system-monitor --depth=1
cd gnome-system-monitor
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --libexecdir=/usr/lib  --enable-systemd --disable-static
make

I just discovered that removing --disable-static makes it compile correctly.
Comment 5 Benoît Dejean 2017-03-01 12:59:39 UTC
And it makes sense because we now have a static library in the build process.
Comment 6 Hussam Al-Tayeb 2017-03-01 13:05:55 UTC
Would it be possible to remove that configure option from configure.ac? Thank you.
Comment 7 Benoît Dejean 2017-03-01 13:31:50 UTC
I don't think so, this is a generic libtool flag.
Comment 8 Hussam Al-Tayeb 2017-03-01 13:47:00 UTC
Ok, thank you for looking into this.