Can't compile libgnomeui

Thomas Paricaud thomas.paricaud at
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 => /usr/lib/
(0x4001c000) => /usr/lib/ (0x4002f000) => /lib/ (0x40033000) => /usr/lib/ (0x40036000) => /usr/lib/ (0x4006b000) => /lib/ (0x400d6000) => /lib/ (0x400f8000)
        /lib/ => /lib/ (0x40000000)

# ldd /usr/lib/ => /usr/lib/ (0x4001b000) => /lib/ (0x4001f000) => /usr/lib/ (0x40022000) => /usr/lib/ (0x40057000) => /lib/ (0x400c2000) => /lib/ (0x400e4000)
        /lib/ => /lib/ (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/.libs/ ../../gtk/.libs/ -lX11
/usr/lib/ /usr/lib/
/usr/lib/ /usr/lib/ /usr/lib/
/usr/lib/ -ldl /usr/lib/ -lm 
-Wl,--export-dynamic -Wl,-soname -Wl, -o .libs/
(cd .libs && rm -f && ln -s ../
../../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: 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 exist in directory /usr/X11R6/lib.

Thank you again for your attention.

More information about the blfs-support mailing list