in reply to Compiling perl module

Here is the contents of the files output in the conf directory. Not much help:

SERVERx:IO-Tty-1.10$ cat conf/compilerok.c
int main () { return 0; }

SERVERx:IO-Tty-1.10$ cat conf/compilerok.log
cc1: unrecognized option `-Wdeclaration-after-statement'
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory

Replies are listed 'Best First'.
Re^2: Compiling perl module
by ikegami (Patriarch) on Jan 20, 2011 at 23:03 UTC

    Your perl was built with a gcc that understands -Wdeclaration-after-statement. Yours doesn't. The following are the solution in increasing order or reliability:

    • Hack it so it works (perhaps using ExtUtils::FakeConfig).
    • Switch to a compatible compiler (perhaps by upgrading your gcc).
    • Build a perl for your own use (perhaps using App::perlbrew, although it's easy to do from scratch too).