GNOME Bugzilla – Bug 662174
gparted does not compile
Last modified: 2011-11-01 17:09:58 UTC
gparted doesn't compile with older versions of gcc which is a showstopper on some systems. is it possible to write the code in a more generic way? with gcc 4.3.4 i get: Utils.cc: In static member function 'static Glib::ustring GParted::Utils::cleanup_cursor(const Glib::ustring&)': Utils.cc:442: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/bits/postypes.h:171: note: candidate 1: std::fpos<_StateT> std::fpos<_StateT>::operator-(std::streamoff) const [with _StateT = __mbstate_t] Utils.cc:442: note: candidate 2: operator-(std::streamoff, std::streamsize) <built-in> make[2]: *** [Utils.o] Error 1
Thank you for reporting this problem. I have been able to confirm this problem by attempting to compile GParted-0.9.1 under Ubuntu Hardy Heron (8.04) with gcc 4.2.4. Coincidentally, this problem has been solved with the following recent commit: http://git.gnome.org/browse/gparted/commit/?id=9b004634ab96059779bd5961960cb88f12b49d49 Can you try recompiling with this change to the code? Please let me know how you make out, or if you need help applying this change.
yes the patch fixes the problem. is there any known time schedule for the next gparted release?
I am tentatively planning for a new release in late October or early November. Are you aware of any other deadlines that would necessitate an earlier release?
no, just trying to determinate whether wait for next release or request patching in my distro. your timetable is fine.
Okay, I won't make any changes to the release schedule. The enhancement listed in comment #1 is planned for inclusion in the next release of GParted.
The enhancements to address this bug report were included in the GParted 0.10.0 release on November 1, 2011.