Package: libfltk1.3-dev Version: 1.3.2-2 Severity: normal Some FLTK API functions are actually macros, and some of these call xlib directly. For instance, say I have the following file tst.cc:
#include <FL/fl_draw.H> void f(void) { Fl_Offscreen offscreen = fl_create_offscreen(100,100); } When the preprocessor transforms this file, it does this: $ gcc -o- -E /tmp/tst.cc | awk '/void f\(/,0' void f(void) { Fl_Offscreen offscreen = XCreatePixmap(fl_display, (Fl_Surface_Device::surface() == Fl_Display_Device::display_device() ? fl_window : fl_xid_(Fl::first_window()) ) , 100, 100, fl_visual->depth); } Note that this calls XCreatePixmap() directly. Thus tst.o uses libX11 directly, thus the application that uses tst.o needs to be linked with -lX11. The DT_NEEDED flag won't help here. Adding -lX11 into the output of 'pkg-config --libs' should make this work. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash Versions of packages libfltk1.3-dev depends on: ii libfltk-cairo1.3 1.3.2-2 ii libfltk-forms1.3 1.3.2-2 ii libfltk-gl1.3 1.3.2-2 ii libfltk-images1.3 1.3.2-2 ii libfltk1.3 1.3.2-2 ii libx11-dev 2:1.6.0-1 Versions of packages libfltk1.3-dev recommends: ii fluid 1.3.2-2 ii libgl1-mesa-dev [libgl-dev] 9.1.3-6 ii libglu1-mesa-dev [libglu-dev] 8.0.5-7 Versions of packages libfltk1.3-dev suggests: pn fltk1.3-doc <none> ii libcairo2-dev 1.12.14-5 ii libjpeg8-dev [libjpeg-dev] 8d-1 ii libpng12-dev [libpng-dev] 1.2.49-4 ii libxext-dev 2:1.3.1-2+deb7u1 ii libxft-dev 2.3.1-1 ii libxinerama-dev 2:1.1.2-1+deb7u1 ii zlib1g-dev [libz-dev] 1:1.2.8.dfsg-1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org