FTBFS in Natty: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'

Bug #662979 reported by Alex Valavanis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
ScislaC
inkscape (Debian)
Fix Released
Unknown
inkscape (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: inkscape

My attempt to build inkscape_0.48.0-1ubuntu1 in a Natty chroot (amd64) failed with the following error:

  CXXLD inkscape
/usr/bin/ld: libinkscape.a(javabind.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

This is probably due to the changes in binutils for Natty/Wheezy <http://wiki.debian.org/ToolChain/DSOLinking> which prevent the automatic resolution of symbols in indirect dependent shared libraries.

Inkscape has already been flagged as potentially having this problem at the following pages:
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554919
* https://wiki.ubuntu.com/RobSavoye/GoldFixes

Is this just a case of adding the following to src/Makefile.am?

libinkscape_a_LIBADD = -ldl

Changed in inkscape (Ubuntu):
importance: Undecided → Medium
Changed in inkscape:
importance: Undecided → High
tags: added: build
description: updated
Changed in inkscape (Debian):
status: Unknown → New
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Added simple patch which seems to fix the bug for me in a local chroot build

Changed in inkscape (Ubuntu):
status: New → In Progress
assignee: nobody → Alex Valavanis (valavanisalex)
tags: added: patch-forwarded-upstream
Revision history for this message
su_v (suv-lp) wrote :

see <https://bugs.launchpad.net/inkscape/+bug/595872>, comment #6 - maybe adding it in configure.ac instead?

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Yes, that would be more sensible. I'll update the patch shortly

tags: added: patch-forwarded-debian
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Updated patch as discussed. Still builds fine locally

Changed in inkscape (Debian):
status: New → Confirmed
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Ubuntu fix submitted for sponsorship in bug #645888

Changed in inkscape (Ubuntu):
status: In Progress → Triaged
assignee: Alex Valavanis (valavanisalex) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package inkscape - 0.48.0-1ubuntu2

---------------
inkscape (0.48.0-1ubuntu2) natty; urgency=low

  * Bug-fix release (LP: #645888)
  * Added 02-fix-binutils-gold-build-failure.dpatch (LP: #662979)
  * debian/control: No longer suggest ttf-dejavu (LP: #643371)
 -- Alex Valavanis <email address hidden> Tue, 19 Oct 2010 00:53:16 +0100

Changed in inkscape (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

Patch committed by ScislaC
inkscape trunk: r9894
inkscape 0.48.x: r9722

Changed in inkscape:
milestone: none → 0.48.1
status: New → Fix Committed
Changed in inkscape:
assignee: nobody → ScislaC (scislac)
tags: added: patch-accepted-upstream
removed: patch-forwarded-upstream
Changed in inkscape (Debian):
status: Confirmed → Fix Released
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
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.