Postings by Mathias on March 24, 2008
Finding the broken .la file
In case you wonder which .la pulls in /usr/lib/libglib-2.0.so, instead of /opt/gnome/lib/libglib-2.0.so, you can try this code snippet. The first pipeline retreives all .la files libtool reads, the second one scans that file for the unwanted .la file.
strace -f make 2>&1 | grep 'open(".*\.la".*) = [0-9]\+$' | cut -d\" -f2 | sort -u | tee /tmp/labber
fgrep /usr/lib/libglib-2.0 $(/tmp/labber)
Still would be nice if someone would fix libtool, to always use /opt/gnome/lib/libglib-2.0.so, instead of /usr/lib/libglib-2.0.so, when both are in the library path.