linking error on Fedora 13

Bug #595872 reported by jimmac
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned
inkscape (Debian)
Fix Released
Unknown
inkscape (Fedora)
Fix Released
High

Bug Description

Now I have no idea what I'm reporting here :) but on Fedora 13, current bzr fails to link the final binaries. The error I get is:

/usr/bin/ld: build.linux/src/ui/linux/x11_common.o: undefined reference to symbol 'XGetWindowAttributes'
/usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [build.linux/showtime] Error 1

On IRC I've been given this piece of information but I'm unable to provide the link to the DSO, whatever that is. https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

I would appreciate if the Makefile was updated so that Inkscape builds on Fedora. Thank you!

Tags: build linux

Related branches

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

inkscape-0.47-6.fc13.src.rpm Failed To Build From Source against the rawhide tree. See http://fedoraproject.org/wiki/FTBFS for more information.
This failure is due to a change in the linker default behavior, which uncovered a fault in your package. See http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking .
If you believe this is actually a bug in another package, do NOT change the component in this bug or close this bug. Instead, add the appropriate bug number from the other package to the "Depends on" line in this bug. If the other package does not yet have a bug created that you think matches, please create one. Doing so helps us properly track bugs and their dependencies, just as we track package dependencies. (If you close this bug, and the other package is not fixed before the next FTBFS run, a new bug will get created. Please follow the above advice to avoid such duplication.)

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393554
root.log

root.log for i386

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393555
build.log

build.log for i386

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393556
mock.log

mock.log for i386

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393557
root.log

root.log for x86_64

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393558
build.log

build.log for x86_64

Revision history for this message
In , FTBFS (ftbfs-redhat-bugs) wrote :

Created attachment 393559
mock.log

mock.log for x86_64

Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

build inkscape-0.48-0.2.20100318bzr.fc14 succeeded

su_v (suv-lp)
tags: added: build linux
Revision history for this message
jimmac (jimmac) wrote :

It turns out it's just a missing -lX11 in the Makefile.

Revision history for this message
su_v (suv-lp) wrote :

adding bug watch:
565106 - FTBFS inkscape-0.47-6.fc13: ImplicitDSOLinking
<https://bugzilla.redhat.com/show_bug.cgi?id=565106>

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
Ted Gould (ted) wrote :

I've commited this patch to the 0.48 branch and to trunk. I put the author as "Lubomir Rintel", I hope that is correct, I'm sorry if it's not.

Changed in inkscape:
status: New → Fix Released
Revision history for this message
David Doria (daviddoria) wrote :

I checked out the code (bzr branch lp:inkscape) the morning of 10/15/2010 and when I tried to compile on Fedora 13 I got:

/usr/bin/ld: libinkscape.a(javabind.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line

I added -ldl to the end of this line in configure.ac
INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2 -ldl"

reran configure.sh and then ran make and then it compiled fine.

Revision history for this message
su_v (suv-lp) wrote :

related/follow-up report:

Bug #662979 in Inkscape:
“FTBFS in Natty: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'”
<https://bugs.launchpad.net/inkscape/+bug/662979>

Changed in inkscape:
milestone: none → 0.48
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

* The -lX11 dependency bug discussed in this report is now fixed upstream and in Fedora.
* The -ldl dependency bug is being treated as a separate issue in bug #662979.

Changed in inkscape (Debian):
status: Unknown → Fix Released
Changed in inkscape (Fedora):
importance: Unknown → High
status: Unknown → 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.