I install glibc, pango and gtk+ in /usr/local and set the following variables: CPPFLAGS="-I/usr/local/xfce4.6/include" LDFLAGS="-v -L/usr/local/xfce4.6/lib -Wl,-rpath=/usr/ local/xfce4.6/lib" PKG_CONFIG_PATH="/usr/local/xfce4.6/lib/pkgconfig" export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH="/usr/local/xfce4.6/lib:$LD_LIBRARY_PA TH" PATH="/usr/local/xfce4.6/bin:$PATH" export LD_LIBRARY_PATH PATH $ echo $LD_LIBRARY_PATH /usr/local/xfce4.6/lib:/usr/local/lib:/usr/lib/ $ echo $PATH /usr/local/xfce4.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin compiling libexo fails with: gcc -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local//include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/lib/gtk-2.0/include -I/usr/local//include/pango-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/xfce4 -g -O2 -DNDEBUG -DG_DISABLE_CAST_CHECKS -v -Wl,-rpath=/usr/local/xfce4.6/lib -Wl,--as-needed -Wl,-O1 -o exo-mount-notify-0.3 exo_mount_notify_0_3-main.o -L/usr/local/xfce4.6/lib -L/usr/local/lib -L/usr/local//lib /usr/lib/libnotify.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so -lXext -lXinerama -lXi -lXrandr -lXcursor -lXfixes /usr/lib/libpango-1.0.so -lpng12 -lXrender -lX11 /usr/lib/libgmodule-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/local/lib/libgtk-x11-2.0.so -ldbus-glib-1 /usr/local/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libgio-2.0.so -lselinux /usr/local//lib/libpangocairo-1.0.so /usr/local//lib/libpangoft2-1.0.so /usr/lib/libcairo.so /usr/local//lib/libpango-1.0.so -lm /usr/lib/libfreetype.so -lz -lfontconfig /usr/local/lib/libgmodule-2.0.so -ldl -ldbus-1 /usr/local/lib/libgobject-2.0.so -lxfce4util /usr/local/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/local//lib -Wl,--rpath -Wl,/usr/local//lib gcc: /usr/lib/libgdk-x11-2.0.so: No such file or directory gcc: /usr/lib/libgdk_pixbuf-2.0.so: No such file or directory gcc: /usr/lib/libpangocairo-1.0.so: No such file or directory gcc: /usr/lib/libpango-1.0.so: No such file or directory gcc: /usr/lib/libgmodule-2.0.so: No such file or directory gcc: /usr/lib/libgobject-2.0.so: No such file or directory gcc: /usr/lib/libglib-2.0.so: No such file or directory Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.3-3' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.3 (Debian 4.3.3-3) make[2]: *** [exo-mount-notify-0.3] Error 1 make[2]: Leaving directory `/home/me/installerxfce/exo-0.3.99.2/exo-mount-notify' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/me/installerxfce/exo-0.3.99.2' make: *** [all] Error 2 The missing libraries exist in /usr/local/lib e.g. ll /usr/local/lib/libgdk-x11-2.0.so lrwxrwxrwx 1 root 26 Feb 4 15:33 /usr/local/lib/libgdk-x11-2.0.so -> libgdk-x11-2.0.so.0.1400.7 Why aren't they found? ldconfig -p |grep libgdk-x11-2.0.so\ libgdk-x11-2.0.so (libc6,x86-64) => /usr/local/lib/libgdk-x11-2.0.so
Maybe you need to run "ldconfig" after changing the library path? Or are you maybe missing the -dev packages for these libraries?
Hi, The first missing link /usr/lib/libgdk-x11-2.0.so is part of libgtk2.0-dev, if i'm not mistaken, it shouldn't matter if it's installed since i'm not building against the gtk in /usr/lib but the one in /usr/local/lib, That one i compiled myself and therefore it contains all the files in the gtk-dev (i checked) Doesn't ldconfig -p |grep libgdk-x11-2.0.so\ libgdk-x11-2.0.so (libc6,x86-64) => /usr/local/lib/libgdk-x11-2.0.so say it's found by ldconfig? If i run the second last command before the failure without the libtool-part /bin/sh ../libtool --tag=CC --mode=link and the no-undefined-Option it compiles smoothly. /bin/sh ../libtool --tag=CC --mode=link gcc -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local//include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/lib/gtk-2.0/include -I/usr/local//include/pango-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/xfce4 -g -O2 -DNDEBUG -DG_DISABLE_CAST_CHECKS -no-undefined -Wl,--as-needed -Wl,-O1 -o exo-mount-notify-0.3 exo_mount_notify_0_3-main.o -L/usr/local/lib -L/usr/local//lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -L/usr/local/lib -L/usr/local//lib -lnotify -lgtk-x11-2.0 -ldbus-glib-1 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgmodule-2.0 -ldbus-1 -lgobject-2.0 -lglib-2.0 -L/usr/local/lib -lxfce4util -lglib-2.0
The problem arose from a /usr/lib/libnotify.la which referenced the gtk-libs in /usr/lib which i obviously removed manually some time ago. Does this mean, that if i want to use the libraries which installed in /usr/local/lib, i must either uninstall the gtk-dev-packages or remove all the .la-files?
Not an exo bug; broken system. Please don't use bugzilla for this but your distro's forum or mailing list.