! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
compile fails with custom gtk-installation-PATH
Status:
RESOLVED: INVALID

Comments

Description qqqqqqqqq9 2009-02-04 16:43:17 CET
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
Comment 1 Jannis Pohlmann editbugs 2009-02-04 17:15:04 CET
Maybe you need to run "ldconfig" after changing the library path? Or are you maybe missing the -dev packages for these libraries?
Comment 2 qqqqqqqqq9 2009-02-04 18:47:57 CET
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
Comment 3 qqqqqqqqq9 2009-02-06 00:11:00 CET
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?
Comment 4 Nick Schermer editbugs 2009-08-21 07:23:36 CEST
Not an exo bug; broken system. Please don't use bugzilla for this but your distro's forum or mailing list.

Bug #4904

Reported by:
qqqqqqqqq9
Reported on: 2009-02-04
Last modified on: 2009-10-09

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information