Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: CPAN install DBI-1.53

by Anonymous Monk
on Nov 28, 2006 at 17:10 UTC ( #586521=note: print w/replies, xml ) Need Help??

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

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?

Replies are listed 'Best First'.
Re^5: CPAN install DBI-1.53
by syphilis (Bishop) on Nov 29, 2006 at 04:17 UTC
    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?
        I think %opts, in the Makefile.PL, might simply need that amended CCFLAGS entry inserted (anywhere) into it so it looks like this:
        my %opts = ( CCFLAGS => '-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_S +OURCE -D_FILE_OFFSET_BITS=64', NAME => 'DBI', AUTHOR => 'Tim Bunce (', VERSION_FROM => '', ABSTRACT_FROM => '', PREREQ_PM => { "Test::Simple" => 0.40, Storable => 1, "File::Spec" + => 1 }, EXE_FILES => [ "dbiproxy$ext_pl", "dbiprof$ext_pl" ], DIR => [ ], dynamic_lib => { OTHERLDFLAGS => "$::opt_g" }, clean => { FILES=> "\$(DISTVNAME) Perl.xsi t/zv*_*.t" ." dbiproxy$ext_pl dbiprof$ext_pl dbitrace.log nd +test.prt" }, dist => { DIST_DEFAULT=> 'clean distcheck disttest tardist', PREOP => '$(MAKE) -f Makefile.old distdir', COMPRESS => 'gzip -v9', SUFFIX => 'gz', }, );
        If that doesn't help try getting a version of gcc that's at least recent enough to either understand or ignore '-fno-strict-aliasing'.

        Tried to instal another module and get this error as well: cc1: Invalid option `-fno-strict-aliasing' What could cause this?
Re^5: CPAN install DBI-1.53
by RobPayne (Chaplain) on Nov 29, 2006 at 01:24 UTC
    This one:  Compiler: cc='gcc'
      Am using gcc version 2.8.1

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586521]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2021-10-25 11:29 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (89 votes). Check out past polls.