What happens here (I am guessing) is that some older /sw/lib/lib*.la files that are called just before the text you are showing here have some weird libraries hard-coded in. These are text files, so you can find which ones these are by doing
grep libfreetype /sw/lib/lib*.la
Then rebuild the packages where these come from. The one pulling in /usr/local/lib/libfontconfig.dylib is particularly suspect, maybe it is living in /usr/local/lib, even. You might want to move /usr/local out of the way altogether while you are doing this compilation.
I tried that command, which yielded the following results:
/sw/lib/libMagick++.la:dependency_libs=' -L/sw/lib /sw/lib/libMagick.la /sw/lib/liblcms.la -ltiff /sw/lib/libfreetype.la /sw/lib/libjpeg.la -lpng -lbz2 /sw/lib/libxml2.la /sw/lib/libiconv.la -lz -lpthread -lm'
/sw/lib/libMagick.la:dependency_libs=' -L/sw/lib /sw/lib/liblcms.la -ltiff /sw/lib/libfreetype.la /sw/lib/libjpeg.la -lpng -lbz2 /sw/lib/libxml2.la /sw/lib/libiconv.la -lz -lpthread -lm'
/sw/lib/libgdk_pixbuf_xlib-2.0.la:dependency_libs=' -L/sw/lib /sw/lib/libgmodule-2.0.la /sw/lib/libgobject-2.0.la /sw/lib/libglib-2.0.la -L/usr/X11R6/lib -lXft -lXrender /usr/local/lib/libfontconfig.la -lX11 /sw/lib/libfreetype.la /sw/lib/libexpat.la -lm /sw/lib/libintl.la /sw/lib/libiconv.la'
(extra line breaks added by me)
As you can see, only the last package includes anything from /usr/local/lib. I tried moving /usr/local like you suggested but then the gtk+2 make just complains that it can't find a whole lot of symbols, all supposedly residing in /usr/local/lib/libfontconfig.1.dylib
I didn't have gdk-pixbuf installed prior to this, so I tried installing it, but that didn't help. Do you know which package "libgdk_pixbuf_xlib-2.0.la" comes from?
-- Terje
"A programming language is low level when its programs require attention to the irrelevant."
smime.p7s
Description: S/MIME cryptographic signature