Your (version of) cc (xlc) does not support the options that perl was built with
I see -q32 and -qlonglong, and both give a warning in the first three lines, causing syntax errors in the standard system headers.
Check first if a very simple C program will compile with the options that Makefile.PL has put in your Makefile based on how perl was built
Also check with perl -V if these options make sense to you.
The last thing to check is 32bit (your perl) is the same as what your libraries offer (maybe just 64bit). They don't go together.