So I unset C_INCLUDE_PATH and after that, I was able to build Emacs 24.3 stable release properly with the system's installation of gcc:
./configure CC=/usr/bin/gcc --without-gif --prefix=/home/avazquez/raid/opt/emacs/releases/emacs-24.3
make
make install
I have now tried to build Emacs with a newer version of gcc such as 4.7.2 with no luck:
MY_GCC=/opt/gcc-4.7.2${ARCH_SUFFIX}
PATH=$MY_GCC/bin:$PATH
LD_LIBRARY_PATH=$MY_GCC/lib64:$LD_LIBRARY_PATH
MANPATH=$MY_GCC/share/man:$MANPATH
> ./configure --without-gif --prefix=/home/james/raid/opt/emacs/releases/emacs-24.3
> make
I get multiple definition errors (see the error in my make.log and the output of ./configure in my config.log). Any thoughts why?
Thanks,
James