undefined symbols in library

Bug #688861 reported by Matthias Klose on 2010-12-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qt-x11-free (Ubuntu)
High
Unassigned
Natty
High
Unassigned

Bug Description

causing a build failure in scribus:

http://launchpadlibrarian.net/60391374/buildlog_ubuntu-natty-i386.scribus_1.3.3.13.dfsg~svn20081228-2ubuntu3_FAILEDTOBUILD.txt.gz

Linking CXX executable scribus
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.5.2/../../../../lib/libqt-mt.so: 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[3]: *** [scribus/scribus] Error 1
make[3]: Leaving directory `/build/buildd/scribus-1.3.3.13.dfsg~svn20081228/debian/build'
make[2]: *** [scribus/CMakeFiles/scribus.dir/all] Error 2

libqt-mt should be linked against -lX11

Matthias Klose (doko) on 2010-12-11
Changed in qt-x11-free (Ubuntu):
importance: Undecided → High
milestone: none → natty-alpha-2
status: New → Confirmed
Martin Pitt (pitti) on 2011-01-25
Changed in qt-x11-free (Ubuntu Natty):
assignee: nobody → Kubuntu Developers (kubuntu-dev)
milestone: natty-alpha-2 → natty-alpha-3
Rohan Garg (rohangarg) wrote :

IIRC Philip was looking into this

Felix Geyer (debfx) on 2011-02-25
tags: added: kubuntu
Felix Geyer (debfx) wrote :
Download full text (15.4 KiB)

libqt-mt.so is linked against libX11.

% ldd libqt-mt.so.3.3.8 | grep X11
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fa7749f6000)

build log:
g++ -fno-exceptions -shared -Wl,-soname,libqt-mt.so.3 -o libqt-mt.so.3.3.8 .obj/release-shared-mt/qtaddons_x11.o .obj/release-shared-mt/qapplication_x11.o .obj/release-shared-mt/qclipboard_x11.o .obj/release-shared-mt/qcolor_x11.o .obj/release-shared-mt/qcursor_x11.o .obj/release-shared-mt/qdnd_x11.o .obj/release-shared-mt/qdesktopwidget_x11.o .obj/release-shared-mt/qeventloop_x11.o .obj/release-shared-mt/qfont_x11.o .obj/release-shared-mt/qinputcontext.o .obj/release-shared-mt/qinputcontext_x11.o .obj/release-shared-mt/qmotifdnd_x11.o .obj/release-shared-mt/qpixmap_x11.o .obj/release-shared-mt/qpaintdevice_x11.o .obj/release-shared-mt/qpainter_x11.o .obj/release-shared-mt/qregion_x11.o .obj/release-shared-mt/qsound_x11.o .obj/release-shared-mt/qwidget_x11.o .obj/release-shared-mt/qwidgetcreate_x11.o .obj/release-shared-mt/qfontengine_x11.o .obj/release-shared-mt/qprinter_unix.o .obj/release-shared-mt/qpsprinter.o .obj/release-shared-mt/qeventloop_unix.o .obj/release-shared-mt/qprocess_unix.o .obj/release-shared-mt/qthread_unix.o .obj/release-shared-mt/qabstractlayout.o .obj/release-shared-mt/qucomextra.o .obj/release-shared-mt/qaccel.o .obj/release-shared-mt/qapplication.o .obj/release-shared-mt/qasyncimageio.o .obj/release-shared-mt/qasyncio.o .obj/release-shared-mt/qbitmap.o .obj/release-shared-mt/qclipboard.o .obj/release-shared-mt/qcolor.o .obj/release-shared-mt/qcolor_p.o .obj/release-shared-mt/qconnection.o .obj/release-shared-mt/qcursor.o .obj/release-shared-mt/qdragobject.o .obj/release-shared-mt/qdrawutil.o .obj/release-shared-mt/qdropsite.o .obj/release-shared-mt/qevent.o .obj/release-shared-mt/qeventloop.o .obj/release-shared-mt/qfocusdata.o .obj/release-shared-mt/qfont.o .obj/release-shared-mt/qfontdatabase.o .obj/release-shared-mt/qguardedptr.o .obj/release-shared-mt/qiconset.o .obj/release-shared-mt/qimage.o .obj/release-shared-mt/qimageformatplugin.o .obj/release-shared-mt/qkeysequence.o .obj/release-shared-mt/qlayout.o .obj/release-shared-mt/qlayoutengine.o .obj/release-shared-mt/qtranslator.o .obj/release-shared-mt/qmetaobject.o .obj/release-shared-mt/qmime.o .obj/release-shared-mt/qmovie.o .obj/release-shared-mt/qnetworkprotocol.o .obj/release-shared-mt/qobject.o .obj/release-shared-mt/qobjectcleanuphandler.o .obj/release-shared-mt/qpainter.o .obj/release-shared-mt/qpalette.o .obj/release-shared-mt/qpaintdevicemetrics.o .obj/release-shared-mt/qpicture.o .obj/release-shared-mt/qpixmap.o .obj/release-shared-mt/qpixmapcache.o .obj/release-shared-mt/qpointarray.o .obj/release-shared-mt/qpoint.o .obj/release-shared-mt/qpolygonscanner.o .obj/release-shared-mt/qprinter.o .obj/release-shared-mt/qprocess.o .obj/release-shared-mt/qrect.o .obj/release-shared-mt/qregion.o .obj/release-shared-mt/qsignal.o .obj/release-shared-mt/qsignalmapper.o .obj/release-shared-mt/qsize.o .obj/release-shared-mt/qsizegrip.o .obj/release-shared-mt/qstyle.o .obj/release-shared-mt/qsocketnotifier.o .obj/release-shared-mt/qsound.o .obj/release-shared-mt/qstylesheet.o .obj/release-shared-mt/qthread.o .obj/rel...

Martin Pitt (pitti) on 2011-03-01
Changed in qt-x11-free (Ubuntu Natty):
milestone: natty-alpha-3 → ubuntu-11.04-beta-1
Changed in qt-x11-free (Ubuntu Natty):
assignee: Kubuntu Developers (kubuntu-dev) → nobody
Felix Geyer (debfx) wrote :

objdump shows that libqt-mt.so.3.3.8 is linked against libX11:
  NEEDED libX11.so.6

scribus uses the XGetWindowAttributes symbol directly:

# grep -r XGetWindowAttributes .
Binary file ./pixbuf/CMakeFiles/scribus_pixbuf_lib.dir/gdk-pixbuf-xlibrgb.o matches
Binary file ./pixbuf/libscribus_pixbuf_lib.a matches

Changed in qt-x11-free (Ubuntu Natty):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers