Thanks Paul. You are totally right. I had an environment variable C_INCLUDE_PATH in my .zshrc init file that included GNU readline
, and that apparently was confusing the building process.
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
I have now tried to build Emacs with a newer version of gcc such as 4.7.2 with no luck:
> ./configure --without-gif --prefix=/home/james/raid/opt/emacs/releases/emacs-24.3
I get multiple definition errors (see the error in my make.log and the output of ./configure in my config.log). Any thoughts why?