Can't compile libgnomeui

Thomas Paricaud thomas.paricaud at tele2.fr
Thu Feb 26 11:19:35 PST 2004


Chris Macksey wrote:

> OK, here's one thing to check:
> 
> Is /usr/include/libpng a symlink to /usr/include/libpng12? And, generally,
> is the state of the PNG includes and libs consistent?  A possibility is
> that stow bungled your symlinks on this one.

All the symlinks for libpng or OK.

> If this weren't the case, I could see GTK+'s configure process deciding
> (possibly) to disable PNG support if it couldn't find the right include
> file.  A further thing to try on this would be to re-configure GTK+, and
> check it for PNG-related messages (even something as minor as
> "<libpng/png.h> (not found)").

I reconfigured GTK+ and I looked in config.log : he detects libpng all
right. In BLFS book libpng is not in the requirements for GTK+ but it is
for XFree. So I did these command :

# ldd /usr/bin/gdk-pixbuf-csource
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0
(0x4001c000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4002f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40033000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40036000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x4006b000)
        libm.so.6 => /lib/libm.so.6 (0x400d6000)
        libc.so.6 => /lib/libc.so.6 (0x400f8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

# ldd /usr/lib/libgdk_pixbuf-2.0.so.0
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4001b000)
        libdl.so.2 => /lib/libdl.so.2 (0x4001f000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40022000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40057000)
        libm.so.6 => /lib/libm.so.6 (0x400c2000)
        libc.so.6 => /lib/libc.so.6 (0x400e4000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

There is neither libpng library nor XFree libraries. Since I have
reinstalled X because the libraries were not at the right place, I decided
to reinstall gtk+ but now I get this error while compiling :

gcc -shared  .libs/imviqr.o  -Wl,--rpath
-Wl,/usr/src/gtk+-2.2.4/gdk-pixbuf/.libs -Wl,--rpath
-Wl,/usr/src/gtk+-2.2.4/gdk/.libs -Wl,--rpath
-Wl,/usr/src/gtk+-2.2.4/gtk/.libs -L/usr/src/gtk+-2.2.4/gdk/.libs
-L/usr/X11R6/lib -L/usr/src/gtk+-2.2.4/gdk-pixbuf/.libs -L/usr/lib
../../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so
../../gdk/.libs/libgdk-x11-2.0.so ../../gtk/.libs/libgtk-x11-2.0.so -lX11
/usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm 
-Wl,--export-dynamic -Wl,-soname -Wl,im-viqr.so -o .libs/im-viqr.so
creating im-viqr.la
(cd .libs && rm -f im-viqr.la && ln -s ../im-viqr.la im-viqr.la)
../../gtk/gtk-query-immodules-2.0 *.la > gtk.immodules
/usr/src/gtk+-2.2.4/gtk/.libs/lt-gtk-query-immodules-2.0: error while
loading shared libraries: libXrandr.so.2: cannot open shared object file:
No such file or directory
make[3]: *** [gtk.immodules] Error 127
make[3]: Leaving directory `/usr/src/gtk+-2.2.4/modules/input'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/gtk+-2.2.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gtk+-2.2.4'
make: *** [all-recursive-am] Error 2

libXrandr.so.2 exist in directory /usr/X11R6/lib.

Thank you again for your attention.
Thomas



More information about the blfs-support mailing list