Your message dated Thu, 24 Feb 2011 18:32:15 +0000
with message-id <[email protected]>
and subject line Re: Bug#614950: libgtk2.0-0: Linking error when compiling gtk  
program: libgdk-X11 does not link to libX11
has caused the Debian Bug report #614950,
regarding libgtk2.0-0: Linking error when compiling gtk program: libgdk-X11 
does not link to libX11
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.)


-- 
614950: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614950
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgtk2.0-0
Version: 2.20.1-2
Severity: normal

When compiling a gtk program using pkg-config, I received the following error:
/usr/bin/ld: /usr/lib/gcc/i486-linux-
gnu/4.4.5/../../../../lib/libgdk-x11-2.0.so: undefined reference to symbol
'XSetWMHints'
/usr/bin/ld: note: 'XSetWMHints' is defined in DSO /usr/lib/libX11.so.6 so try
adding it to the linker command line

When I added the explicit link -lX11, the program compiled successfully.

Here is the output of pkg-config --libs gtk+-2.0:
-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0
-lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0.
libX11 ought to be included  but is not present.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgtk2.0-0 depends on:
ii  libatk1.0-0            1.30.0-1          The ATK accessibility toolkit
ii  libc6                  2.11.2-11         Embedded GNU C Library: Shared lib
ii  libcairo2              1.8.10-6          The Cairo 2D vector graphics libra
ii  libcups2               1.4.5-3           Common UNIX Printing System(tm) - 
ii  libfontconfig1         2.8.0-2.1         generic font configuration library
ii  libfreetype6           2.4.2-2.1         FreeType 2 font engine, shared lib
ii  libgcrypt11            1.4.6-5           LGPL Crypto library - runtime libr
ii  libglib2.0-0           2.24.2-1          The GLib library of C routines
ii  libgnutls26            2.10.4-2          the GNU TLS library - runtime libr
ii  libgssapi-krb5-2       1.8.3+dfsg-4      MIT Kerberos runtime libraries - k
ii  libgtk2.0-common       2.20.1-2          Common files for the GTK+ graphica
ii  libjasper1             1.900.1-7+b1      The JasPer JPEG-2000 runtime libra
ii  libjpeg62              6b1-1             The Independent JPEG Group's JPEG 
ii  libpango1.0-0          1.28.3-1+squeeze1 Layout and rendering of internatio
ii  libpng12-0             1.2.44-1          PNG library - runtime
ii  libtiff4               3.9.4-5           Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.4.1-4         X11 client-side library
ii  libxcomposite1         1:0.4.3-1         X11 Composite extension library
ii  libxcursor1            1:1.1.11-1        X cursor management library
ii  libxdamage1            1:1.1.3-1         X11 damaged region extension libra
ii  libxext6               2:1.2.0-2         X11 miscellaneous extension librar
ii  libxfixes3             1:4.0.5-1         X11 miscellaneous 'fixes' extensio
ii  libxi6                 2:1.4.1-1         X11 Input extension library
ii  libxinerama1           2:1.1.1-1         X11 Xinerama extension library
ii  libxrandr2             2:1.3.1-1         X11 RandR extension library
ii  libxrender1            1:0.9.6-1         X Rendering Extension client libra
ii  shared-mime-info       0.71-4            FreeDesktop.org shared MIME databa
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages libgtk2.0-0 recommends:
ii  hicolor-icon-theme            0.12-1     default fallback theme for FreeDes
ii  libgtk2.0-bin                 2.20.1-2   The programs for the GTK+ graphica

Versions of packages libgtk2.0-0 suggests:
pn  gvfs                          <none>     (no description available)
ii  librsvg2-common               2.26.3-1   SAX-based renderer library for SVG

-- no debconf information



--- End Message ---
--- Begin Message ---
On 24/02/11 17:20, Hazel Russman wrote:
> Yes, I use it for docking the window. But I've been compiling and recompiling 
> this program for weeks now and I never had to specify libX11 explicitly 
> before; it always came over with gtk/gdk. Has something changed?

That's the wrong approach. If you use it, you need to link against it.

Emilio


--- End Message ---

Reply via email to