Hi Jack,
Jack Howarth wrote:
You didn't show the configure options you used to build gcc trunk against the fink libraries. You need at least... --with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib Note that we don't set CPPFLAGS or LDFLAGS to have -I/sw/include or -L/sw/lib in the fink gcc packaging so that only those libraries that we explicitly set are picked up from fink. All other cases should be picked up from the system libraries.
I wasn't aware of this. So far, I've only used --with-gmp=/sw and it worked like a charm, but I've not tried buildig gcc in a while, maybe I updated my fink tree in the meantime. My guess is, that as libcpp doesn't use gmp it doesn't get the -I/sw/include, whereas gcc/ gets it from --with-gmp. There are libiconvs in both /usr and /sw.
Both with --with-libiconv-prefix=/sw and --with-libiconv-prefix=/usr, the build still fails in the same place, i.e. the libiconv from /usr is not picked up even if explicitly requested.
Cheers, - Tobi