Any suggestions?
Looks like messed up library versions and headers. You may have gmp and mpfr and mpc alreayd installed in system locations or other places. Isolate your build process into one place and be sure to setup the usual LD type environment variables to only "look" into those places for the headers and libs. Perhaps your CFLAGS will need to force the RPATH and the RUNPATH in the output elf headers with -Wl,-rpath=/some/path/lib or similar. Dennis