Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: CPAN install DBI-1.53

by duckyd (Hermit)
on Nov 28, 2006 at 16:41 UTC ( [id://586512] : note . print w/replies, xml ) Need Help??

in reply to Re^2: CPAN install DBI-1.53
in thread CPAN install DBI-1.53

You're trying to use gcc to compile DBI, are you sure your perl was compiled with gcc? Note that you need to use perl -V, not  perl -v to see what compiler was used to compile perl. For example,
$ perl -V | grep -A1 Compiler Compiler: cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-prec +omp -fno-strict-aliasing -I/usr/local/include',

Replies are listed 'Best First'.
Re^4: CPAN install DBI-1.53
by Anonymous Monk on Nov 28, 2006 at 17:10 UTC

    Thanks duckyd

    Compiler: cc='gcc', ccflags ='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing' ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.6' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define

    which bit tells me which compiler was used?

      That's a very old version of gcc that was used to build that Perl (24 Oct 1999). What version of gcc are you using ? (Running 'gcc -v' will tell you.)

      I'm not sure what's killing the process - the only thing that's not reported as a "warning" is the "invalid option: -fno-strict-aliasing", so maybe that's the culprit.

      You could get rid of it with the following entry in the WriteMakefile() section of the DBI-1.53 Makefile.PL:
      Then run 'make clean', 'perl Makefile.PL', 'make test', and 'make install'.
      Perhaps then, the process will continue to completion for you.

        Thanks Rob I can only find this in the document :-(
        WriteMakefile( dbd_edit_mm_attribs(\%opts, { create_pp_tests => 1, }) );
        Do you mean remove this?
      This one:  Compiler: cc='gcc'
        Am using gcc version 2.8.1