Bug#377234: gnome-keyring: FTBFS: /usr/bin/ld: cannot find -lSM

Loïc Minier lool at dooz.org
Fri Jul 7 16:48:36 UTC 2006


On Fri, Jul 07, 2006, Julien Danjou wrote:
> > cc -g -Wall -O2 -o gnome-keyring-ask gnome-keyring-ask.o  /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so -lXext -lXinerama -lXi -lXrandr -lXcursor -lXfixes /usr/lib/libpango-1.0.so /usr/lib/libcairo.so -lSM -lICE -lXrender -lpng12 /usr/lib/libfreetype.so -lz -lfontconfig -lm -lX11 /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
> > /usr/bin/ld: cannot find -lSM

 And it's our friend libtool who wins the prize again:
 - gnome-keyring's Makefile.am has:
    gnome_keyring_ask_LDADD = $(GTK_LIBS)
 - gnome-keyring's configure.in has:
    PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
 - pkg-config --libs gtk+-2.0 says:
    -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
    -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi
    -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0
    -lgmodule-2.0 -ldl -lglib-2.0  
 - libtool sees -lcairo and finds /usr/lib/libcairo.la which has:
    dependency_libs=' -lSM -lICE -lXrender -lX11 -lpng12
    /usr/lib/libfreetype.la -lz -lfontconfig -lm'

 I'm going to file a bug against cairo requesting addition of Depends
 for the libraries referenced in its *.la file.

Loïc Minier <lool at dooz.org>

More information about the Pkg-gnome-maintainers mailing list