Bug#853436: gtkmathview: ftbfs with GCC-7

Juhani Numminen juhaninumminen0 at gmail.com
Tue Dec 19 09:56:46 UTC 2017


Control: tags -1 + patch

On Tue, 31 Jan 2017 09:31:56 +0000 Matthias Klose <doko at debian.org> wrote:> The full build log can be found at:
> http://people.debian.org/~doko/logs/gcc7-20170126/gtkmathview_0.8.0-14_unstable_gcc7.log
>...

I got a different error:

gtkmathview_common.cc: In function 'gint gtk_math_view_button_release_event(GtkWidget*, GdkEventButton*)':
gtkmathview_common.cc:912:50: error: call of overloaded 'abs(guint32)' is ambiguous
    abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
...
/usr/include/stdlib.h:751:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
...

FreeBSD have a patch for that:
https://svnweb.freebsd.org/ports/head/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc?view=markup

For a version that quilt understands, plus DEP3 information, see the attachment.
I tested it using cowbuilder.


Juhani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abs-unsigned.patch
Type: text/x-patch
Size: 1357 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20171219/65b74f79/attachment.bin>


More information about the debian-science-maintainers mailing list