should build using -lm

Bug #1167291 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-paint
Fix Committed
Medium
Unassigned

Bug Description

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

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Dominik Danelski (dominikdanelski) wrote :

There is a patch for more files available in Debian. I'll try to copy it into upstream soon.

Changed in gnome-paint:
status: New → In Progress
importance: Undecided → High
importance: High → Medium
Changed in gnome-paint:
milestone: none → 0.4.1
Changed in gnome-paint:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.