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 662174 - gparted does not compile
gparted does not compile
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
0.9.1
Other Linux
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2011-10-19 10:37 UTC by ps
Modified: 2011-11-01 17:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ps 2011-10-19 10:37:32 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
Comment 1 Curtis Gedak 2011-10-19 15:29:52 UTC
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.
Comment 2 ps 2011-10-19 16:08:07 UTC
yes the patch fixes the problem. is there any known time schedule for the next gparted release?
Comment 3 Curtis Gedak 2011-10-19 16:12:31 UTC
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?
Comment 4 ps 2011-10-19 16:16:14 UTC
no, just trying to determinate whether wait for next release or request patching in my distro. your timetable is fine.
Comment 5 Curtis Gedak 2011-10-19 16:45:39 UTC
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.
Comment 6 Curtis Gedak 2011-11-01 17:09:58 UTC
The enhancements to address this bug report were included in the GParted 0.10.0 release on November 1, 2011.