You don't say what kind of system you have, so I've got to guess wildly.
However, the error messages you're seeing smell strongly of a non-ANSI C
compiler. Recent distributions of perl require ANSI C, and some host
systems (from Sun, HP...) provide only pre-ANSI compilers. In order to
build perl, you'll need to get an ANSI C compiler, either by buying it from
the system supplier or a third party, or by downloading (and possibly
building -- a longwinded process) gcc. However, before you do any of those
things, check all the directories in your PATH variable for cc commands.
It could be that you've already got an ANSI C compiler, but that there's a
non-ANSI one earlier in your PATH. If that's the case, see the INSTALL
file, which tells you how to tell Configure to use a particular C compiler.