Your message dated Thu, 13 Apr 2017 19:20:11 +0200
with message-id <[email protected]>
and subject line Re: should use -lm to build
has caused the Debian Bug report #705119,
regarding should use -lm to build
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
705119: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705119
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnome-paint
Version: 0.4.0-3
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch
The current version failed to build on raring with this error:
"/usr/bin/ld: gnome_paint-cv_paintbrush_tool.o: undefined reference to
symbol 'sqrt@@GLIBC_2.0'
/usr/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO
/lib/i386-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/i386-linux-gnu/libm.so.6: could not read symbols: Invalid operation"
That's because sqrt() is used but the source is not linked with -lm, the
attached patch fixes the issue and is what I uploaded to Ubuntu
Cheers,
Sebastien Bacher
diff -Nru gnome-paint-0.4.0/debian/changelog gnome-paint-0.4.0/debian/changelog
--- gnome-paint-0.4.0/debian/changelog 2011-05-24 00:33:41.000000000 +0200
+++ gnome-paint-0.4.0/debian/changelog 2013-04-10 13:13:50.000000000 +0200
@@ -1,3 +1,10 @@
+gnome-paint (0.4.0-3ubuntu1) raring; urgency=low
+
+ * debian/patches/correctly_link.patch: use -lm to fix build issue
+ (sqrt() is used in some sources)
+
+ -- Sebastien Bacher <[email protected]> Wed, 10 Apr 2013 13:13:09 +0200
+
gnome-paint (0.4.0-3) unstable; urgency=low
* debian/patches/lp-757607-crash-in-toolbar.patch:
diff -Nru gnome-paint-0.4.0/debian/control gnome-paint-0.4.0/debian/control
--- gnome-paint-0.4.0/debian/control 2011-05-24 00:27:55.000000000 +0200
+++ gnome-paint-0.4.0/debian/control 2013-04-10 13:14:15.000000000 +0200
@@ -1,7 +1,8 @@
Source: gnome-paint
Section: graphics
Priority: optional
-Maintainer: Aron Xu <[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Aron Xu <[email protected]>
Build-Depends: debhelper (>= 7.0.50~), autotools-dev, libgtk2.0-dev, intltool
( >= 0.35.0), gettext
Standards-Version: 3.9.2
Homepage: http://launchpad.net/gnome-paint/
diff -Nru gnome-paint-0.4.0/debian/patches/correctly_link.patch
gnome-paint-0.4.0/debian/patches/correctly_link.patch
--- gnome-paint-0.4.0/debian/patches/correctly_link.patch 1970-01-01
01:00:00.000000000 +0100
+++ gnome-paint-0.4.0/debian/patches/correctly_link.patch 2013-04-10
13:12:57.000000000 +0200
@@ -0,0 +1,24 @@
+diff -Nur gnome-paint-0.4.0/src/Makefile.am
gnome-paint-0.4.0.build/src/Makefile.am
+--- gnome-paint-0.4.0/src/Makefile.am 2010-12-27 20:36:26.000000000 +0100
++++ gnome-paint-0.4.0.build/src/Makefile.am 2013-04-10 13:12:16.768247252
+0200
+@@ -87,7 +87,7 @@
+ -Wl,--export-dynamic
+
+ gnome_paint_LDADD = \
+- $(GNOME_PAINT_LIBS) -lX11
++ $(GNOME_PAINT_LIBS) -lX11 -lm
+
+ SUBDIRS = \
+ pixmaps
+diff -Nur gnome-paint-0.4.0/src/Makefile.in
gnome-paint-0.4.0.build/src/Makefile.in
+--- gnome-paint-0.4.0/src/Makefile.in 2010-12-27 20:36:26.000000000 +0100
++++ gnome-paint-0.4.0.build/src/Makefile.in 2013-04-10 13:12:26.752247585
+0200
+@@ -352,7 +352,7 @@
+ -Wl,--export-dynamic
+
+ gnome_paint_LDADD = \
+- $(GNOME_PAINT_LIBS) -lX11
++ $(GNOME_PAINT_LIBS) -lX11 -lm
+
+ SUBDIRS = \
+ pixmaps
diff -Nru gnome-paint-0.4.0/debian/patches/series
gnome-paint-0.4.0/debian/patches/series
--- gnome-paint-0.4.0/debian/patches/series 2011-05-24 00:23:34.000000000
+0200
+++ gnome-paint-0.4.0/debian/patches/series 2013-04-10 13:13:04.000000000
+0200
@@ -1,3 +1,4 @@
lp-757607-crash-in-toolbar.patch
update_translations.patch
debian-612470-handle-urls.patch
+correctly_link.patch
--- End Message ---
--- Begin Message ---
Version: 0.4.0-4
It is built with -lm since 0.4.0-4.
signature.asc
Description: Digital signature
--- End Message ---