Most likely you have broken gcc installation or some packages are missing. Make sure that you have installed: binutils, make, gcc-c++, bison, flex, openssl-devel, expat-devel, libcurl-devel, sqlite-devel, pcre-devel. Usually you do not need to specify location for openssl, pcre, etc.
Best regards,
Victor
Best regards,
Victor