The build process for media-libs/libjsw appears to be slightly broken. According to the INSTALL file distributed with the package, you should issue make and make install on libjsw BEFORE making jscalibrator. While it will fall back to finding libjsw in its build directory if it isn't already installed, this is still bad. If you're updating libjsw, or re-emerging because your /usr/lib/libjsw.so is broken, then it will not work! What happens is... a) make libjsw/ subdir b) go to jscalibrator/ subdir c) make there d) it tries to link against the existing (but broken, or outdated) /usr/lib/libjsw.so e) DEATH! In my case libjsw.so had a broken shared library, so I had to rm /usr/lib/libjsw.so in order for media-libs/libjsw build process to complete successfully. Suggested solutions: a) patch the source to not look in /usr/lib/ first, but in ../libjsw/. b) split it into two ebuilds. I prefer a) personally.
read the ebuild, we already force this
mr bones pointed out the issue ... jscalibrator links with $(LIBS) $(LIB_DIRS) ... LIBS is set to `gtk-config --libs` and we force LIB_DIRS to -L../libjsw ... the prob is that gtk-config inserts its own -L/usr/lib search patch and the precedence of -L is that they are searched as specified ... so -L/usr/lib -L../libjsw breaks since the linker looks first in /usr/lib before ../libjsw
added patch to cvs to re-order LIB_DIRS and LIBS